/* /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 */
/* Global CSS for MudBlazor menu items in portals - must use ::deep to penetrate component boundary */
[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;
}

.menu-item-content[b-592xg0qqe0] {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.menu-item-icon[b-592xg0qqe0] {
    flex-shrink: 0;
}

.menu-item-text[b-592xg0qqe0] {
    flex: 1;
}

.selector-button-row[b-592xg0qqe0] {
    margin-bottom: 16px;
}

[b-592xg0qqe0] .summary-cards-row {
    margin-bottom: 15px;
}

.loading-container[b-592xg0qqe0] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 60px 20px;
}

[b-592xg0qqe0] .summary-card {
    background: white !important;
    border-radius: 12px !important;
    padding: 10px !important;
    border: 1px solid #e2e8f0 !important;
    transition: all 0.2s ease !important;
}

[b-592xg0qqe0] .summary-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-2px) !important;
}

[b-592xg0qqe0] .total-card {
    border-left: 4px solid var(--primary) !important;
    margin-top: 10px !important;
}

[b-592xg0qqe0] .owns-card {
    border-left: 4px solid var(--primary) !important;
    margin-top: 10px !important;
}

[b-592xg0qqe0] .owned-by-card {
    border-left: 4px solid var(--primary) !important;
    margin-top: 10px !important;
}

.summary-header[b-592xg0qqe0] {
    display: flex;
    align-items: center;
    gap: 16px;
}

[b-592xg0qqe0] .summary-icon {
    font-size: 2rem !important;
    padding: 8px !important;
    border-radius: 12px !important;
}

[b-592xg0qqe0] .summary-icon.total {
    background: rgba(99, 102, 241, 0.1) !important;
    color: var(--primary) !important;
}

[b-592xg0qqe0] .summary-icon.owns {
    background: rgba(16, 185, 129, 0.1) !important;
    color: var(--primary) !important;
}

[b-592xg0qqe0] .summary-icon.owned-by {
    background: rgba(59, 130, 246, 0.1) !important;
    color: var(--primary) !important;
}

[b-592xg0qqe0] .summary-label {
    color: #64748b !important;
    font-weight: 500 !important;
    margin-bottom: 4px !important;
}

[b-592xg0qqe0] .summary-value {
    font-weight: 600 !important;
    color: #1e293b !important;
}

[b-592xg0qqe0] .ownership-section {
    background: var(--white) !important;
    border-radius: 12px !important;
    margin-bottom: 20px !important;
    border: 1px solid #e2e8f0 !important;
    overflow: hidden !important;
}

.section-header[b-592xg0qqe0] {
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(59, 130, 246, 0.02) 100%);
    border-bottom-color: var(--primary);
}

.owns-header[b-592xg0qqe0] {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(59, 130, 246, 0.02) 100%);
    border-bottom-color: var(--primary);
}

.owned-by-header[b-592xg0qqe0] {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(59, 130, 246, 0.02) 100%);
    border-bottom-color: var(--primary);
}

.section-icon[b-592xg0qqe0] {
    font-size: 1.5rem;
    color: var(--primary);
}

.section-title[b-592xg0qqe0] {
    font-weight: 600;
    color: #1e293b;
    padding-top: 5px;
}

.ownership-table[b-592xg0qqe0] {
    background: transparent;
}

[b-592xg0qqe0] .ownership-table .mud-table-cell {
    padding: 16px 24px;
    border-bottom: 1px solid #f1f5f9;
}

[b-592xg0qqe0] .ownership-table .mud-table-row:hover {
    background: #f8fafc;
}

[b-592xg0qqe0] .table-header {
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.company-cell[b-592xg0qqe0] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.company-icon[b-592xg0qqe0] {
    color: #64748b;
}

.company-name[b-592xg0qqe0] {
    font-weight: 500;
    color: #1e293b;
}

.percentage-cell[b-592xg0qqe0] {
    display: flex;
    align-items: center;
    gap: 12px;
}

.percentage-bar-container[b-592xg0qqe0] {
    flex: 1;
    max-width: 120px;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    display: flex;
}

.percentage-bar[b-592xg0qqe0] {
    height: 100%;
    min-width: 0;
    background: linear-gradient(90deg, #10b981 0%, #007a6b 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    display: block;
    flex-shrink: 0;
}

.percentage-text[b-592xg0qqe0] {
    font-weight: 600;
    color: var(--primary);
    min-width: 60px;
}

[b-592xg0qqe0] .type-chip {
    font-size: 0.75rem;
    font-weight: 500;
    background: #f1f5f9;
    color: #475569;
    border-radius: 6px;
}

.date-cell .date-text[b-592xg0qqe0] {
    color: #64748b;
    font-size: 0.875rem;
}

.pagination-container-all[b-592xg0qqe0] {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    align-items: center;
    padding-top: 3.25rem;
}

.pagination-container[b-592xg0qqe0] {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    align-items: center;
}

[b-592xg0qqe0] .empty-state {
    background: white !important;
    border-radius: 12px !important;
    padding: 60px 40px !important;
    text-align: center !important;
    border: 2px dashed #e2e8f0 !important;
    margin-top: 24px !important;
}

.empty-icon[b-592xg0qqe0] {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.empty-title[b-592xg0qqe0] {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
}

/* Responsive Design */
@media (max-width: 960px) {
    .percentage-bar-container[b-592xg0qqe0] {
        max-width: 80px;
    }

    [b-592xg0qqe0] .ownership-table .mud-table-cell {
        padding: 12px 16px;
    }

    .selector-button-row[b-592xg0qqe0] {
        gap: 12px;
    }

    .summary-cards-row[b-592xg0qqe0] {
        gap: 12px;
    }
}

@media (max-width: 600px) {
    [b-592xg0qqe0] .summary-icon {
        font-size: 1.5rem !important;
        padding: 8px !important;
    }

    [b-592xg0qqe0] .empty-state {
        padding: 40px 20px !important;
    }

    .empty-icon[b-592xg0qqe0] {
        font-size: 3rem;
    }
}

/* === Page Header === */
.ownership-header[b-592xg0qqe0] {
    padding-bottom: 7px;
    margin-bottom: 0.75rem;
    position: relative;
}

/* Full-width border using pseudo-element */
.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;
}
