/* _content/EVPJobEditor/Components/Admin/Users.razor.rz.scp.css */
/* Sticky toolbar for user editor actions: always visible when editing a user */
.user-editor-toolbar[b-fp3bzxv64n] {
    position: sticky;
    top: 0.5rem; /* small offset from top */
    z-index: 50;
    padding: 0.35rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    background-color: var(--theme-topbar-background, var(--theme-surface, #ffffff));
    color: var(--theme-on-background, #212529);
    border: 1px solid var(--theme-topbar-border, var(--theme-border, rgba(0,0,0,0.08)));
    border-radius: 0.375rem;
    backdrop-filter: blur(6px);
}

/* Ensure buttons inside toolbar use theme variables and remain readable */
.user-editor-toolbar .btn[b-fp3bzxv64n] {
    color: inherit;
    min-width: 110px;
}

/* Primary button appearance within toolbar */
.user-editor-toolbar .btn.btn-primary[b-fp3bzxv64n] {
    background-color: var(--theme-primary, #0d6efd);
    border-color: var(--theme-primary, #0d6efd);
    color: var(--theme-on-primary, #ffffff);
}

/* Danger outline button within toolbar - keep transparent background */
.user-editor-toolbar .btn.btn-outline-danger[b-fp3bzxv64n] {
    background-color: transparent;
    border-color: var(--theme-danger, #dc3545);
    color: var(--theme-danger, #dc3545);
}

.user-editor-toolbar .btn:hover[b-fp3bzxv64n] {
    filter: brightness(0.95);
    transform: translateY(-1px);
}

/* Dark theme tweaks */
.theme-dark .user-editor-toolbar[b-fp3bzxv64n] {
    background-color: var(--theme-topbar-background, var(--bg-surface, #2d3436));
    color: var(--theme-on-background, #ffffff);
    border-color: var(--theme-topbar-border, var(--border-light, #495057));
}

.theme-dark .user-editor-toolbar .btn.btn-primary[b-fp3bzxv64n] {
    background-color: var(--theme-primary, #0d6efd);
    border-color: var(--theme-primary, #0d6efd);
    color: var(--theme-on-primary, #ffffff);
}

.theme-dark .user-editor-toolbar .btn.btn-outline-danger[b-fp3bzxv64n] {
    background-color: transparent;
    border-color: var(--theme-danger, #dc3545);
    color: var(--theme-danger, #dc3545);
}

/* Attention highlight for save button when form dirty */
.btn-attention[b-fp3bzxv64n] {
    box-shadow: 0 6px 18px rgba(255, 193, 7, 0.25);
    border-color: #ffc107 !important;
    background-color: #ffc107 !important;
    color: rgba(0,0,0,0.9) !important;
    animation: btn-pulse-b-fp3bzxv64n 1.8s ease-in-out infinite;
}

@keyframes btn-pulse-b-fp3bzxv64n {
    0% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
    100% { transform: translateY(0); }
}

/* Respect users' reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .btn-attention[b-fp3bzxv64n] { animation: none; }
}
/* _content/EVPJobEditor/Components/GlobalActions.razor.rz.scp.css */
/* Base layout for actions row */
.global-actions[b-mq3kjtsnta] {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: nowrap;
}

.status-indicator[b-mq3kjtsnta] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--theme-secondary, #6c757d);
    white-space: nowrap;
}

.status-dot[b-mq3kjtsnta] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--theme-success, #28a745);
    flex: 0 0 auto;
}

/* Ensure icon size aligns well with small button */
.btn .bi[b-mq3kjtsnta] {
    font-size: 1rem;
    line-height: 1;
}

/* Responsive tweaks: shrink labels on narrow screens */
@media (max-width: 640.98px) {
    .global-actions[b-mq3kjtsnta] { gap: .5rem; }
    .refresh-btn .label-text[b-mq3kjtsnta] { display: none; }
    .status-indicator .status-text[b-mq3kjtsnta] { display: none; }
    .refresh-btn[b-mq3kjtsnta] { padding-left: .5rem; padding-right: .5rem; }
    .btn .bi[b-mq3kjtsnta] { margin-right: 0 !important; }
}
/* _content/EVPJobEditor/Components/Layout/MainLayout.razor.rz.scp.css */
.page-title[b-fun4tg30n6] {
    color: var(--theme-on-background, #212529);
    font-weight: 600;
    /* Force consistent vertical centering regardless of child content */
    display: flex;
    align-items: center;
    height: 3.5rem;          /* match header height */
    line-height: 3.5rem;     /* ensures text sits centered even without flex */
    /* New: prevent wrapping and allow truncation on narrow screens */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page[b-fun4tg30n6] {
    position: relative;
    display: flex;
    flex-direction: column;
}

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

.sidebar[b-fun4tg30n6] {
    background: var(--theme-sidebar-background, #2c3e50);
    transition: background-color 0.3s ease;
}

.top-row[b-fun4tg30n6] {
    background-color: var(--theme-topbar-background, #f7f7f7);
    border-bottom: 1px solid var(--theme-topbar-border, #d6d5d5);
    /* Keep title fixed on the left and actions on the right */
    justify-content: space-between;
    height: 3.5rem;
    line-height: 3.5rem;  /* normalize inline alignment for text */
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

    .top-row[b-fun4tg30n6]  a, .top-row[b-fun4tg30n6]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
        color: var(--theme-on-background, #212529);
    }

    .top-row[b-fun4tg30n6]  a:hover, .top-row[b-fun4tg30n6]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-fun4tg30n6]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

/* New: ensure the page title can shrink and truncate while the action area keeps its size */
.top-row > .page-title[b-fun4tg30n6] {
    flex: 1 1 auto;
    min-width: 0; /* enables ellipsis */
}

.top-row[b-fun4tg30n6] >  .global-actions,
.top-row > .global-actions[b-fun4tg30n6] {
    flex: 0 1 auto;
}

@media (max-width: 640.98px) {
    .top-row[b-fun4tg30n6] {
        justify-content: space-between;
        padding-left: 0.75rem !important; /* tighter padding on small screens */
        padding-right: 0.5rem !important;
        gap: .5rem;
    }

    /* Slightly smaller page title on very small screens */
    .page-title[b-fun4tg30n6] {
        font-size: 1rem;
        line-height: 3.5rem; /* keep centered */
    }

    /* Allow action area to compress without wrapping */
    .top-row[b-fun4tg30n6] >  .global-actions,
    .top-row > .global-actions[b-fun4tg30n6] {
        gap: .5rem;
        flex-wrap: nowrap;
    }
}

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

    .sidebar[b-fun4tg30n6] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-fun4tg30n6] {
        position: sticky;
        top: 0;
        /* Raise above page-level sticky toolbars (e.g., Users editor toolbar at z-index:50)
           so header dropdowns (LanguageSelector) can overlay them. Keep far below
           global overlays like #blazor-error-ui (z-index:1000). */
        z-index: 60;
    }

    .top-row.auth[b-fun4tg30n6]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-fun4tg30n6], article[b-fun4tg30n6] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-fun4tg30n6] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-fun4tg30n6] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/* Dark theme adjustments for blazor error UI */
.theme-dark #blazor-error-ui[b-fun4tg30n6] {
    color-scheme: dark only;
    background: var(--theme-danger, #dc3545);
    color: white;
}
/* _content/EVPJobEditor/Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-r25ffs3hb0] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.navbar-toggler:checked[b-r25ffs3hb0] {
    background-color: rgba(0, 0, 0, 0.1);
}

.top-row[b-r25ffs3hb0] {
    min-height: 3.5rem;
    background-color: var(--sidebar-bg);
    transition: background-color 0.3s ease;
}

.navbar-brand[b-r25ffs3hb0] {
    font-size: 1.1rem;
    color: var(--sidebar-text);
    display: flex;
    align-items: center;
    gap: .5rem;
}

.navbar-brand a[b-r25ffs3hb0] {
    color: inherit;
    text-decoration: none;
}

.navbar-brand a:hover[b-r25ffs3hb0] {
    color: inherit;
    text-decoration: none;
}

/* Icon base - uses background-image SVGs for reliability (no external font dependency) */
.bi[b-r25ffs3hb0] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

/* Icons (white fill for sidebar on dark bg) */
.bi-house-door-fill-nav-menu[b-r25ffs3hb0] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-r25ffs3hb0] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-r25ffs3hb0] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.bi-gear-fill-nav-menu[b-r25ffs3hb0] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-gear-fill' viewBox='0 0 16 16'%3E%3Cpath d='M9.405 1.05c-.413-1.4-2.397-1.4-2.81 0l-.1.34a1.464 1.464 0 0 1-2.105.872l-.31-.17c-1.283-.698-2.686.705-1.987 1.987l.169.311c.446.82.023 1.841-.872 2.105l-.34.1c-1.4.413-1.4 2.397 0 2.81l.34.1a1.464 1.464 0 0 1 .872 2.105l-.17.31c-.698 1.283.705 2.686 1.987 1.987l.311-.169a1.464 1.464 0 0 1 2.105.872l.1.34c.413 1.4 2.397 1.4 2.81 0l.1-.34a1.464 1.464 0 0 1 2.105-.872l.31.17c1.283.698 2.686-.705 1.987-1.987l-.169-.311a1.464 1.464 0 0 1 .872-2.105l.34-.1c1.4-.413 1.4-2.397 0-2.81l-.34-.1a1.464 1.464 0 0 1-.872-2.105l.17-.31c.698-1.283-.705-2.686-1.987-1.987l-.311.169a1.464 1.464 0 0 1-2.105-.872l-.1-.34zM8 10.93a2.929 2.929 0 1 1 0-5.86 2.929 2.929 0 0 1 0 5.858z'/%3E%3C/svg%3E");
}

/* From previous inline data URIs - moved to CSS */
.bi-bug-fill-nav-menu[b-r25ffs3hb0] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2716%27 height=%2716%27 fill=%27white%27 class=%27bi bi-bug-fill%27 viewBox=%270 0 16 16%27%3E%3Cpath d=%27M4.978.855a.5.5 0 1 0-.956.29l.41 1.352A4.985 4.985 0 0 0 3 6h10a4.985 4.985 0 0 0-1.432-3.503l.41-1.352a.5.5 0 1 0-.956-.29l-.291.956A4.978 4.978 0 0 0 8 1a4.979 4.979 0 0 0-2.731.811l-.291-.956z%27/%3E%3Cpath d=%27M13 6v1H8.5v8.975A5 5 0 0 0 13 11h.5a.5.5 0 0 1 .5.5v.5a.5.5 0 0 1-.5.5H13v.5a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-.5H5v.5a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-.5H3a.5.5 0 0 1-.5-.5v-.5a.5.5 0 0 1 .5-.5H3.5A5 5 0 0 0 7.5 15.975V7H3V6h10Z%27/%3E%3C/svg%3E");
}

.bi-palette-fill-nav-menu[b-r25ffs3hb0] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2716%27 height=%2716%27 fill=%27white%27 class=%27bi bi-palette-fill%27 viewBox=%270 0 16 16%27%3E%3Cpath d=%27M12.433 10.07C14.133 10.585 16 11.15 16 8a8 8 0 1 0-8 8c1.996 0 1.826-1.504 1.649-3.08-.124-1.101-.252-2.237.351-2.92.465-.527 1.42-.237 2.433.07zM8 5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm4.5 3a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zM5 6.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm.5 6.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z%27/%3E%3C/svg%3E");
}

/* Custom simple silhouettes for remaining icons */
.bi-people-fill-nav-menu[b-r25ffs3hb0] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M5.5 8a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5z'/%3E%3Cpath d='M1 14s1-3 4.5-3 4.5 3 4.5 3H1z'/%3E%3Cpath d='M11 8a2 2 0 1 0 0-4 2 2 0 0 0 0 4z'/%3E%3Cpath d='M11 9c-1.657 0-3 1.343-3 3h5s-.5-3-2-3z'/%3E%3C/svg%3E");
}

.bi-box-arrow-right-nav-menu[b-r25ffs3hb0] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M10 12v1a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v1'/%3E%3Cpath d='M15 8l-4-3v2H6v2h5v2l4-3z'/%3E%3C/svg%3E");
}

.nav-item[b-r25ffs3hb0] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

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

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

    .nav-item[b-r25ffs3hb0]  .nav-link {
        color: var(--sidebar-text);
        background: none;
        border: none;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        width: 100%;
        transition: all 0.3s ease;
        white-space: nowrap; /* prevent label wrap */
        overflow: hidden;
        text-overflow: ellipsis; /* truncate long labels */
    }

.nav-item[b-r25ffs3hb0]  a.active {
    background-color: var(--sidebar-active-bg);
    color: var(--sidebar-active-text);
    font-weight: 500;
}

.nav-item[b-r25ffs3hb0]  .nav-link:hover {
    background-color: var(--sidebar-hover-bg);
    color: var(--sidebar-text-hover);
    transform: translateX(4px);
    transition: all 0.2s ease;
}

.nav-scrollable[b-r25ffs3hb0] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-r25ffs3hb0] {
    display: block;
}

@media (max-width: 640.98px) {
    /* Make the brand line less tall and avoid wrapping */
    .top-row[b-r25ffs3hb0] { padding-right: 3.5rem; }
    .navbar-brand[b-r25ffs3hb0] { font-size: .95rem; }
}

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

    .nav-scrollable[b-r25ffs3hb0] {
        /* Never collapse the sidebar for wide screens */
        display: block;

        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}

/* Optional: subtle brightness for icons in dark theme */
.theme-dark .bi[b-r25ffs3hb0] {
    filter: brightness(1.05);
}
