/* /Layout/MainLayout.razor.rz.scp.css */
.page[b-v0xp54551e] {
    position: relative;
    display: flex;
    flex-direction: column;
}

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

.sidebar[b-v0xp54551e] {
    background-image: linear-gradient(180deg, rgb(0, 42, 9) 0, #919083 90%);
}

@media (min-width: 641px) {
    .page[b-v0xp54551e] {
        flex-direction: row;
    }

    .sidebar[b-v0xp54551e] {
        width: 215px;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
        overflow: hidden;
        transition: width 0.2s ease;
    }

    main[b-v0xp54551e] {
        margin-left: 215px;
        overflow-x: hidden;
        transition: margin-left 0.2s ease;
    }

    .page.nav-collapsed .sidebar[b-v0xp54551e] {
        width: 56px;
    }

    .page.nav-collapsed main[b-v0xp54551e] {
        margin-left: 56px;
    }

    article[b-v0xp54551e] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
/* /Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-lcarkzurjx] {
    background-color: rgba(255, 255, 255, 0.1);
}

.top-row[b-lcarkzurjx] {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-lcarkzurjx] {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.nav-link .bi[b-lcarkzurjx] {
    font-size: 1.1rem;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.nav-item[b-lcarkzurjx] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
    flex-shrink: 0; /* Prevent items from shrinking - enables overflow scroll */
}

    .nav-item:first-of-type[b-lcarkzurjx] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-lcarkzurjx] {
        padding-bottom: 1rem;
    }

    .nav-item[b-lcarkzurjx]  a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

.nav-item[b-lcarkzurjx]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-lcarkzurjx]  a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.nav-spacer[b-lcarkzurjx] {
    flex: 1;
    min-height: 0; /* Allow spacer to fully collapse */
}

.nav-collapse-btn[b-lcarkzurjx] {
    display: none;
    width: calc(100% - 1rem);
    margin: 0 0.5rem 0.25rem;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none;
    border-top: 1px solid rgba(255,255,255,0.15);
    color: #d7d7d7;
    font-size: 0.85rem;
    cursor: pointer;
    align-items: center;
    gap: 0.5rem;
    border-radius: 4px;
    flex-shrink: 0;
    transition: background-color 0.15s;
}

.nav-collapse-btn:hover[b-lcarkzurjx] {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
}

/* User badge pinned at bottom of sidebar */
.user-badge[b-lcarkzurjx] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.75rem;
    margin: 0 0.5rem 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    color: #d7d7d7;
    flex-shrink: 0;
    transition: background-color 0.15s;
    border-radius: 4px;
}

.user-badge:hover[b-lcarkzurjx] {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
}

.user-badge-icon[b-lcarkzurjx] {
    font-size: 1.5rem;
    line-height: 1;
    color: rgba(255,255,255,0.7);
}

.user-badge-info[b-lcarkzurjx] {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    line-height: 1.25;
}

.user-badge-name[b-lcarkzurjx] {
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-badge-org[b-lcarkzurjx] {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 641px) {
    .navbar-toggler[b-lcarkzurjx] {
        display: none;
    }

    .collapse[b-lcarkzurjx] {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }

    .nav-collapse-btn[b-lcarkzurjx] {
        display: flex;
    }

    .nav-scrollable[b-lcarkzurjx] {
        /* Flex column: nav scrolls, user badge pinned at bottom */
        height: calc(100vh - 3.5rem);
        display: flex;
        flex-direction: column;
    }

    .nav-scrollable > nav[b-lcarkzurjx] {
        flex: 1;
        min-height: 0; /* Required for flex child to respect overflow */
        overflow-y: auto;
        overflow-x: hidden;
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
    }
}
/* /Pages/Home.razor.rz.scp.css */
/* ── Data Freshness Widget ── */
.freshness-widget[b-xn91wody6j] {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.freshness-row[b-xn91wody6j] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.freshness-item[b-xn91wody6j] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.freshness-label[b-xn91wody6j] {
    color: #666;
}

.freshness-value[b-xn91wody6j] {
    color: #212529;
}

.freshness-detail[b-xn91wody6j] {
    color: #888;
    font-size: 0.8rem;
}

.freshness-divider[b-xn91wody6j] {
    width: 1px;
    height: 1.5rem;
    background: #dee2e6;
}

.pipeline-spinner-sm[b-xn91wody6j] {
    width: 14px;
    height: 14px;
    border: 2px solid #e0e0e0;
    border-top: 2px solid #1565c0;
    border-radius: 50%;
    animation: spin-b-xn91wody6j 0.8s linear infinite;
}

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

/* ── What Changed Section ── */
.changes-section[b-xn91wody6j] {
    margin-top: 0.5rem;
}

.changes-heading[b-xn91wody6j] {
    margin-bottom: 1rem;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.changes-summary[b-xn91wody6j] {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.changes-empty[b-xn91wody6j] {
    text-align: center;
    padding: 2.5rem 1rem;
    color: #888;
}

.changes-empty p[b-xn91wody6j] {
    margin: 0.75rem 0;
    font-size: 0.95rem;
}

.changes-grid[b-xn91wody6j] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 0.75rem;
}

/* ── Change Card ── */
.change-card[b-xn91wody6j] {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    background: #fff;
    cursor: pointer;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.change-card:hover[b-xn91wody6j] {
    border-color: #1976d2;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.12);
}

.change-card-header[b-xn91wody6j] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}

.change-card-adnum[b-xn91wody6j] {
    font-weight: 600;
    font-size: 0.85rem;
    color: #1565c0;
}

.status-badge[b-xn91wody6j] {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.change-card-title[b-xn91wody6j] {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 0.3rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.change-card-meta[b-xn91wody6j] {
    font-size: 0.78rem;
    color: #888;
    margin-bottom: 0.2rem;
    display: flex;
    gap: 1rem;
}

.change-card-events[b-xn91wody6j] {
    margin-top: 0.5rem;
    padding-top: 0.45rem;
    border-top: 1px solid #f0f0f0;
}

.change-event[b-xn91wody6j] {
    font-size: 0.8rem;
    color: #555;
    padding: 2px 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.change-field[b-xn91wody6j] {
    font-weight: 600;
    color: #444;
    white-space: nowrap;
}

.change-arrow[b-xn91wody6j] {
    color: #999;
}

.change-new[b-xn91wody6j] {
    color: #2e7d32;
}

.change-old[b-xn91wody6j] {
    color: #c62828;
    text-decoration: line-through;
}

.change-more[b-xn91wody6j] {
    color: #999;
    font-style: italic;
    font-size: 0.75rem;
    padding-top: 2px;
}

/* ── Favorites List (all caught up state) ── */
.favorites-list[b-xn91wody6j] {
    margin-top: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    background: #fff;
}

.favorites-list-heading[b-xn91wody6j] {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.favorite-row[b-xn91wody6j] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid #f5f5f5;
}

.favorite-row:last-child[b-xn91wody6j] {
    border-bottom: none;
}

.favorite-link[b-xn91wody6j] {
    flex: 1;
    font-size: 0.88rem;
    color: #333;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.favorite-link:hover[b-xn91wody6j] {
    color: #1565c0;
    text-decoration: underline;
}

.audit-link[b-xn91wody6j] {
    color: #999;
    font-size: 1rem;
    padding: 0.15rem 0.3rem;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}

.audit-link:hover[b-xn91wody6j] {
    color: #1565c0;
    background: #e3f2fd;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .freshness-row[b-xn91wody6j] {
        flex-direction: column;
        align-items: flex-start;
    }

    .freshness-divider[b-xn91wody6j] {
        width: 100%;
        height: 1px;
    }

    .changes-grid[b-xn91wody6j] {
        grid-template-columns: 1fr;
    }
}
