.budget-review-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
}

.summary-stats-bar .stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    text-align: center;
    height: 100%;
}

.summary-stats-bar .stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.25rem;
}

.summary-stats-bar .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bs-light);
}

.summary-stats-bar .stat-sub {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
}

.stat-value.positive {
    color: #22c55e;
}

.stat-value.negative {
    color: #ef4444;
}

.controls-row {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}

.jurisdiction-toggle .btn {
    font-weight: 600;
    font-size: 0.875rem;
}

.category-filters .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.625rem;
    border-radius: 1rem;
}

.dept-table-card,
.side-by-side-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.dept-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    padding: 0.75rem 1rem;
    white-space: nowrap;
}

.dept-table th.sortable {
    cursor: pointer;
    user-select: none;
}

.dept-table th.sortable:hover {
    color: var(--bs-primary);
}

.dept-table th.sort-active {
    color: var(--bs-primary);
}

.dept-table td {
    padding: 0.625rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.875rem;
}

.dept-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.dept-name-link {
    color: var(--bs-light);
    text-decoration: none;
    font-weight: 500;
}

.dept-name-link:hover {
    color: var(--bs-primary);
    text-decoration: underline;
}

.parent-toggle {
    vertical-align: middle;
    line-height: 1;
    transition: transform 0.15s ease;
    text-decoration: none !important;
}

.child-dept-row td {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    border-top: none;
}

.child-dept-row .dept-name-link {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
}

.child-dept-row .dept-name-link:hover {
    color: var(--bs-primary);
}

.category-tag {
    display: inline-block;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 1rem;
    font-weight: 600;
    white-space: nowrap;
}

.category-tag.public-safety { background: rgba(220, 53, 69, 0.2); color: #f87171; }
.category-tag.education { background: rgba(13, 202, 240, 0.2); color: #67e8f9; }
.category-tag.infrastructure { background: rgba(255, 193, 7, 0.2); color: #fcd34d; }
.category-tag.health-welfare { background: rgba(25, 135, 84, 0.2); color: #6ee7b7; }
.category-tag.community-services { background: rgba(13, 110, 253, 0.2); color: #93c5fd; }
.category-tag.administration { background: rgba(108, 117, 125, 0.2); color: #9ca3af; }
.category-tag.general-government { background: rgba(255, 255, 255, 0.1); color: #d1d5db; }

.yoy-positive {
    color: #22c55e;
    font-weight: 600;
}

.yoy-negative {
    color: #ef4444;
    font-weight: 600;
}

.sparkline-container {
    width: 100px;
    height: 28px;
    display: inline-block;
}

.sparkline-container canvas {
    width: 100%;
    height: 100%;
}

.side-by-side-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    padding: 0.625rem 0.75rem;
    white-space: nowrap;
}

.side-by-side-table td {
    padding: 0.5rem 0.75rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
}

.side-by-side-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.cursor-pointer {
    cursor: pointer;
}

.toggle-icon {
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.toggle-icon.rotated {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .col-sparkline,
    .col-positions {
        display: none;
    }

    .budget-review-header h1 {
        font-size: 1.35rem;
    }

    .summary-stats-bar .stat-value {
        font-size: 1.15rem;
    }

    .category-filters {
        overflow-x: auto;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.25rem;
    }

    .category-filters .btn {
        flex-shrink: 0;
    }

    .dept-table td,
    .dept-table th {
        padding: 0.5rem 0.625rem;
        font-size: 0.8rem;
    }

    .controls-row {
        padding: 0.5rem 0.75rem;
    }
}
