@import '_content/Blazor.Bootstrap/Blazor.Bootstrap.olwso25aue.bundle.scp.css';
@import '_content/Havit.Blazor.Components.Web.Bootstrap/Havit.Blazor.Components.Web.Bootstrap.mm3aqpuyun.bundle.scp.css';

/* /Components/Layout/LayoutAdmin.razor.rz.scp.css */
/* ── PREMIUM LAYOUT — aBlazor Design System ── */

/* ── Page Shell ── */
.page-container[b-o8nksf1r4z] {
    display: flex;
    min-height: 100vh;
    background: #f8fafc;
}

.sidebar-backdrop[b-o8nksf1r4z] {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 200;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.sidebar-backdrop.visible[b-o8nksf1r4z] {
    display: block;
    opacity: 1;
}

/* ── Main Content Wrapper ── */
.main-content-wrapper[b-o8nksf1r4z] {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-left: 200px;
    padding-top: 38px; /* reserve space for fixed topbar */
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 0;
    background: #f8fafc;
}

.main-content-wrapper.sidebar-collapsed[b-o8nksf1r4z] {
    margin-left: 72px;
}

.main-content-wrapper.sidebar-hidden[b-o8nksf1r4z] {
    margin-left: 0;
}


/* ── Main Content ── */
main[b-o8nksf1r4z] {
    flex: 1;
    min-height: 0;
}

/* ── Desktop Top App Bar ── */
.topbar[b-o8nksf1r4z] {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(99, 102, 241, 0.18);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.22), 0 1px 0 rgba(255,255,255,0.04) inset;
    z-index: 400;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Topbar Left ── */
.topbar-left[b-o8nksf1r4z] {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
}

.topbar-toggle-btn[b-o8nksf1r4z] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.topbar-toggle-btn:hover[b-o8nksf1r4z] {
    background: rgba(99, 102, 241, 0.18);
    border-color: rgba(99, 102, 241, 0.35);
    color: #c7d2fe;
    transform: scale(1.08);
}

.topbar-toggle-btn:active[b-o8nksf1r4z] {
    transform: scale(0.96);
}

.topbar-role-badge[b-o8nksf1r4z] {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px 5px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

/* ── Topbar Right ── */
.topbar-right[b-o8nksf1r4z] {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-avatar[b-o8nksf1r4z] {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #818cf8);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px rgba(99,102,241,0.35), 0 2px 8px rgba(99,102,241,0.25);
    flex-shrink: 0;
}

.topbar-user-info[b-o8nksf1r4z] {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.topbar-username[b-o8nksf1r4z] {
    font-size: 13px;
    font-weight: 600;
    color: #f1f5f9;
    white-space: nowrap;
}

.topbar-userrole[b-o8nksf1r4z] {
    font-size: 11px;
    font-weight: 400;
    color: #64748b;
    white-space: nowrap;
    margin-top: -3px;
}

.topbar-divider[b-o8nksf1r4z] {
    width: 1px;
    height: 26px;
    background: rgba(255,255,255,0.1);
    border-radius: 1px;
}

.topbar-logout-icon-btn[b-o8nksf1r4z] {
    transition: transform 0.15s ease, box-shadow 0.2s ease !important;
    border-radius: 8px !important;
}

.topbar-logout-icon-btn:hover[b-o8nksf1r4z] {
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.35) !important;
}


/* ── Mobile Header Bar ── */
.mobile-header-bar[b-o8nksf1r4z] {
    display: none;
    align-items: center;
    padding: 0 16px;
    height: 44px;
    background: #1e293b;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 250;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ── Alternance date ── */
.alternance-date[b-o8nksf1r4z] {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

/* ── Mobile topbar user info ── */
.topbar-user-info--mobile[b-o8nksf1r4z] {
    text-align: right;
    margin-right: 4px;
}

.topbar-user-info-row[b-o8nksf1r4z] {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
}

/* ── Main content ── */
.main-content[b-o8nksf1r4z] {
    flex: 1;
}

@media (max-width: 767px) {
    .main-content-wrapper[b-o8nksf1r4z] {
        margin-left: 0 !important;
        padding-top: 44px !important;
    }

    .mobile-header-bar[b-o8nksf1r4z] {
        display: flex !important;
    }

    .topbar[b-o8nksf1r4z] {
        display: none !important;
    }

    .topbar-username[b-o8nksf1r4z] {
        max-width: 160px;
        white-space: normal;
        word-break: break-word;
    }

    .topbar-userrole[b-o8nksf1r4z] {
        margin-top: 4px;
    }

    .main-content[b-o8nksf1r4z] {
        padding: 8px !important;
    }
}

@media (max-width: 420px) {
    .alternance-date[b-o8nksf1r4z] {
        display: none;
    }

    .topbar-username[b-o8nksf1r4z] {
        max-width: 130px;
    }
}

/* ── Blazor Error UI ── */
#blazor-error-ui[b-o8nksf1r4z] {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-top: 2px solid #f97316;
    color: #9a3412;
    bottom: 0;
    box-shadow: 0 -4px 20px rgba(249, 115, 22, 0.15);
    display: none;
    left: 0;
    padding: 12px 24px;
    position: fixed;
    width: 100%;
    z-index: 1000;
    font-weight: 600;
    font-size: 14px;
}

#blazor-error-ui .dismiss[b-o8nksf1r4z] {
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 12px;
    font-weight: 700;
    opacity: 0.6;
    transition: opacity 0.15s;
}

#blazor-error-ui .dismiss:hover[b-o8nksf1r4z] { opacity: 1; }

/* ── Topbar Role Color Zone & Title ── */
.topbar-role-color-zone[b-o8nksf1r4z] {
    width: 12px;
    align-self: stretch;
    margin: 0 8px;
}

.topbar-role-title[b-o8nksf1r4z] {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

/* ── Global Loading Bar ── */
.global-loading-bar[b-o8nksf1r4z] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 200ms ease 0s;
}

.global-loading-bar.bar-active[b-o8nksf1r4z] {
    opacity: 1;
    /* anti-flash: 120ms delay, navigations rapides ne font pas clignoter la barre */
    transition: opacity 100ms ease 120ms;
}
/* /Components/Layout/LayoutLogin.razor.rz.scp.css */
.page[b-mm341do2d6] {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main[b-mm341do2d6] {
    flex: 1;
}

.sidebar[b-mm341do2d6] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-mm341do2d6] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-mm341do2d6]  a, .top-row .btn-link[b-mm341do2d6] {
        white-space: nowrap;
        margin-left: 1.5rem;
    }

    .top-row a:first-child[b-mm341do2d6] {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row:not(.auth)[b-mm341do2d6] {
        display: none;
    }

    .top-row.auth[b-mm341do2d6] {
        justify-content: space-between;
    }

    .top-row a[b-mm341do2d6], .top-row .btn-link[b-mm341do2d6] {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-mm341do2d6] {
        flex-direction: row;
    }

    .sidebar[b-mm341do2d6] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-mm341do2d6] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row[b-mm341do2d6], article[b-mm341do2d6] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
/* /Components/Layout/LayoutQrCode.razor.rz.scp.css */
[b-26n0hwh9a9] .rz-layout {
    background: #f5f7fb;
}

[b-26n0hwh9a9] .rz-header {
    min-height: 54px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

[b-26n0hwh9a9] .header-stack {
    background: linear-gradient(135deg, #172033, #111827) !important;
}

[b-26n0hwh9a9] .premium-rz-sidebar,
[b-26n0hwh9a9] .rz-sidebar {
    width: 250px !important;
    background:
        linear-gradient(180deg, rgba(56, 189, 248, 0.12), transparent 28%),
        linear-gradient(145deg, #172033, #111827 62%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 18px 0 45px rgba(15, 23, 42, 0.2);
}

.sidebar-content[b-26n0hwh9a9] {
    width: 100% !important;
    min-height: 100%;
    padding: 14px 10px !important;
    background: transparent !important;
}

.sidebar-brand[b-26n0hwh9a9] {
    display: flex;
    align-items: center;
    gap: 12px;
    width: calc(100% - 4px);
    min-height: 70px;
    padding: 12px;
    margin: 0 2px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sidebar-brand-mark[b-26n0hwh9a9] {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(135deg, #22c55e, #38bdf8);
    color: #07111f;
    font-size: 0.86rem;
    font-weight: 800;
}

.sidebar-brand-copy[b-26n0hwh9a9] {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-brand-title[b-26n0hwh9a9] {
    color: #f8fafc;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.2;
}

.sidebar-brand-subtitle[b-26n0hwh9a9] {
    color: #94a3b8;
    font-size: 0.76rem;
    font-weight: 600;
}

[b-26n0hwh9a9] .rz-panel-menu {
    width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

[b-26n0hwh9a9] .rz-panel-menu .rz-navigation-item-link {
    min-height: 40px !important;
    margin: 2px 4px !important;
    padding: 9px 12px !important;
    border-radius: 8px !important;
    color: #dbe5f2 !important;
    background: transparent !important;
    font-size: 0.86rem !important;
    font-weight: 650 !important;
    letter-spacing: 0 !important;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease !important;
}

[b-26n0hwh9a9] .rz-panel-menu .rz-navigation-item-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
    transform: translateX(3px);
}

[b-26n0hwh9a9] .rz-panel-menu .rz-navigation-item-active > .rz-navigation-item-link,
[b-26n0hwh9a9] .rz-panel-menu .rz-state-active > .rz-navigation-item-link {
    color: #06111f !important;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.95), rgba(56, 189, 248, 0.9)) !important;
    box-shadow: 0 10px 24px rgba(34, 197, 94, 0.2) !important;
}

[b-26n0hwh9a9] .rz-body {
    background:
        linear-gradient(180deg, rgba(34, 197, 94, 0.05), transparent 240px),
        #f5f7fb !important;
}

@media (max-width: 640.98px) {
    [b-26n0hwh9a9] .premium-rz-sidebar,
    [b-26n0hwh9a9] .rz-sidebar {
        width: min(88vw, 250px) !important;
    }
}
/* /Components/Layout/LayoutSuperAdmin.razor.rz.scp.css */
/* Premium dark left sidebar for the SuperAdmin drawer.
   Targets MudBlazor's real class names (mud-drawer / mud-nav-*) — this file previously
   targeted leftover Radzen class names (.rz-sidebar, .rz-panel-menu, ...) from before this
   layout was migrated to MudBlazor, so none of it ever actually applied. */

[b-cyt0lu0m5z] .mud-drawer {
    width: 286px !important;
    background:
        linear-gradient(180deg, rgba(56, 189, 248, 0.12), transparent 28%),
        linear-gradient(145deg, #172033, #111827 62%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 18px 0 45px rgba(15, 23, 42, 0.2);
}

[b-cyt0lu0m5z] .mud-drawer-content {
    width: 100% !important;
    min-height: 100%;
    background: transparent !important;
}

[b-cyt0lu0m5z] .mud-drawer-header {
    padding: 14px 10px !important;
}

[b-cyt0lu0m5z] .mud-drawer-header .mud-typography {
    color: #f8fafc !important;
}

[b-cyt0lu0m5z] .mud-nav-menu {
    width: 100% !important;
    padding: 0 10px !important;
}

[b-cyt0lu0m5z] .mud-nav-link {
    min-height: 40px !important;
    margin: 2px 0 !important;
    padding: 9px 12px !important;
    border-radius: 8px !important;
    color: #dbe5f2 !important;
    background: transparent !important;
    font-size: 0.86rem !important;
    font-weight: 650 !important;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease !important;
}

[b-cyt0lu0m5z] .mud-nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
    transform: translateX(3px);
}

[b-cyt0lu0m5z] .mud-nav-link.active:not(.mud-nav-link-disabled) {
    color: #06111f !important;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.95), rgba(56, 189, 248, 0.9)) !important;
    box-shadow: 0 10px 24px rgba(34, 197, 94, 0.2) !important;
}

[b-cyt0lu0m5z] .mud-nav-link.active:not(.mud-nav-link-disabled) .mud-icon-root {
    color: #06111f !important;
}

/* On desktop the drawer is docked (pushes content) and should stay open; on mobile it's a
   temporary overlay toggled by the AppBar hamburger button — this is MudDrawer's built-in
   Responsive behavior via its Md breakpoint, left untouched here. */
@media (max-width: 640.98px) {
    [b-cyt0lu0m5z] .mud-drawer {
        width: min(88vw, 286px) !important;
    }
}
/* /Components/Layout/LayoutVide.razor.rz.scp.css */
/* /Components/Layout/MainLayout.razor.rz.scp.css */
[b-d1ngsnwy1o] .rz-layout {
    background: #f5f7fb;
}

[b-d1ngsnwy1o] .rz-header {
    min-height: 54px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

[b-d1ngsnwy1o] .premium-rz-sidebar,
[b-d1ngsnwy1o] .rz-sidebar {
    width: 286px !important;
    background:
        linear-gradient(180deg, rgba(56, 189, 248, 0.12), transparent 28%),
        linear-gradient(145deg, #172033, #111827 62%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 18px 0 45px rgba(15, 23, 42, 0.2);
}

[b-d1ngsnwy1o] .rz-sidebar .rz-stack {
    width: 100% !important;
    min-height: 100%;
    padding: 14px 10px !important;
    background: transparent !important;
}

.sidebar-brand[b-d1ngsnwy1o] {
    display: flex;
    align-items: center;
    gap: 12px;
    width: calc(100% - 4px);
    min-height: 70px;
    padding: 12px;
    margin: 0 2px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sidebar-brand-mark[b-d1ngsnwy1o] {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(135deg, #22c55e, #38bdf8);
    color: #07111f;
    font-size: 0.86rem;
    font-weight: 800;
}

.sidebar-brand-copy[b-d1ngsnwy1o] {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-brand-title[b-d1ngsnwy1o] {
    color: #f8fafc;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.2;
}

.sidebar-brand-subtitle[b-d1ngsnwy1o] {
    color: #94a3b8;
    font-size: 0.76rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

[b-d1ngsnwy1o] .rz-panel-menu {
    width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

[b-d1ngsnwy1o] .rz-panel-menu .rz-navigation-item,
[b-d1ngsnwy1o] .rz-panel-menu .rz-navigation-menu {
    background: transparent !important;
}

[b-d1ngsnwy1o] .rz-panel-menu .rz-navigation-item-link {
    min-height: 40px !important;
    margin: 2px 4px !important;
    padding: 9px 12px !important;
    border-radius: 8px !important;
    color: #dbe5f2 !important;
    background: transparent !important;
    font-size: 0.86rem !important;
    font-weight: 650 !important;
    letter-spacing: 0 !important;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease !important;
}

[b-d1ngsnwy1o] .rz-panel-menu .rz-navigation-item-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
    transform: translateX(3px);
}

[b-d1ngsnwy1o] .rz-panel-menu .rz-navigation-item-active > .rz-navigation-item-link,
[b-d1ngsnwy1o] .rz-panel-menu .rz-state-active > .rz-navigation-item-link {
    color: #06111f !important;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.95), rgba(56, 189, 248, 0.9)) !important;
    box-shadow: 0 10px 24px rgba(34, 197, 94, 0.2) !important;
}

[b-d1ngsnwy1o] .rz-body {
    background:
        linear-gradient(180deg, rgba(34, 197, 94, 0.05), transparent 240px),
        #f5f7fb !important;
}

@media (max-width: 640.98px) {
    [b-d1ngsnwy1o] .premium-rz-sidebar,
    [b-d1ngsnwy1o] .rz-sidebar {
        width: min(88vw, 286px) !important;
    }
}

#blazor-error-ui[b-d1ngsnwy1o] {
    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-d1ngsnwy1o] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
/* /Shared/Components/SecurePhoto.razor.rz.scp.css */
.secure-photo-img[b-wr125hgtc2],
[b-wr125hgtc2] .secure-photo-fallback,
[b-wr125hgtc2] .secure-photo-skeleton {
    border-radius: 50% !important;
    aspect-ratio: 1 / 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.secure-photo-img[b-wr125hgtc2] {
    object-fit: cover;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.secure-photo-img:hover[b-wr125hgtc2] {
    transform: scale(1.05);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
}

[b-wr125hgtc2] .secure-photo-fallback {
    background: linear-gradient(135deg, rgba(27, 38, 59, 0.8) 0%, rgba(13, 27, 42, 0.9) 100%) !important;
    color: #e0e1dd !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    font-weight: 600;
}

[b-wr125hgtc2] .secure-photo-skeleton {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
