/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-eh2ugo4p5x] {
    display: flex;
    min-height: 100vh;
}

.nav-toggle-checkbox[b-eh2ugo4p5x] { display: none; }

.sidebar[b-eh2ugo4p5x] {
    width: var(--sidebar-w, 260px);
    flex-shrink: 0;
    background: linear-gradient(180deg, #16324f, #1b3a5b);
    color: #e8eef4;
    display: flex;
    flex-direction: column;
    /* Pin the nav so it stays visible when a page scrolls the browser vertically OR
       horizontally (e.g. the full-width Inventory table). */
    position: sticky;
    top: 0;
    left: 0;
    height: 100vh;
    align-self: flex-start;
    z-index: 20;
}

main[b-eh2ugo4p5x] {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #f4f7fb;
}

.top-bar[b-eh2ugo4p5x] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 56px;
    padding: 0 1rem;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}

.top-bar-title[b-eh2ugo4p5x] { font-weight: 700; color: #1b3a5b; font-size: 1.05rem; }

.nav-toggle-btn[b-eh2ugo4p5x] {
    display: none;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    color: #1b3a5b;
}

.content[b-eh2ugo4p5x] {
    flex: 1;
    padding: 1.5rem;
    max-width: 1200px;
    width: 100%;
}

@media (max-width: 900px) {
    .sidebar[b-eh2ugo4p5x] {
        position: fixed;
        z-index: 30;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.2s ease;
    }
    .nav-toggle-checkbox:checked ~ .sidebar[b-eh2ugo4p5x] { transform: translateX(0); }
    .nav-toggle-btn[b-eh2ugo4p5x] { display: inline-flex; }
    .content[b-eh2ugo4p5x] { padding: 1rem; }
}

#blazor-error-ui[b-eh2ugo4p5x] {
    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-eh2ugo4p5x] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.nav-brand-row[b-eioxansmh5] {
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    justify-content: center;
}

.nav-brand[b-eioxansmh5] {
    display: block;
    text-decoration: none;
    line-height: 0;
}

.nav-brand-logo[b-eioxansmh5] {
    display: block;
    width: 100%;
    max-width: 170px;
    height: auto;
    background: #fff;
    border-radius: 12px;
    padding: 8px 10px;
}

.nav-scroll[b-eioxansmh5] {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0.5rem 1rem;
}

.nav-module[b-eioxansmh5] {
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: #8fa9c4;
    padding: 0.9rem 0.75rem 0.35rem;
    font-weight: 700;
}

.nav-item[b-eioxansmh5] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 0.5rem 0.75rem;
    margin: 0.1rem 0;
    border-radius: 0.5rem;
    color: #d7e2ee;
    text-decoration: none;
    font-size: 0.98rem;
}

.nav-item:hover[b-eioxansmh5] { background: rgba(255, 255, 255, 0.1); color: #fff; }
.nav-item.active[b-eioxansmh5] { background: rgba(255, 255, 255, 0.2); color: #fff; }

.nav-item-soon[b-eioxansmh5] {
    color: #7f97b0;
    cursor: default;
}
.nav-item-soon em[b-eioxansmh5] {
    font-style: normal;
    font-size: 0.6rem;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.12);
    padding: 0.1rem 0.35rem;
    border-radius: 0.5rem;
    letter-spacing: 0.05em;
}
.nav-item-soon:hover[b-eioxansmh5] { background: none; }

.nav-footer[b-eioxansmh5] {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.nav-user[b-eioxansmh5] { font-size: 0.85rem; color: #9fb4cb; overflow: hidden; text-overflow: ellipsis; }

.nav-signout[b-eioxansmh5] {
    color: #ffd9d0;
    text-decoration: none;
    font-weight: 600;
    min-height: 44px;
    display: flex;
    align-items: center;
}
.nav-signout:hover[b-eioxansmh5] { color: #fff; }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-swlcrvxjlu],
.components-reconnect-repeated-attempt-visible[b-swlcrvxjlu],
.components-reconnect-failed-visible[b-swlcrvxjlu],
.components-pause-visible[b-swlcrvxjlu],
.components-resume-failed-visible[b-swlcrvxjlu],
.components-rejoining-animation[b-swlcrvxjlu] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-swlcrvxjlu],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-swlcrvxjlu],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-swlcrvxjlu],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-swlcrvxjlu],
#components-reconnect-modal.components-reconnect-retrying[b-swlcrvxjlu],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-swlcrvxjlu],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-swlcrvxjlu],
#components-reconnect-modal.components-reconnect-failed[b-swlcrvxjlu],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-swlcrvxjlu] {
    display: block;
}


#components-reconnect-modal[b-swlcrvxjlu] {
    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-swlcrvxjlu 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-swlcrvxjlu 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-swlcrvxjlu 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-swlcrvxjlu]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-swlcrvxjlu 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-swlcrvxjlu {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-swlcrvxjlu {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-swlcrvxjlu {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-swlcrvxjlu] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-swlcrvxjlu] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-swlcrvxjlu] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-swlcrvxjlu] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-swlcrvxjlu] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-swlcrvxjlu] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-swlcrvxjlu] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-swlcrvxjlu 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-swlcrvxjlu] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-swlcrvxjlu {
    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;
    }
}
/* /Components/Shared/TileGrid.razor.rz.scp.css */
.tilegrid-header[b-s0apeirljs] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tilegrid-nav[b-s0apeirljs] {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tilegrid-back[b-s0apeirljs] {
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.5rem 0.9rem;
    border-radius: 0.5rem;
    background: #eef2f7;
    color: #1b3a5b;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.tilegrid-crumbs[b-s0apeirljs] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1rem;
    color: #5a6b7b;
    flex-wrap: wrap;
}

.tilegrid-crumbs a[b-s0apeirljs] { color: #1b6ec2; text-decoration: none; }
.crumb-sep[b-s0apeirljs] { color: #9aa7b4; }

.tilegrid-header-actions[b-s0apeirljs] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.tilegrid-options-btn[b-s0apeirljs],
.tilegrid-add-btn[b-s0apeirljs] {
    min-height: 44px;
    padding: 0.5rem 1rem;
    border: 1px solid #cfd8e3;
    border-radius: 0.5rem;
    background: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.tilegrid-add-btn[b-s0apeirljs] {
    border-color: #6aa84f;
    color: #3a7d22;
}
.tilegrid-add-btn:hover[b-s0apeirljs] { background: #f2f8ee; }

.tilegrid-add-row[b-s0apeirljs] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.tilegrid-add-row .tile-add-input[b-s0apeirljs] {
    flex: 1 1 240px;
    min-height: 44px;
    padding: 0.5rem 0.8rem;
    border: 1px solid #cfd8e3;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.tilegrid-options-panel[b-s0apeirljs] {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #f6f9fc;
    border: 1px solid #dbe4ee;
    border-radius: 0.6rem;
}

.opt-group[b-s0apeirljs] { display: flex; align-items: center; gap: 0.5rem; }
.opt-label[b-s0apeirljs] { font-weight: 600; color: #45566a; margin-right: 0.25rem; }

.opt-toggle[b-s0apeirljs], .opt-step[b-s0apeirljs] {
    min-height: 44px;
    min-width: 44px;
    padding: 0.4rem 0.9rem;
    border: 1px solid #cfd8e3;
    border-radius: 0.5rem;
    background: #fff;
    font-size: 1rem;
    cursor: pointer;
}

.opt-toggle.active[b-s0apeirljs] { background: #1b6ec2; border-color: #1b6ec2; color: #fff; }
.opt-density[b-s0apeirljs] { font-size: 1.15rem; font-weight: 700; min-width: 1.5rem; text-align: center; }

.tilegrid[b-s0apeirljs] {
    display: grid;
    gap: 1rem;
}

.tile[b-s0apeirljs] {
    position: relative;
    aspect-ratio: 1 / 1;
    min-height: 120px;
}

.tile-face[b-s0apeirljs] {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0.9rem;
    background: linear-gradient(160deg, #ffffff, #eef3f9);
    border-top: 6px solid var(--tile-accent, #1b6ec2);
    box-shadow: 0 2px 6px rgba(20, 40, 70, 0.08);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    transition: transform 0.05s ease, box-shadow 0.1s ease;
}

.tile-face:hover:not(:disabled)[b-s0apeirljs] { box-shadow: 0 4px 12px rgba(20, 40, 70, 0.16); }
.tile-face:active:not(:disabled)[b-s0apeirljs] { transform: scale(0.98); }
.tile-face:disabled[b-s0apeirljs] { cursor: default; opacity: 0.85; }

.tile-title[b-s0apeirljs] {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1b3a5b;
    text-align: center;
    line-height: 1.25;
}

.tile-add-face[b-s0apeirljs] {
    background: repeating-linear-gradient(45deg, #f2f6fb, #f2f6fb 10px, #e8eff7 10px, #e8eff7 20px);
    border-top-color: #6aa84f;
}
.tile-add-face .tile-title[b-s0apeirljs] { color: #3a7d22; }

.tile-move[b-s0apeirljs] {
    position: absolute;
    top: 0.4rem;
    left: 0.4rem;
    right: 0.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    justify-content: center;
    z-index: 2;
}

.tile-arrow[b-s0apeirljs] {
    min-width: 44px;
    min-height: 44px;
    border-radius: 0.5rem;
    border: 1px solid #cfd8e3;
    background: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
}
.tile-arrow.danger[b-s0apeirljs] { border-color: #e3b3b3; color: #b3261e; }
.tile-arrow.danger:hover[b-s0apeirljs] { background: #fdecea; }

/* When renaming a tile, the edit form fills the box; push it below the controls. */
.tile-rename-form[b-s0apeirljs] { justify-content: center; }

.tile-add-form[b-s0apeirljs] {
    width: 100%;
    height: 100%;
    border-radius: 0.9rem;
    border: 2px dashed #6aa84f;
    background: #f7fbf4;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.8rem;
    justify-content: center;
}

.tile-add-input[b-s0apeirljs] {
    padding: 0.5rem;
    border: 1px solid #cfd8e3;
    border-radius: 0.4rem;
    font-size: 1rem;
    min-height: 44px;
}

.tile-add-actions[b-s0apeirljs] { display: flex; gap: 0.5rem; }

.tile-add-save[b-s0apeirljs], .tile-add-cancel[b-s0apeirljs] {
    flex: 1;
    min-height: 44px;
    border-radius: 0.5rem;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}
.tile-add-save[b-s0apeirljs] { background: #6aa84f; color: #fff; }
.tile-add-save:disabled[b-s0apeirljs] { opacity: 0.5; cursor: default; }
.tile-add-cancel[b-s0apeirljs] { background: #e6ebf1; color: #45566a; }

.tilegrid-empty[b-s0apeirljs] { color: #7a8794; font-size: 1.1rem; padding: 2rem 0; }

@media (max-width: 640px) {
    .tile-title[b-s0apeirljs] { font-size: 1.05rem; }
    .tile[b-s0apeirljs] { min-height: 100px; }
}
