@import '_content/Amplifai.Yggdrasil.Module.Reporting/Amplifai.Yggdrasil.Module.Reporting.s3zm0g4e7x.bundle.scp.css';

/* /Components/Pages/Dashboard.razor.rz.scp.css */
/* Insight Engine Dashboard — scoped page styles.
   Tabs: HealthScreen.razor.css parity (health-tabs-section, nav-tabs, custom-tab.active).
   KPI cards: Monitor FinancialPerformanceCard-style markup.
   Table: Insight counterparty–style headers and spacing. */

/* ─── Header (Settings-style underline) ─── */
.insight-dashboard-header[b-ry462ld1sd] {
    padding-bottom: 7px;
    margin-bottom: 1rem;
    position: relative;
}

.insight-dashboard-header[b-ry462ld1sd]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 0;
    height: 1px;
    background-color: #E4E4E7;
    width: 100vw;
    margin-left: -50vw;
}

.insight-dashboard-header h5[b-ry462ld1sd] {
    color: #1f2937;
    font-weight: 600;
}

.insight-header-row[b-ry462ld1sd] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.insight-header-actions[b-ry462ld1sd] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-left: auto;
}

[b-ry462ld1sd] .ie-refresh-btn.mud-button-outlined {
    text-transform: none;
    font-weight: 500;
    letter-spacing: normal;
}

[b-ry462ld1sd] .ie-refresh-btn .mud-button-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ─── Tabs: same rules as HealthScreen.razor.css (Health Check) ─── */
.health-tabs-section[b-ry462ld1sd] {
    background-color: #F8F8F8;
}

.tabs-section[b-ry462ld1sd] {
    margin-bottom: 1.5rem;
}

.nav-tabs .nav-link[b-ry462ld1sd] {
    border: none;
    background: none;
    color: #6c757d;
    font-weight: 500;
    border-bottom: 1px solid #dee2e6;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.nav-tabs .nav-link:hover[b-ry462ld1sd] {
    background-color: #F8F8F8;
    border-color: transparent;
}

.nav-tabs .custom-tab.active[b-ry462ld1sd] {
    color: #009688;
    background-color: #F8F8F8;
    border: 1px solid #dee2e6;
    font-weight: 600;
    border-bottom: none;
}

/* MudIcon in tab buttons inherits teal / gray from .nav-link */
.nav-tabs .nav-link[b-ry462ld1sd]  .mud-icon-root,
.nav-tabs .nav-link[b-ry462ld1sd]  svg {
    color: inherit;
    fill: currentColor;
}

/* ─── Surface cards (charts, chat) — white panels like Health / Settings .responsive-paper ─── */
.insight-surface-card[b-ry462ld1sd] {
    background-color: #fff !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 0.375rem !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.insight-surface-title[b-ry462ld1sd] {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.insight-subsection-heading[b-ry462ld1sd] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    color: #1e293b;
    margin: 0 0 0.75rem 0;
}

.insight-subsection-heading--split[b-ry462ld1sd] {
    width: 100%;
    flex-wrap: wrap;
    row-gap: 0.5rem;
}

.insight-subsection-heading__start[b-ry462ld1sd] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.insight-subsection-heading__end[b-ry462ld1sd] {
    flex-shrink: 0;
    margin-left: auto;
}

/* ─── KPI cards: Monitor FinancialPerformanceCard parity (scoped to this page) ─── */
.insight-dashboard-kpi[b-ry462ld1sd] (.mud-grid-item.ie-kpi-item) {
    display: flex;
}

.insight-dashboard-kpi[b-ry462ld1sd] (.mud-grid-item.ie-kpi-item > *) {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.insight-dashboard-kpi[b-ry462ld1sd]  .insight-kpi-card.financial-performance-card {
    cursor: default;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease;
    border-radius: 4px;
}

.insight-dashboard-kpi[b-ry462ld1sd]  .insight-kpi-card.financial-performance-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12) !important;
}

.insight-dashboard-kpi[b-ry462ld1sd]  .kpi-body {
    display: block;
}

/* Match Monitor.razor.css .kpi-title */
.insight-dashboard-kpi[b-ry462ld1sd]  .kpi-title {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    line-height: 1.3;
}

.insight-dashboard-kpi[b-ry462ld1sd]  .kpi-value {
    color: #333;
    line-height: 1.2;
}

.insight-dashboard-kpi[b-ry462ld1sd]  .kpi-caption {
    color: #6b7280 !important;
    font-size: 0.875rem;
    line-height: 1.4;
}

@media (max-width: 1440px) {
    .insight-dashboard-kpi[b-ry462ld1sd]  .kpi-title {
        line-height: 1.2rem !important;
    }
}

/* ─── Loading state ─── */
.ie-loading-state[b-ry462ld1sd] {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.ie-loading-hint[b-ry462ld1sd] {
    color: #6b7280;
}

/* ─── Anomaly table section ─── */
.ie-anomaly-section[b-ry462ld1sd] {
    background: #fff !important;
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.ie-anomaly-section-header[b-ry462ld1sd] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #dee2e6;
    background: linear-gradient(135deg, rgba(0, 150, 136, 0.06) 0%, rgba(0, 150, 136, 0.02) 100%);
}

.ie-anomaly-toolbar-right[b-ry462ld1sd] {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-left: auto;
}

[b-ry462ld1sd] .ie-page-size-select {
    min-width: 140px;
}

.ie-anomaly-section-title[b-ry462ld1sd] {
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    font-size: 1rem;
}

[b-ry462ld1sd] .ie-anomaly-table {
    background-color: #fff;
}

[b-ry462ld1sd] .ie-anomaly-table .mud-table-head .mud-table-cell {
    background-color: #f8f9fa !important;
    font-weight: 600;
    color: #495057;
    font-size: 0.8125rem;
    padding:8px !important;
    border-bottom: 1px solid #dee2e6;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

[b-ry462ld1sd] .ie-anomaly-table .mud-table-body .mud-table-cell {
    padding:8px !important;
    vertical-align: middle;
}

[b-ry462ld1sd] .ie-anomaly-table .mud-table-row {
    cursor: pointer;
}

[b-ry462ld1sd] .ie-anomaly-table .mud-table-row:hover {
    background-color: #f8fafc;
}

[b-ry462ld1sd] .ie-anomaly-table .table-header {
    font-weight: 600;
    color: #64748b;
}

.ie-chart-empty[b-ry462ld1sd] {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .insight-header-actions[b-ry462ld1sd] {
        width: 100%;
        justify-content: flex-end;
    }

    .ie-anomaly-toolbar-right[b-ry462ld1sd] {
        width: 100%;
        justify-content: flex-end;
    }
}
/* /Components/Pages/TrialBalanceInsight/TrialBalanceInsight.razor.rz.scp.css */
/* Trial Balance Insight — scoped page styles.
   Header: consistent with Dashboard (Settings-style underline, outlined refresh button).
   Filters: dedicated section below header with responsive grid.
   Split view: left panel (anomaly list) + right panel (detail view).
   Anomaly cards: clean hierarchy, hover/selected states, severity indicators. */

/* ─── Header (Dashboard-style) ─── */
.tbi-header[b-mx9efsid4q] {
    padding-bottom: 7px;
    margin-bottom: 1rem;
    position: relative;
}

.tbi-header[b-mx9efsid4q]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 0;
    height: 1px;
    background-color: #E4E4E7;
    width: 100vw;
    margin-left: -50vw;
}

.tbi-header h5[b-mx9efsid4q] {
    color: #1f2937;
    font-weight: 600;
    margin: 0;
}

.tbi-header-row[b-mx9efsid4q] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.tbi-header-actions[b-mx9efsid4q] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-left: auto;
}

[b-mx9efsid4q] .tbi-refresh-btn.mud-button-outlined {
    text-transform: none;
    font-weight: 500;
    letter-spacing: normal;
}

[b-mx9efsid4q] .tbi-refresh-btn .mud-button-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ─── Filters Section ─── */
.tbi-filters-section[b-mx9efsid4q] {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.tbi-filters-section[b-mx9efsid4q]  .insight-filters-strip {
    margin-bottom: 0;
}

/* ─── Loading & Empty States ─── */
.tbi-loading-state[b-mx9efsid4q] {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.tbi-loading-hint[b-mx9efsid4q] {
    color: #6b7280;
}

.tbi-empty-state[b-mx9efsid4q] {
    background: white !important;
    border-radius: 12px !important;
    padding: 60px 40px !important;
    text-align: center !important;
    border: 2px dashed #e2e8f0 !important;
    margin-top: 24px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}

.tbi-empty-icon[b-mx9efsid4q] {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.tbi-empty-title[b-mx9efsid4q] {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

/* ─── Content Layout (Split View) ─── */
.tbi-content-layout[b-mx9efsid4q] {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 1.25rem;
    align-items: start;
}

.tbi-left-panel[b-mx9efsid4q] {
    position: sticky;
    max-height: calc(100vh - 120px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tbi-right-panel[b-mx9efsid4q] {
    min-height: 400px;
}

/* ─── Anomaly List Container ─── */
.tbi-anomaly-list-container[b-mx9efsid4q] {
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 120px);
}

.tbi-anomaly-list-toolbar[b-mx9efsid4q] {
    flex-shrink: 0;
    padding: 0.75rem 1rem 0;
}

.tbi-anomaly-list-header[b-mx9efsid4q] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.04) 0%, rgba(59, 130, 246, 0.01) 100%);
    flex-shrink: 0;
}

.tbi-list-header-content[b-mx9efsid4q] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tbi-list-title[b-mx9efsid4q] {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #1e293b;
}

.tbi-list-empty[b-mx9efsid4q] {
    padding: 2rem 1rem;
    text-align: center;
}

/* ─── Anomaly List (Scrollable) ─── */
.tbi-anomaly-list[b-mx9efsid4q] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1 1 auto;
    min-height: 0;
    max-height: calc(100vh - 280px);
}

.tbi-anomaly-list[b-mx9efsid4q]::-webkit-scrollbar {
    width: 6px;
}

.tbi-anomaly-list[b-mx9efsid4q]::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 3px;
}

.tbi-anomaly-list[b-mx9efsid4q]::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.tbi-anomaly-list[b-mx9efsid4q]::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ─── Anomaly Card ─── */
[b-mx9efsid4q] .tbi-anomaly-card {
    cursor: pointer;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 3px solid transparent !important;
    padding: 0.75rem 0.625rem !important;
    transition: all 0.2s ease;
    background: white;
    text-transform: none !important;
    justify-content: flex-start !important;
    text-align: left !important;
    min-height:120px;
}

[b-mx9efsid4q] .tbi-anomaly-card:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    /* transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); */
}

[b-mx9efsid4q] .tbi-anomaly-card.active {
    background: #f8fafc !important;
    border-color: var(--primary) !important;
}

[b-mx9efsid4q] .tbi-anomaly-card.active .tbi-anomaly-icon-wrap {
    background: #dbeafe;
}

[b-mx9efsid4q] .tbi-anomaly-card.severity-error {
    border-left-color: var(--danger) !important;
}

[b-mx9efsid4q] .tbi-anomaly-card.severity-warning {
    border-left-color: var(--warning) !important;
}

[b-mx9efsid4q] .tbi-anomaly-card.severity-info {
    border-left-color: var(--info) !important;
}

.tbi-anomaly-card-content[b-mx9efsid4q] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
}

.tbi-anomaly-main[b-mx9efsid4q] {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    flex: 1;
    min-width: 0;
}

.tbi-anomaly-icon-wrap[b-mx9efsid4q] {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    transition: background-color 0.2s ease;
}

.tbi-anomaly-icon.severity-error[b-mx9efsid4q] {
    color: var(--danger);
}

.tbi-anomaly-icon.severity-warning[b-mx9efsid4q] {
    color: var(--warning);
}

.tbi-anomaly-icon.severity-info[b-mx9efsid4q] {
    color: var(--info);
}

.tbi-anomaly-text[b-mx9efsid4q] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.tbi-company-name[b-mx9efsid4q] {
    font-weight: 600;
    font-size: 0.75rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tbi-anomaly-description[b-mx9efsid4q] {
    font-weight: 500;
    color: #1e293b;
    line-height: 1.35;
    font-size: 0.8125rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tbi-anomaly-meta[b-mx9efsid4q] {
    font-size: 0.6875rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tbi-anomaly-badge[b-mx9efsid4q] {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

[b-mx9efsid4q] .tbi-selected-icon {
    color: var(--mud-palette-primary) !important;
}

/* ─── Responsive Adjustments ─── */
@media (max-width: 1200px) {
    .tbi-content-layout[b-mx9efsid4q] {
        grid-template-columns: 340px 1fr;
    }
}

@media (max-width: 960px) {
    .tbi-content-layout[b-mx9efsid4q] {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tbi-left-panel[b-mx9efsid4q] {
        position: relative;
        top: 0;
        max-height: 450px;
    }

    .tbi-anomaly-list[b-mx9efsid4q] {
        max-height: 350px;
    }
}

@media (max-width: 600px) {
    .tbi-filters-section[b-mx9efsid4q] {
        padding: 0.75rem;
    }

    .tbi-header-actions[b-mx9efsid4q] {
        width: 100%;
        justify-content: flex-end;
    }
}
/* /Components/Shared/Anomalies/InsightAnomalyDetail.razor.rz.scp.css */
/* Insight Anomaly Detail — scoped styles for the right panel detail view.
   Consistent with Dashboard surface cards: clean borders, subtle shadows, organized sections. */

/* ─── Loading State ─── */
.loading-container[b-jv688xedbk] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 60px 20px;
    gap: 0.75rem;
}

/* ─── Enhanced Empty States ─── */
/* Wrapper is a native div in this component so Blazor scoped CSS attaches here (MudPaper root does not). */
.detail-empty-state[b-jv688xedbk] {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 16px;
    text-align: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.detail-empty-state[b-jv688xedbk]::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.detail-empty-icon-wrap[b-jv688xedbk] {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
    animation: float-b-jv688xedbk 3s ease-in-out infinite;
}

.detail-empty-icon-wrap--warning[b-jv688xedbk] {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.15);
}

@keyframes float-b-jv688xedbk {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.detail-empty-state[b-jv688xedbk]  .detail-empty-icon {
    font-size: 3rem !important;
    color: var(--primary) !important;
}

.detail-empty-state[b-jv688xedbk]  .detail-empty-icon-wrap--warning .detail-empty-icon {
    color: #f59e0b !important;
}

.detail-empty-state[b-jv688xedbk]  .detail-empty-title {
    font-weight: 600 !important;
    color: #1e293b !important;
    margin: 0 !important;
    font-size: 1.375rem !important;
    letter-spacing: -0.01em !important;
}

.detail-empty-state[b-jv688xedbk]  .detail-empty-text {
    max-width: 420px !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

.detail-empty-hint[b-jv688xedbk] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    margin-top: 0.5rem;
}

.detail-empty-state[b-jv688xedbk]  .detail-empty-hint .mud-typography {
    margin: 0 !important;
}

/* ─── Chart Panel ─── */
[b-jv688xedbk] .chart-panel {
    background: white !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    overflow: hidden !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}

.chart-header[b-jv688xedbk] {
    padding: 1.125rem 1.25rem 0.75rem 1.25rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.02) 0%, rgba(59, 130, 246, 0.005) 100%);
    border-bottom: 1px solid #f1f5f9;
}

.chart-header h6[b-jv688xedbk] {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.chart-container[b-jv688xedbk] {
    padding: 1rem 1.25rem 1.25rem 1.25rem;
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

/* ─── Explanation Panel ─── */
[b-jv688xedbk] .explanation-panel {
    background: white !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    padding: 1rem 1.25rem !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}

.explanation-header[b-jv688xedbk] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.875rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.explanation-header h6[b-jv688xedbk],
.explanation-header .mud-typography-subtitle2[b-jv688xedbk] {
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.explanation-body[b-jv688xedbk] {
    color: #334155;
    line-height: 1.7;
}

.explanation-body .mud-typography[b-jv688xedbk] {
    margin-bottom: 0.5rem;
}

.explanation-body .mud-typography:last-child[b-jv688xedbk] {
    margin-bottom: 0;
}

/* ─── AI chat panel (aligned with Analysis card, embedded ChatWindow) ─── */
[b-jv688xedbk] .explanation-panel.anomaly-ai-panel {
    padding: 0 !important;
    overflow: hidden;
    position: relative;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.06),
        inset 3px 0 0 color-mix(in srgb, var(--primary, #2563eb) 55%, transparent);
}

.anomaly-ai-panel__header[b-jv688xedbk] {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1.125rem 1.25rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    /* background: linear-gradient(
        125deg,
        color-mix(in srgb, var(--primary, #2563eb) 7%, transparent) 0%,
        rgba(139, 92, 246, 0.05) 42%,
        transparent 78%
    ); */
}

.anomaly-ai-panel--disabled .anomaly-ai-panel__header[b-jv688xedbk] {
    background: linear-gradient(135deg, rgba(100, 116, 139, 0.05) 0%, transparent 100%);
}

.anomaly-ai-panel__icon-wrap[b-jv688xedbk] {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.14) 0%, rgba(59, 130, 246, 0.06) 100%);
    border: 1px solid rgba(59, 130, 246, 0.18);
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.1);
}

.anomaly-ai-panel__icon-wrap--muted[b-jv688xedbk] {
    background: linear-gradient(145deg, #f1f5f9 0%, #e2e8f0 100%);
    border-color: #e2e8f0;
    box-shadow: none;
}

.anomaly-ai-panel__icon[b-jv688xedbk] {
    font-size: 1.35rem !important;
    color: var(--primary) !important;
}

.anomaly-ai-panel__icon-wrap--muted .anomaly-ai-panel__icon[b-jv688xedbk] {
    color: #64748b !important;
}

.anomaly-ai-panel__titles[b-jv688xedbk] {
    min-width: 0;
    padding-top: 0.125rem;
}

.anomaly-ai-panel__title[b-jv688xedbk] {
    font-weight: 600 !important;
    color: #1e293b !important;
    margin: 0 0 0.2rem !important;
    line-height: 1.35 !important;
}

.anomaly-ai-panel__subtitle[b-jv688xedbk] {
    display: block;
    line-height: 1.45 !important;
    margin: 0 !important;
}

.anomaly-ai-panel__body[b-jv688xedbk] {
    padding: 0;
}

.anomaly-ai-panel__body--static[b-jv688xedbk] {
    padding: 0 1.25rem 1.25rem;
}

.anomaly-ai-panel__body--static code[b-jv688xedbk] {
    font-size: 0.8em;
    padding: 0.1em 0.35em;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.05);
}

.anomaly-ai-panel__body[b-jv688xedbk]  .chat-window.anomaly-detail-chat {
    border: none;
    border-radius: 0;
    background: transparent;
    min-height: 320px;
    max-height: min(52vh, 520px);
}

.anomaly-ai-panel__body[b-jv688xedbk]  .chat-window.anomaly-detail-chat .chat-placeholder {
    padding-inline: 1.25rem !important;
    padding-block: 1.75rem 2rem !important;
    max-width: 19rem;
    animation: anomaly-chat-placeholder-in-b-jv688xedbk 0.45s ease-out both;
}

.anomaly-ai-panel__body[b-jv688xedbk]  .chat-window.anomaly-detail-chat .chat-placeholder-icon-wrap {
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(
        145deg,
        color-mix(in srgb, var(--primary, #2563eb) 14%, #fff) 0%,
        color-mix(in srgb, #8b5cf6 12%, #fff) 100%
    );
    border-color: color-mix(in srgb, var(--primary, #2563eb) 22%, transparent);
    box-shadow:
        0 6px 20px color-mix(in srgb, var(--primary, #2563eb) 14%, transparent),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.anomaly-ai-panel__body[b-jv688xedbk]  .chat-window.anomaly-detail-chat .chat-placeholder-text {
    font-size: 0.8125rem !important;
    line-height: 1.6 !important;
    color: var(--mud-palette-text-secondary, #64748b) !important;
}

.anomaly-ai-panel__body[b-jv688xedbk]  .chat-window.anomaly-detail-chat .chat-messages {
    padding-inline: 1.25rem;
    padding-block: 1rem 1.125rem;
    min-height: 10rem;
    background:
        radial-gradient(ellipse 120% 80% at 50% -20%, color-mix(in srgb, var(--primary, #2563eb) 6%, transparent) 0%, transparent 55%),
        linear-gradient(180deg, color-mix(in srgb, var(--mud-palette-surface, #f8fafc) 100%, transparent) 0%, var(--mud-palette-background, #fff) 100%);
    border-bottom: 1px solid #f1f5f9;
}

.anomaly-ai-panel__body[b-jv688xedbk]  .chat-window.anomaly-detail-chat .chat-input-area {
    padding: 0.75rem 1.25rem 1.125rem;
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
    border-top: none;
}

.anomaly-ai-panel__body[b-jv688xedbk]  .chat-window.anomaly-detail-chat .chat-input-field:focus-within .mud-input-outlined-border {
    border-color: color-mix(in srgb, var(--primary, #2563eb) 45%, var(--mud-palette-lines-default, #e2e8f0)) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary, #2563eb) 12%, transparent);
}

.anomaly-ai-panel__body[b-jv688xedbk]  .chat-window.anomaly-detail-chat .chat-input-field .mud-input-outlined {
    border-radius: 12px;
}

@keyframes anomaly-chat-placeholder-in-b-jv688xedbk {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.anomaly-ai-panel--disabled[b-jv688xedbk] {
    opacity: 0.95;
}
/* /Components/Shared/Counterparties/CounterpartyAnomalyView.razor.rz.scp.css */
[b-eoy1pxhh4n] .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-eoy1pxhh4n] {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.empty-title[b-eoy1pxhh4n] {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
}

[b-eoy1pxhh4n] .anomaly-layout {
    align-items: flex-start;
}

[b-eoy1pxhh4n] .anomaly-list-panel {
    background: white !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    overflow: hidden !important;
}

.anomaly-list-toolbar[b-eoy1pxhh4n] {
    flex-shrink: 0;
}

.anomaly-list-header[b-eoy1pxhh4n] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 12px 18px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.06) 0%, rgba(59, 130, 246, 0.02) 100%);
    flex-shrink: 0;
}

/* Scroll area: only THIS flex child shrinks (min-height:0). Card rows must NOT flex-shrink or MudButton squishes. */
.anomaly-list[b-eoy1pxhh4n] {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px 16px;
    scroll-behavior: smooth;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #fff !important;
}

.anomaly-list[b-eoy1pxhh4n]::-webkit-scrollbar {
    width: 6px;
}

.anomaly-list[b-eoy1pxhh4n]::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

[b-eoy1pxhh4n] .anomaly-card-button {
    cursor: pointer;
    text-transform: none !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    text-align: left !important;
    width: 100% !important;
    min-height: 5.25rem;
    height: auto !important;
    max-height: none !important;
    flex-shrink: 0 !important;
    padding: 14px 16px !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 4px solid transparent !important;
    background: white;
    overflow: visible !important;
}

/* Mud wraps content in .mud-button-label (flex); defaults can vertically squash multi-line cards */
[b-eoy1pxhh4n] .anomaly-card-button .mud-button-label {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    white-space: normal !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: left !important;
    line-height: normal !important;
}

[b-eoy1pxhh4n] .anomaly-card-button:hover {
    border-color: #94a3b8 !important;
    background: #f8fafc;
}

[b-eoy1pxhh4n] .anomaly-card-button.active {
    border-color: var(--primary) !important;
    background: rgba(0, 150, 136, 0.08) !important;
}

[b-eoy1pxhh4n] .anomaly-card-button.severity-error {
    border-left-color: var(--danger) !important;
}

[b-eoy1pxhh4n] .anomaly-card-button.severity-warning {
    border-left-color: var(--warning) !important;
}

[b-eoy1pxhh4n] .anomaly-card-button.severity-info {
    border-left-color: var(--info) !important;
}

.anomaly-card-content[b-eoy1pxhh4n] {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    min-height: min-content;
}

.anomaly-icon-wrap[b-eoy1pxhh4n] {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    margin-top: 2px;
}

[b-eoy1pxhh4n] .anomaly-card-button.active .anomaly-icon-wrap {
    background: #bfdbfe;
}

.anomaly-text-wrap[b-eoy1pxhh4n] {
    flex: 1 1 auto;
    text-align: left;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.anomaly-score-wrap[b-eoy1pxhh4n] {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 2px;
}

[b-eoy1pxhh4n] .anomaly-description {
    font-size: 0.9375rem;
    color: #1e293b;
    line-height: 1.45 !important;
    white-space: normal !important;
}

[b-eoy1pxhh4n] .anomaly-meta {
    font-size: 0.8125rem !important;
    line-height: 1.45 !important;
    white-space: normal !important;
    color: #64748b !important;
}

[b-eoy1pxhh4n] .anomaly-selected-icon {
    color: var(--mud-palette-primary) !important;
}

[b-eoy1pxhh4n] .severity-error .anomaly-direction-icon {
    color: var(--mud-palette-error) !important;
}

[b-eoy1pxhh4n] .severity-warning .anomaly-direction-icon {
    color: var(--mud-palette-warning) !important;
}

[b-eoy1pxhh4n] .severity-info .anomaly-direction-icon {
    color: var(--mud-palette-info) !important;
}

@media (max-width: 960px) {
    [b-eoy1pxhh4n] .anomaly-list-panel {
        position: static !important;
        max-height: 400px !important;
    }
}

.tbi-anomaly-list-header[b-eoy1pxhh4n] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.04) 0%, rgba(59, 130, 246, 0.01) 100%);
    flex-shrink: 0;
}

.tbi-list-header-content[b-eoy1pxhh4n] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tbi-list-title[b-eoy1pxhh4n] {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #1e293b;
}
[b-eoy1pxhh4n] .anomaly-card-button.mud-button-root,
[b-eoy1pxhh4n] .anomaly-card-button.mud-ripple::after {
    /* display: none !important; */
    animation: none !important;
}

[b-eoy1pxhh4n] .anomaly-card-button .mud-ripple-effect {
    display: none !important;
    animation: none !important;
}

/* Kill the default MudButton text hover/active overlay */
[b-eoy1pxhh4n] .mud-button-text.anomaly-card-button:hover::before,
[b-eoy1pxhh4n] .mud-button-text.anomaly-card-button:active::before,
[b-eoy1pxhh4n] .mud-button-text.anomaly-card-button:focus::before {
    opacity: 0 !important;
    transition: none !important;
}
/* /Components/Shared/Counterparties/CounterpartyListPage.razor.rz.scp.css */
/* Customers / Suppliers insight — Dashboard-aligned header, Settings-style tabs, Dashboard anomaly table chrome */

/* ─── Header (Dashboard parity) ─── */
.cp-insight-page .insight-dashboard-header[b-zuv7vtym7d] {
    padding-bottom: 7px;
    margin-bottom: 1rem;
    position: relative;
}

.cp-insight-page .insight-dashboard-header[b-zuv7vtym7d]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 0;
    height: 1px;
    background-color: #E4E4E7;
    width: 100vw;
    margin-left: -50vw;
}

.cp-insight-page .insight-dashboard-header h5[b-zuv7vtym7d] {
    color: #1f2937;
    font-weight: 600;
    margin: 0;
}

.cp-insight-page .insight-header-row[b-zuv7vtym7d] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.cp-insight-page .insight-header-actions[b-zuv7vtym7d] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-left: auto;
}

.cp-insight-page[b-zuv7vtym7d]  .ie-refresh-btn.mud-button-outlined {
    text-transform: none;
    font-weight: 500;
    letter-spacing: normal;
}

.cp-insight-page[b-zuv7vtym7d]  .ie-refresh-btn .mud-button-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ─── Settings-style tabs (MudTabs skinned to match former Bootstrap nav-tabs) ─── */
.settings-tabs-section[b-zuv7vtym7d] {
    background-color: #F8F8F8;
}

[b-zuv7vtym7d] .mud-tabs-tabbar{
    background-color: #F8F8F8 !important;
}
.tabs-section[b-zuv7vtym7d] {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.cp-insight-page[b-zuv7vtym7d]  .cp-insight-main-tabs.mud-tabs {
    width: 100%;
}

.cp-insight-page[b-zuv7vtym7d]  .cp-insight-main-tabs .mud-tabs-toolbar {
    background-color: #F8F8F8;
    border-bottom: 1px solid #dee2e6;
    min-height: unset;
}

.cp-insight-page[b-zuv7vtym7d]  .cp-insight-main-tabs .mud-tabs-toolbar-inner {
    gap: 0;
}

.cp-insight-page[b-zuv7vtym7d]  .cp-insight-main-tabs .mud-tab {
    text-transform: none;
    font-weight: 500;
    font-size: 1rem;
    color: #6c757d !important;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #dee2e6;
    background: transparent;
    min-height: 2.75rem;
    padding-inline: 1rem;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.cp-insight-page[b-zuv7vtym7d]  .cp-insight-main-tabs .mud-tab:hover {
    background-color: #F8F8F8 !important;
}

.cp-insight-page[b-zuv7vtym7d]  .cp-insight-main-tabs .mud-tab.mud-tab-active {
    color: #009688 !important;
    font-weight: 600;
    background-color: #F8F8F8 !important;
    border: 1px solid #dee2e6;
    border-bottom: none;
}

.cp-insight-page[b-zuv7vtym7d]  .cp-insight-main-tabs .mud-tabs-panels {
    background: transparent;
    border: none;
    box-shadow: none;
}

.cp-insight-page[b-zuv7vtym7d]  .cp-insight-main-tabs .cp-insight-tab-label {
    color: inherit;
    font: inherit;
    font-weight: 600;
    font-size: 14px!important;

}

/* ─── Table section + MudTable (Dashboard ie-anomaly-* parity) ─── */
.cp-insight-page[b-zuv7vtym7d]  .ownership-section.ie-anomaly-section {
    border-radius: 0.375rem !important;
    border: 1px solid #dee2e6 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.cp-insight-page .section-header.ie-anomaly-section-header[b-zuv7vtym7d],
.cp-insight-page .ownership-section .section-header[b-zuv7vtym7d] {
    background: linear-gradient(135deg, rgba(0, 150, 136, 0.06) 0%, rgba(0, 150, 136, 0.02) 100%);
    border-bottom: 1px solid #dee2e6;
}

.cp-insight-page[b-zuv7vtym7d]  .ie-anomaly-table {
    background-color: #fff;
}

.cp-insight-page[b-zuv7vtym7d]  .ie-anomaly-table .mud-table-head .mud-table-cell {
    background-color: #f8f9fa !important;
    font-weight: 600;
    color: #495057;
    font-size: 0.8125rem;
    padding: 8px !important;
    border-bottom: 1px solid #dee2e6;
}

.cp-insight-page[b-zuv7vtym7d]  .ie-anomaly-table .mud-table-body .mud-table-cell {
    padding: 8px !important;
    vertical-align: middle;
}

.cp-insight-page[b-zuv7vtym7d]  .ie-anomaly-table .mud-table-row {
    cursor: pointer;
}

.cp-insight-page[b-zuv7vtym7d]  .ie-anomaly-table .mud-table-row:hover {
    background-color: #f8fafc;
}

.cp-insight-page[b-zuv7vtym7d]  .ie-anomaly-table .table-header {
    font-weight: 600;
    color: #64748b;
}

@media (max-width: 768px) {
    .cp-insight-page .insight-header-actions[b-zuv7vtym7d] {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Global CSS for MudBlazor menu items - must use ::deep to penetrate component boundary */
[b-zuv7vtym7d] .mud-popover-paper .mud-menu-item,
[b-zuv7vtym7d] .mud-popover-paper .mud-menu-list .mud-menu-item,
[b-zuv7vtym7d] .mud-menu-item,
[b-zuv7vtym7d] .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-zuv7vtym7d] {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.menu-item-icon[b-zuv7vtym7d] {
    flex-shrink: 0;
}

.menu-item-text[b-zuv7vtym7d] {
    flex: 1;
}

.loading-container[b-zuv7vtym7d] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 60px 20px;
}

[b-zuv7vtym7d] .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-zuv7vtym7d] {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.empty-title[b-zuv7vtym7d] {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
}

[b-zuv7vtym7d] .ownership-section {
    background: var(--white) !important;
    border-radius: 12px !important;
    margin-bottom: 20px !important;
    border: 1px solid #e2e8f0 !important;
    overflow: hidden !important;
}

.insight-subsection-heading[b-zuv7vtym7d] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    color: #1e293b;
    margin: 0 0 0.75rem 0;
}

.insight-subsection-heading--split[b-zuv7vtym7d] {
    width: 100%;
    flex-wrap: wrap;
    row-gap: 0.5rem;
}

.insight-subsection-heading__start[b-zuv7vtym7d] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.insight-subsection-heading__end[b-zuv7vtym7d] {
    flex-shrink: 0;
    margin-left: auto;
}

.ownership-table[b-zuv7vtym7d] {
    background: transparent;
}

[b-zuv7vtym7d] .ownership-table .mud-table-head {
    background-color: #f8f9fa;
}

[b-zuv7vtym7d] .ownership-table .mud-table-head .mud-table-cell {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 10px 12px;
    white-space: nowrap;
    user-select: none;
}

[b-zuv7vtym7d] .ownership-table .mud-table-cell {
    padding: 16px 24px;
    border-bottom: 1px solid #f1f5f9;
}

[b-zuv7vtym7d] .ownership-table .mud-table-row {
    cursor: pointer;
}

[b-zuv7vtym7d] .ownership-table .mud-table-row:hover {
    background: #f8fafc;
}
.company-cell[b-zuv7vtym7d] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.company-icon[b-zuv7vtym7d] {
    color: #64748b;
}

.company-name[b-zuv7vtym7d] {
    font-weight: 500;
    color: #1e293b;
}

.company-cell.clickable[b-zuv7vtym7d] {
    cursor: pointer;
}

.company-cell.clickable:hover .link-name[b-zuv7vtym7d] {
    color: var(--mud-palette-primary);
    text-decoration: underline;
}

.cp-insight-page .cp-table-row-open[b-zuv7vtym7d] {
    cursor: pointer;
}

@media (max-width: 960px) {
    [b-zuv7vtym7d] .ownership-table .mud-table-cell {
        padding: 12px 16px;
    }
}
/* /Components/Shared/Counterparties/CounterpartyPieChart.razor.rz.scp.css */
[b-rqnvsert4a] .chart-panel {
    background: white !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    overflow: hidden !important;
}

.chart-header[b-rqnvsert4a] {
    padding: 16px 20px 8px 20px;
}

.chart-container[b-rqnvsert4a] {
    padding: 8px 16px 16px 16px;
    width: 100%;
    min-width: 0;
    overflow: hidden;
}
/* /Components/Shared/Counterparties/CounterpartyRevenueChart.razor.rz.scp.css */
[b-or3h0t4pv0] .chart-panel {
    background: white !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    overflow: hidden !important;
}

.chart-header[b-or3h0t4pv0] {
    padding: 16px 20px 8px 20px;
}

.chart-container[b-or3h0t4pv0] {
    padding: 8px 16px 16px 16px;
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

[b-or3h0t4pv0] .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-or3h0t4pv0] {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.empty-title[b-or3h0t4pv0] {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}
/* /Components/Shared/Counterparties/Details/CounterpartyDetailsPartyList.razor.rz.scp.css */
.loading-container[b-x8m1hkuq6c] {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 0.5rem;
    padding: 3rem 0;
}

[b-x8m1hkuq6c] .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-x8m1hkuq6c] {
    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);
}

.section-title[b-x8m1hkuq6c] {
    font-weight: 600;
    color: #1e293b;
    padding-top: 5px;
}

[b-x8m1hkuq6c] .ownership-table .mud-table-head {
    background-color: #f8f9fa;
}

[b-x8m1hkuq6c] .ownership-table .mud-table-head .mud-table-cell {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 10px 12px;
    white-space: nowrap;
    user-select: none;
}

[b-x8m1hkuq6c] .ownership-table .mud-table-cell {
    padding: 16px 24px;
    border-bottom: 1px solid #f1f5f9;
}

[b-x8m1hkuq6c] .ownership-table .mud-table-row:hover {
    background: #f8fafc;
}

[b-x8m1hkuq6c] .table-header {
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.company-cell[b-x8m1hkuq6c] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.company-icon[b-x8m1hkuq6c] {
    color: #64748b;
}

.company-name[b-x8m1hkuq6c] {
    font-weight: 500;
    color: #1e293b;
}

@media (max-width: 960px) {
    [b-x8m1hkuq6c] .ownership-table .mud-table-cell {
        padding: 12px 16px;
    }
}
/* /Components/Shared/InsightEngineFilterBar.razor.rz.scp.css */
/* Read-only Companies field: inner input captures clicks; let them hit the wrapper so @onclick opens the dialog. */
.multi-party-field-wrapper[b-zwfm0vibmu]  input.mud-input-slot {
    pointer-events: none;
    cursor: pointer;
}

.multi-party-field-wrapper[b-zwfm0vibmu]  .mud-input-adornment {
    pointer-events: auto;
    cursor: pointer;
}
