.delta-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
}

.delta-indicator i {
    font-size: 9px;
}

.delta-indicator.delta-good {
    background: #ecfdf5;
    color: #059669;
}

.delta-indicator.delta-bad {
    background: #fef2f2;
    color: #dc2626;
}

.delta-indicator.delta-neutral {
    background: var(--gray-100, #f3f4f6);
    color: var(--gray-500, #6b7280);
}

/* Sparkline on Summary Cards */
.sparkline-container {
    margin-top: 8px;
    min-height: 24px;
    display: flex;
    align-items: center;
}

.sparkline-svg {
    display: block;
}

.sparkline-empty {
    font-size: 10px;
    color: var(--gray-400, #9ca3af);
    font-style: italic;
}

.overlay-toggle-label {
    font-size: 11px;
    color: var(--gray-500, #6b7280);
    white-space: nowrap;
}

/* ================================================================== */

/* Priority Badges */
.priority-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 500;
}

.priority-badge.critical {
    background: #fef2f2;
    color: #dc2626;
}
.priority-badge.high {
    background: #fff7ed;
    color: #ea580c;
}
.priority-badge.medium {
    background: #fefce8;
    color: #ca8a04;
}
.priority-badge.low {
    background: #f0fdf4;
    color: #16a34a;
}

/* Aging Report */
.aging-section {
    margin-top: 32px;
}

.aging-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.aging-section-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary, var(--gray-800));
    display: flex;
    align-items: center;
    gap: 8px;
}

.aging-section-header h2 i {
    color: var(--warning);
}

.threshold-control {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gray-600);
}

.threshold-control select {
    padding: 4px 8px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    background: var(--panel-bg, white);
    color: var(--text-primary, var(--gray-700));
    cursor: pointer;
}

.aging-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.aging-card {
    background: var(--panel-bg, white);
    border: 1px solid var(--panel-border, transparent);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.aging-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.aging-card.severity-green::before {
    background: var(--success);
}
.aging-card.severity-yellow::before {
    background: var(--warning);
}
.aging-card.severity-red::before {
    background: var(--danger);
}

.aging-card .aging-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 12px;
}

.aging-card.severity-green .aging-icon {
    background: #ecfdf5;
    color: #059669;
}
.aging-card.severity-yellow .aging-icon {
    background: #fffbeb;
    color: #d97706;
}
.aging-card.severity-red .aging-icon {
    background: #fef2f2;
    color: #dc2626;
}

.aging-card .aging-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.aging-card .aging-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary, var(--gray-800));
}

.aging-card .aging-sub {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 4px;
}

.stale-row-critical {
    background: rgba(239, 68, 68, 0.04) !important;
}

.stale-row-critical:hover td {
    background: rgba(239, 68, 68, 0.08) !important;
}

.stale-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.stale-link:hover {
    text-decoration: underline;
}

.age-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
}

.age-badge.age-warn {
    background: #fffbeb;
    color: #b45309;
}
.age-badge.age-danger {
    background: #fef2f2;
    color: #dc2626;
}
.age-badge.age-ok {
    background: #f0fdf4;
    color: #16a34a;
}

/* Banners & States */
.all-active-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--success);
    text-align: center;
}

.all-active-banner i {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.6;
}

.all-active-banner p {
    font-size: 14px;
    color: var(--gray-500);
    margin-top: 4px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--gray-500);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

/* Loading & Toast */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.loading-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--gray-800);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 13px;
    box-shadow: var(--shadow-lg);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s;
    z-index: 1001;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.error {
    background: var(--danger);
}

/* Scope Change Cards */

/* Export Dropdowns */
.export-dropdown {
    position: relative;
    display: inline-flex;
}

.export-dropdown-btn {
    background: none;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 11px;
    color: var(--gray-500);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s;
}

.export-dropdown-btn:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.export-dropdown-btn i {
    font-size: 10px;
}

.export-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 50;
    min-width: 120px;
    overflow: hidden;
}

.export-dropdown-menu.visible {
    display: block;
}

.export-dropdown-menu button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    border: none;
    background: none;
    font-size: 12px;
    color: var(--gray-700);
    cursor: pointer;
    text-align: left;
    transition: background 0.1s;
}

.export-dropdown-menu button:hover {
    background: var(--gray-50);
}

.export-dropdown-menu button i {
    color: var(--gray-400);
    font-size: 11px;
    width: 14px;
    text-align: center;
}

/* ================================================================== */
/* WIP Limits & Flow Section                                          */
/* ================================================================== */

/* WIP Limit Control */

/* WIP Content Grid */

@media (max-width: 768px) {

}

/* Severity badges */
