/* /Components/FilterTabs.razor.rz.scp.css */
/* FilterTabs component styling - now uses MudChipSet like ClassicDashboard */

.filter-tabs-container[b-hm138z26z1] {
    position: relative;
    margin-bottom: 1rem;
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-jczo9hf7bw] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-jczo9hf7bw] {
    flex: 1;
}

/*noinspection CssUnresolvedCustomProperty*/
.layout-content[b-jczo9hf7bw] {
    display: flex;
    width: 100%;
    margin-top: var(--mud-appbar-height);
}

.nav-scroll-container[b-jczo9hf7bw] {
    display: flex;
    flex-direction: column;
    width: 200px; /* match your drawer width */
}

.nav-scroll[b-jczo9hf7bw] {
    flex: 1;
    overflow-y: auto;
}

.main-scroll[b-jczo9hf7bw] {
    max-width: 1120px;
    width: 100%;
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.page-body[b-jczo9hf7bw] {
    box-sizing: border-box;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
}
/* /Features/ClassicDashboard/ClassicDashboardPage.razor.rz.scp.css */
.dashboard-report[b-yx0awlpe8b] {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
}

.dashboard-report > PowerBiReport[b-yx0awlpe8b] {
    flex: 1 1 auto;
    height: 100%;
    width: 100%;
}
/* /Features/CompanyToolStack/CompanyToolStack.razor.rz.scp.css */
/* Scoped styles for CompanyToolStack page */

/* Teal accent color matching DataManagement style */
[b-yf1jsh8jtf] .table-header {
    color: #008D76;
    font-weight: 300;
}

/* Responsive table layout */
@media (max-width: 768px) {
    [b-yf1jsh8jtf] .mud-table-cell {
        padding: 8px 4px;
    }
}

/* Improve readability for user overrides */
[b-yf1jsh8jtf] .mud-table-cell .mud-text {
    line-height: 1.5;
}

/* Align numeric columns */
[b-yf1jsh8jtf] .mud-table-cell[style*="text-align: right"] {
    text-align: right !important;
}
/* /Features/DecompositionDashboard/BenchmarkTree.razor.rz.scp.css */
/* BenchmarkTree.razor.css - Horizontal tree layout for decomposition dashboard */

.benchmark-tree[b-6buwm0043v] {
    width: 100%;
    overflow-x: auto;
    padding: 20px;
}

.tree-loading[b-6buwm0043v],
.tree-empty[b-6buwm0043v],
.tree-error[b-6buwm0043v] {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.tree-container[b-6buwm0043v] {
    display: flex;
    flex-direction: row;
    gap: 60px;
    align-items: flex-start;
    min-width: fit-content;
    /* Prevent layout recalculations from propagating between levels */
    contain: layout style;
}

/* Each depth level is a vertical column */
.tree-level[b-6buwm0043v] {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    /* Animate level appearing */
    animation: levelAppear-b-6buwm0043v 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Contain layout changes within this level */
    contain: layout style;
    /* Hint browser about animations */
    will-change: opacity, transform;
}

@keyframes levelAppear-b-6buwm0043v {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Tree node container */
.tree-node[b-6buwm0043v] {
    position: relative;
    /* Staggered animation for nodes within a level */
    animation: nodeAppear-b-6buwm0043v 0.3s cubic-bezier(0.4, 0, 0.2, 1) backwards;
    /* Contain layout to prevent child changes from affecting siblings */
    contain: layout style;
    /* Hint browser about animations */
    will-change: opacity, transform;
}

/* Stagger delays for first few nodes */
.tree-node:nth-child(1)[b-6buwm0043v] { animation-delay: 0ms; }
.tree-node:nth-child(2)[b-6buwm0043v] { animation-delay: 50ms; }
.tree-node:nth-child(3)[b-6buwm0043v] { animation-delay: 100ms; }
.tree-node:nth-child(4)[b-6buwm0043v] { animation-delay: 150ms; }
.tree-node:nth-child(5)[b-6buwm0043v] { animation-delay: 200ms; }
.tree-node:nth-child(n+6)[b-6buwm0043v] { animation-delay: 250ms; }

@keyframes nodeAppear-b-6buwm0043v {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Tree Connector Lines
   L-shaped connectors from parent (this level) to child (next level)

   Layout: [Parent Card] --gap 60px-- [Child Card]

   Connector shape:
   - Horizontal line from parent's right edge into the gap
   - Vertical line spanning from parent's Y to child's Y
   - Horizontal line from vertical to child's left edge
   ============================================ */

.tree-connector[b-6buwm0043v] {
    position: absolute;
    left: 100%; /* Start at right edge of level */
    width: 60px; /* Span the full gap between levels */
    pointer-events: none;
    animation: connectorAppear-b-6buwm0043v 0.3s ease-out 0.2s backwards;

    /* Bottom horizontal line: from center to right edge (vertical → child) */
    background:
        linear-gradient(var(--connector-color, #008D76), var(--connector-color, #008D76))
        no-repeat
        right bottom / calc(50% + 1px) 2px;
}

.tree-connector[b-6buwm0043v]::before,
.tree-connector[b-6buwm0043v]::after {
    content: '';
    position: absolute;
    background: var(--connector-color, #008D76);
}

/* Vertical line - centered in gap */
.tree-connector[b-6buwm0043v]::before {
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
}

/* Top horizontal line: from left edge to center (parent → vertical) */
.tree-connector[b-6buwm0043v]::after {
    top: 0;
    left: 0;
    width: calc(50% + 1px);
    height: 2px;
}

/* Reverse connector (child is above parent) */
.tree-connector.reverse[b-6buwm0043v] {
    /* Flip: bottom horizontal moves to top */
    background-position: right top;
}

.tree-connector.reverse[b-6buwm0043v]::after {
    /* Flip: top horizontal moves to bottom */
    top: auto;
    bottom: 0;
}

@keyframes connectorAppear-b-6buwm0043v {
    from {
        opacity: 0;
        transform: scaleY(0);
    }
    to {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* Responsive behavior */
@media (max-width: 1200px) {
    .tree-container[b-6buwm0043v] {
        gap: 40px;
    }

    .tree-connector[b-6buwm0043v] {
        width: 40px; /* Match reduced gap */
    }
}

/* Accessibility - reduce motion */
@media (prefers-reduced-motion: reduce) {
    .tree-level[b-6buwm0043v],
    .tree-node[b-6buwm0043v],
    .tree-benchmark-card[b-6buwm0043v],
    .tree-connector[b-6buwm0043v],
    .gauge-fill[b-6buwm0043v] {
        transition: none;
        animation: none;
    }
}
/* /Features/DecompositionDashboard/SelectedBenchmarkDetail.razor.rz.scp.css */
/* SelectedBenchmarkDetail.razor.css - Header card for selected benchmark */

.selected-benchmark-detail[b-7e8zq2hnhl] {
    background: linear-gradient(to right, #ffffff, #f8f9fa);
    border-left: 4px solid var(--mud-palette-primary);
    transition: all 0.3s ease-in-out;
}

/* Gauge container */
.detail-gauge-container[b-7e8zq2hnhl] {
    width: 100%;
}

.detail-gauge-bar[b-7e8zq2hnhl] {
    position: relative;
    height: 12px;
    background: #e8e8e8;
    border-radius: 6px;
    overflow: visible;
}

.detail-gauge-fill[b-7e8zq2hnhl] {
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease-out, background-color 0.3s ease;
}

.detail-gauge-fill.gauge-good[b-7e8zq2hnhl] {
    background: linear-gradient(90deg, #00a386, #008d76);
}

.detail-gauge-fill.gauge-poor[b-7e8zq2hnhl] {
    background: linear-gradient(90deg, #f5a89a, #e79588);
}

.detail-gauge-fill.gauge-neutral[b-7e8zq2hnhl] {
    background: #b0b0b0;
}

/* Target marker */
.detail-gauge-target[b-7e8zq2hnhl] {
    position: absolute;
    top: -4px;
    width: 3px;
    height: 20px;
    background: #333;
    border-radius: 1px;
    transform: translateX(-50%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.detail-gauge-target[b-7e8zq2hnhl]::after {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #333;
}

/* Animation for appearing */
@keyframes slideIn-b-7e8zq2hnhl {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.selected-benchmark-detail[b-7e8zq2hnhl] {
    animation: slideIn-b-7e8zq2hnhl 0.3s ease-out;
}

/* Accessibility - reduce motion */
@media (prefers-reduced-motion: reduce) {
    .selected-benchmark-detail[b-7e8zq2hnhl],
    .detail-gauge-fill[b-7e8zq2hnhl] {
        transition: none;
        animation: none;
    }
}
/* /Features/DecompositionDashboard/TreeBenchmarkCard.razor.rz.scp.css */
/* TreeBenchmarkCard.razor.css - Compact card for decomposition tree */

.tree-benchmark-card[b-iytgqqmvf6] {
    box-sizing: border-box;
    width: 230px;
    min-height: 176px; /* Fixed height for connector math - must match CardHeight in BenchmarkTree.razor */
    padding: 12px;
    background: #ffffff;
    /* Use consistent 3px border to prevent layout shift - only color changes */
    border: 3px solid transparent;
    border-color: #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    /* Smooth transitions for visual properties only - not layout */
    transition: border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Entry animation */
    animation: cardAppear-b-iytgqqmvf6 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Optimization hints for frequent state changes */
    will-change: border-color, background, box-shadow, opacity, transform;
    /* Prevent layout recalculations from propagating */
    contain: layout style;
}

@keyframes cardAppear-b-iytgqqmvf6 {
    from {
        opacity: 0;
        transform: translateX(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.tree-benchmark-card:hover[b-iytgqqmvf6] {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Keyboard focus indicator */
.tree-benchmark-card:focus[b-iytgqqmvf6] {
    outline: 2px solid #2196f3;
    outline-offset: 2px;
}

.tree-benchmark-card:focus:not(:focus-visible)[b-iytgqqmvf6] {
    outline: none;
}

.tree-benchmark-card:focus-visible[b-iytgqqmvf6] {
    outline: 2px solid #2196f3;
    outline-offset: 2px;
}

/* Visual States - only change visual properties, never layout */
.tree-benchmark-card.active[b-iytgqqmvf6] {
    border-color: #2196f3;
    background: linear-gradient(135deg, #e3f2fd 0%, #ffffff 100%);
    box-shadow: 0 4px 16px rgba(33, 150, 243, 0.35);
    /* Scale transform doesn't affect layout of siblings */
    transform: scale(1.02);
}

.tree-benchmark-card.active:hover[b-iytgqqmvf6] {
    transform: scale(1.02);
}

.tree-benchmark-card.highlighted[b-iytgqqmvf6] {
    opacity: 1;
    border-color: #90caf9;
}

.tree-benchmark-card.dimmed[b-iytgqqmvf6] {
    opacity: 0.4;
    cursor: default;
    /* Slight scale down - transform only, no layout impact */
    transform: scale(0.98);
}

.tree-benchmark-card.dimmed:hover[b-iytgqqmvf6] {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transform: scale(0.98);
}

/* Card Content */
.benchmark-name[b-iytgqqmvf6] {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.benchmark-value[b-iytgqqmvf6] {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.benchmark-subtitle[b-iytgqqmvf6] {
    font-size: 11px;
    color: #666;
    margin-bottom: 6px;
}

.benchmark-detail[b-iytgqqmvf6] {
    font-size: 11px;
    color: #888;
    margin-bottom: 8px;
}

/* Gauge Bar */
.gauge-container[b-iytgqqmvf6] {
    margin: 8px 0;
}

.gauge-bar[b-iytgqqmvf6] {
    position: relative;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: visible;
}

.gauge-fill[b-iytgqqmvf6] {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.gauge-fill.positive[b-iytgqqmvf6] {
    background: linear-gradient(90deg, #4caf50, #81c784);
}

.gauge-fill.negative[b-iytgqqmvf6] {
    background: linear-gradient(90deg, #f44336, #e57373);
}

.gauge-target-line[b-iytgqqmvf6] {
    position: absolute;
    top: -2px;
    width: 2px;
    height: 12px;
    background: #333;
    border-radius: 1px;
    transform: translateX(-50%);
}

/* NOI Impact */
.noi-impact[b-iytgqqmvf6] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    border-radius: 4px;
    margin-top: 8px;
}

.noi-impact.positive[b-iytgqqmvf6] {
    background: rgba(76, 175, 80, 0.1);
}

.noi-impact.negative[b-iytgqqmvf6] {
    background: rgba(244, 67, 54, 0.1);
}

.noi-label[b-iytgqqmvf6] {
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.noi-value[b-iytgqqmvf6] {
    font-size: 13px;
    font-weight: 600;
}

.noi-impact.positive .noi-value[b-iytgqqmvf6] {
    color: #2e7d32;
}

.noi-impact.negative .noi-value[b-iytgqqmvf6] {
    color: #c62828;
}

/* Accessibility - reduce motion */
@media (prefers-reduced-motion: reduce) {
    .tree-benchmark-card[b-iytgqqmvf6] {
        transition: opacity 0.2s ease;
        animation: none;
    }

    .tree-benchmark-card:hover[b-iytgqqmvf6] {
        transform: none;
    }

    .tree-benchmark-card.active[b-iytgqqmvf6] {
        transform: none;
    }

    .tree-benchmark-card.dimmed[b-iytgqqmvf6] {
        transform: none;
    }

    .gauge-fill[b-iytgqqmvf6] {
        transition: none;
    }
}
/* /Features/PerformanceDashboard/Components/BenchmarkCard.razor.rz.scp.css */
/* Gauge container */
.gauge-container[b-o9a8ssngzr] {
    width: 100%;
    padding: 8px 0;
}

/* Gauge wrapper */
.gauge-wrapper[b-o9a8ssngzr] {
    position: relative;
    width: 100%;
    height: 24px;
}

/* Gauge background bar */
.gauge-bar[b-o9a8ssngzr] {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
}

/* Gauge fill (actual value) */
.gauge-fill[b-o9a8ssngzr] {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-radius: 12px;
    transition: width 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

/* Target indicator line */
.gauge-target-line[b-o9a8ssngzr] {
    position: absolute;
    top: -2px;
    bottom: -2px;
    width: 3px;
    background-color: #1976d2;
    transform: translateX(-50%);
    z-index: 1;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

/* Target indicator triangle (optional enhancement) */
.gauge-target-line[b-o9a8ssngzr]::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #1976d2;
}

.gauge-target-line[b-o9a8ssngzr]::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 6px solid #1976d2;
}

/* Card expansion animations */
[b-o9a8ssngzr] .mud-card {
    transition: height 0.3s ease-in-out;
    overflow: hidden;
}

/* Smooth collapse animation */
[b-o9a8ssngzr] .mud-collapse-container {
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
/* /Features/StaffManagement/StaffDashboard.razor.rz.scp.css */
/* Month Picker Styling - Match MonthRangeSelector */
.month-picker-wrapper[b-dlt1p4zu4a]  .mud-input-control {
    width: 200px;
    white-space: nowrap;
}

.month-picker-wrapper[b-dlt1p4zu4a]  .mud-button-root {
    font-weight: 300;
}

/* Chart Card Height Ratio - roughly 2x metric cards */
.chart-card[b-dlt1p4zu4a] {
    min-height: 260px;
}

/* Chart Font Size Overrides - Make all chart text legible */

/* All SVG text elements (axis labels, data labels, etc.) */
[b-dlt1p4zu4a] .mud-chart svg text,
[b-dlt1p4zu4a] .mud-chart svg tspan {
    font-size: 16px !important;
    font-weight: 400 !important;
}

/* Chart titles - more prominent */
[b-dlt1p4zu4a] .mud-chart .mud-chart-title {
    font-size: 18px !important;
    font-weight: 500 !important;
}

/* Legend text */
[b-dlt1p4zu4a] .mud-chart .mud-chart-legend text {
    font-size: 16px !important;
}

/* Tooltip text (hover labels) - target multiple selectors */
[b-dlt1p4zu4a] .mud-tooltip-root .mud-tooltip,
[b-dlt1p4zu4a] .mud-tooltip,
[b-dlt1p4zu4a] .mud-tooltip-content {
    font-size: 16px !important;
    line-height: 1.4 !important;
}

/* X-axis labels specifically */
[b-dlt1p4zu4a] .mud-chart .mud-chart-x-axis text {
    font-size: 16px !important;
}

/* Y-axis labels specifically */
[b-dlt1p4zu4a] .mud-chart .mud-chart-y-axis text {
    font-size: 16px !important;
}

/* Make bar chart bars wider */
[b-dlt1p4zu4a] .mud-chart-bar {
    rx: 2;
}

/* Improve chart line visibility */
[b-dlt1p4zu4a] .mud-chart-line {
    stroke-width: 2.5px;
}
