/* /Components/Layout/AuthLayout.razor.rz.scp.css */
.auth-page[b-kciwvuqo7d] {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: auto;
    background:
        radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--global-palette2) 18%, transparent) 0%, transparent 55%),
        radial-gradient(circle at 80% 100%, color-mix(in srgb, var(--global-palette1) 18%, transparent) 0%, transparent 55%),
        linear-gradient(135deg, #f7faf6 0%, #eef3ec 100%);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Subtle glow blobs — same brand colors, soft and behind */
.auth-bg-blob[b-kciwvuqo7d] {
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}

.auth-bg-blob-tl[b-kciwvuqo7d] {
    top: -160px;
    left: -160px;
    background: var(--global-palette2);
}

.auth-bg-blob-br[b-kciwvuqo7d] {
    bottom: -180px;
    right: -180px;
    background: var(--global-palette1);
}

.auth-shell[b-kciwvuqo7d] {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

/* Brand row above the card */
.auth-brand[b-kciwvuqo7d] {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--global-palette1);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.01em;
}

.auth-brand i[b-kciwvuqo7d] {
    font-size: 1.7rem;
    background: linear-gradient(135deg, var(--global-palette1), var(--global-palette2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth-brand img[b-kciwvuqo7d] {
    width: 2.1rem;
    height: 2.1rem;
    object-fit: contain;
}

.auth-brand:hover[b-kciwvuqo7d] {
    color: color-mix(in srgb, var(--global-palette1) 80%, black);
}

/* Footer */
.auth-footer[b-kciwvuqo7d] {
    margin-top: 8px;
    font-size: 0.78rem;
    color: #8a9a85;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.auth-footer a[b-kciwvuqo7d] {
    color: var(--global-palette1);
    text-decoration: none;
}

.auth-footer a:hover[b-kciwvuqo7d] {
    text-decoration: underline;
}

.auth-footer .dot[b-kciwvuqo7d] {
    color: #c7d2c1;
}

/* Error UI fallback for auth layout */
#blazor-error-ui[b-kciwvuqo7d] {
    background: #fff3cd;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    color: #5c5d3c;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss[b-kciwvuqo7d] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
/* /Components/Layout/LoginDisplay.razor.rz.scp.css */
.user-info-bar[b-0tlqyqvwjn] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.user-avatar[b-0tlqyqvwjn] {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #009244 0%, #1e4c53 100%);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
    letter-spacing: 0.5px;
}

.user-name[b-0tlqyqvwjn] {
    font-weight: 600;
    font-size: 0.875rem;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
    line-height: 1.2;
}

.user-role[b-0tlqyqvwjn] {
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 3px;
    padding: 0 4px;
    display: inline-block;
    letter-spacing: 0.3px;
    line-height: 1.5;
    align-self: flex-start;
}

.role-admin[b-0tlqyqvwjn] {
    background: #fff3cd;
    color: #856404;
}

.role-superadmin[b-0tlqyqvwjn] {
    background: #f8d7da;
    color: #842029;
}

.role-manager[b-0tlqyqvwjn] {
    background: #d1e7dd;
    color: #0f5132;
}

.btn-konto[b-0tlqyqvwjn],
.btn-logout[b-0tlqyqvwjn] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #EDF2F7;
    transition: all 0.15s ease;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
}

.btn-konto:hover[b-0tlqyqvwjn] {
    background-color: rgba(193, 209, 28, 0.18);
    border-color: rgba(193, 209, 28, 0.5);
    color: #c1d11c;
}

.btn-logout:hover[b-0tlqyqvwjn] {
    background-color: rgba(229, 0, 0, 0.18);
    border-color: rgba(229, 0, 0, 0.5);
    color: #ffd5d5;
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-9rct5ncrp2] {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main[b-9rct5ncrp2] {
    flex: 1;
    overflow-y: auto;
    background-color: var(--global-palette8);
}

.sidebar[b-9rct5ncrp2] {
    background-image: linear-gradient(180deg, #022c32 0%, #0a3a35 70%, #0d3a2e 100%);
    border-right: 2px solid #009244;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Nagłówek sidebara: ikona aplikacji + nazwa „AB KSeF" (jak w SellasistOrderModifier). */
.sidebar-header[b-9rct5ncrp2] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    text-decoration: none;
}

.sidebar-header:hover[b-9rct5ncrp2] {
    background: rgba(255, 255, 255, 0.04);
}

.sidebar-logo[b-9rct5ncrp2] {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    flex-shrink: 0;
}

.sidebar-app-name[b-9rct5ncrp2] {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.sidebar-brand[b-9rct5ncrp2] {
    margin-top: auto;
    padding: 1.25rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    transition: opacity 0.2s ease;
}

.sidebar-brand img[b-9rct5ncrp2] {
    width: 85%;
    max-height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.sidebar-brand:hover[b-9rct5ncrp2] {
    opacity: 0.85;
}

.top-row[b-9rct5ncrp2] {
    min-height: 3.5rem;
    background: linear-gradient(135deg, #022c32 0%, #1e4c53 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-bottom: 2px solid #009244;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 1rem;
}

.navbar-brand[b-9rct5ncrp2] {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.navbar-brand:hover[b-9rct5ncrp2] {
    color: #c1d11c;
}

.brand-icon[b-9rct5ncrp2] {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.brand-text[b-9rct5ncrp2] {
    letter-spacing: -0.5px;
}

/* Slot na tytuł bieżącej strony (renderowany przez <PageHeader /> przez SectionOutlet/SectionContent). */
.page-header-slot[b-9rct5ncrp2] {
    gap: .65rem;
    min-width: 0;
    flex: 1 1 auto;
    color: #ffffff;
}

.page-header-icon[b-9rct5ncrp2] {
    font-size: 1.4rem;
    color: #c1d11c;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.page-header-title[b-9rct5ncrp2] {
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.2px;
}

/* Style switchera Managera są w ManagerPerspectiveDropdown.razor.css (scoped do tego komponentu) —
   z poziomu MainLayout.razor.css nie łapią się na elementy innego komponentu Blazor. */

.content[b-9rct5ncrp2] {
    max-width: 100%;
}

/* Backdrop zawsze w DOM (JS przełącza .sidebar-open na .page) — domyślnie ukryty,
   widoczny tylko na mobile gdy szuflada otwarta. */
.sidebar-backdrop[b-9rct5ncrp2] {
    display: none;
}

@media (min-width: 768px) {
    .page[b-9rct5ncrp2] {
        flex-direction: row;
    }

    .sidebar[b-9rct5ncrp2] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }

    main[b-9rct5ncrp2] {
        flex: 1;
        min-width: 0;
        max-width: calc(100vw - 250px);
        overflow-x: hidden;
        overflow-y: auto;
        height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .top-row[b-9rct5ncrp2] {
        position: sticky;
        top: 0;
        z-index: 10;
        flex-shrink: 0;
    }
}

@media (max-width: 767.98px) {
    .navbar-brand[b-9rct5ncrp2] {
        font-size: 1rem;
    }

    /* Szuflada off-canvas: czysty CSS transform; Blazor przełącza klasę .sidebar-open na .page. */
    .sidebar[b-9rct5ncrp2] {
        position: fixed;
        inset: 0 auto 0 0;          /* przyklejona do lewej, pełna wysokość */
        width: 260px;
        max-width: 82vw;
        height: 100vh;              /* fallback dla starszych silników */
        height: 100dvh;             /* dynamic viewport — uwzględnia pasek adresu na mobile */
        max-height: none;
        z-index: 1050;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .page.sidebar-open .sidebar[b-9rct5ncrp2] {
        transform: none;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35);
    }

    .page.sidebar-open .sidebar-backdrop[b-9rct5ncrp2] {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        animation: backdrop-fade-b-9rct5ncrp2 0.2s ease;
    }

    @keyframes backdrop-fade-b-9rct5ncrp2 {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    .navbar-toggler-mobile[b-9rct5ncrp2] {
        flex-shrink: 0;
        width: 2.5rem;
        height: 2.5rem;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: var(--radius-sm);
        color: #ffffff;
        font-size: 1.35rem;
        line-height: 1;
        cursor: pointer;
    }

    .navbar-toggler-mobile:hover[b-9rct5ncrp2],
    .navbar-toggler-mobile:focus[b-9rct5ncrp2] {
        background: rgba(255, 255, 255, 0.12);
        outline: none;
    }

    .top-row[b-9rct5ncrp2] {
        position: sticky;
        top: 0;
        z-index: 1030;
    }
}
/* /Components/Layout/ManagerPerspectiveDropdown.razor.rz.scp.css */
/* Switcher perspektywy Managera w topbar — ujednolicony z .btn-konto / .btn-logout
   z LoginDisplay.razor.css (ten sam padding, font-size, border, radius, color, hover).
   CSS scoped do tego komponentu — bo MainLayout.razor.css nie łapie elementów innego komponentu. */
.manager-perspective-dropdown[b-4wjh9myy1a] {
    position: relative;
}

.btn-perspective[b-4wjh9myy1a] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #EDF2F7;
    transition: all 0.15s ease;
    white-space: nowrap;
    cursor: pointer;
}

.btn-perspective strong[b-4wjh9myy1a] {
    font-weight: 600;
    color: #ffffff;
}

.btn-perspective:hover[b-4wjh9myy1a],
.btn-perspective:focus[b-4wjh9myy1a],
.btn-perspective[aria-expanded="true"][b-4wjh9myy1a] {
    background-color: rgba(193, 209, 28, 0.18);
    border-color: rgba(193, 209, 28, 0.5);
    color: #c1d11c;
    outline: none;
}

.btn-perspective:hover strong[b-4wjh9myy1a],
.btn-perspective:focus strong[b-4wjh9myy1a],
.btn-perspective[aria-expanded="true"] strong[b-4wjh9myy1a] {
    color: #c1d11c;
}

/* Dropdown-menu (Bootstrap) — głębokie selektory, bo dropdown-menu jest renderowane przez Bootstrap JS poza komponentem. */
[b-4wjh9myy1a] .dropdown-menu .dropdown-item.active {
    background-color: var(--global-palette1, #009244);
    color: #ffffff;
}

[b-4wjh9myy1a] .dropdown-menu .dropdown-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--global-palette5, #6c757d);
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.nav-section-header[b-bausugz67n] {
    color: #8b9aab;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 1rem 1.5rem 0.4rem;
    margin: 0;
}

.nav-item[b-bausugz67n] {
    font-size: 0.95rem;
    padding: 0 1rem 0.25rem;
}

.nav-item:first-of-type[b-bausugz67n] {
    padding-top: 0.25rem;
}

.nav-item:last-of-type[b-bausugz67n] {
    padding-bottom: 1rem;
}

.nav-item[b-bausugz67n]  .nav-link {
    color: #EDF2F7;
    background: none;
    border: none;
    border-radius: 8px;
    height: 3rem;
    padding: 0 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    line-height: 3rem;
    width: 100%;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.nav-item[b-bausugz67n]  .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #009244 0%, #c1d11c 100%);
    transition: width 0.3s ease;
    border-radius: 8px 0 0 8px;
}

.nav-item[b-bausugz67n]  .nav-link:hover::before {
    width: 4px;
}

.nav-item[b-bausugz67n]  .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transform: translateX(4px);
}

.nav-item[b-bausugz67n]  a.active {
    background: linear-gradient(90deg, rgba(0, 146, 68, 0.18) 0%, rgba(193, 209, 28, 0.1) 100%);
    color: #c1d11c;
    font-weight: 600;
    border-left: 4px solid #009244;
    padding-left: calc(0.875rem - 4px);
}

.nav-item[b-bausugz67n]  .nav-link i {
    font-size: 1.05rem;
    flex-shrink: 0;
    width: 1.25rem;
    text-align: center;
}

.nav-text[b-bausugz67n] {
    position: relative;
    z-index: 1;
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-21c5wabok2],
.components-reconnect-repeated-attempt-visible[b-21c5wabok2],
.components-reconnect-failed-visible[b-21c5wabok2],
.components-pause-visible[b-21c5wabok2],
.components-resume-failed-visible[b-21c5wabok2],
.components-rejoining-animation[b-21c5wabok2] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-21c5wabok2],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-21c5wabok2],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-21c5wabok2],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-21c5wabok2],
#components-reconnect-modal.components-reconnect-retrying[b-21c5wabok2],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-21c5wabok2],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-21c5wabok2],
#components-reconnect-modal.components-reconnect-failed[b-21c5wabok2],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-21c5wabok2] {
    display: block;
}


#components-reconnect-modal[b-21c5wabok2] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-21c5wabok2 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-21c5wabok2 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-21c5wabok2 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-21c5wabok2]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-21c5wabok2 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-21c5wabok2 {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-21c5wabok2 {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-21c5wabok2 {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-21c5wabok2] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-21c5wabok2] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-21c5wabok2] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-21c5wabok2] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-21c5wabok2] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-21c5wabok2] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-21c5wabok2] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-21c5wabok2 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-21c5wabok2] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-21c5wabok2 {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
