/* /Components/Layout/MainLayout.razor.rz.scp.css */
#blazor-error-ui[b-7zxvp0dmje] {
    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-7zxvp0dmje] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.shell[b-7zxvp0dmje] { min-height: 100vh; }

.sidenav[b-7zxvp0dmje] { display: none; }

.content[b-7zxvp0dmje] { padding: 1.25rem 1.25rem 5.5rem 1.25rem; max-width: 1200px; }

.tabbar[b-7zxvp0dmje] {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
    display: flex;
    background: var(--surface);
    border-top: 1.5px solid var(--line);
    padding: 0.4rem 0.5rem calc(0.6rem + env(safe-area-inset-bottom)) 0.5rem;
}
.tabbar[b-7zxvp0dmje]  a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    min-height: 44px; justify-content: center;
    font-size: 0.72rem; font-weight: 600; text-decoration: none; color: var(--muted);
}
.tabbar[b-7zxvp0dmje]  a.active { color: var(--red); font-weight: 700; }

.brand[b-7zxvp0dmje] { display: flex; align-items: center; gap: 0.6rem; padding: 0 0.5rem 1rem 0.5rem; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; text-decoration: none; color: inherit; }
.brand img[b-7zxvp0dmje] { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; object-fit: contain; }

.sidenav[b-7zxvp0dmje]  .nav-group { font-size: 0.68rem; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; padding: 0.9rem 0.6rem 0.3rem 0.6rem; }
.sidenav[b-7zxvp0dmje]  a { display: block; padding: 0.55rem 0.6rem; border-radius: 10px; text-decoration: none; color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.sidenav[b-7zxvp0dmje]  a.active { background: var(--red-tint); color: var(--red-dark); font-weight: 700; }
.sidenav[b-7zxvp0dmje]  a:hover { color: var(--ink); }

@media (min-width: 768px) {
    .shell[b-7zxvp0dmje] { display: grid; grid-template-columns: 230px 1fr; }
    .sidenav[b-7zxvp0dmje] { display: block; background: var(--surface); border-right: 1.5px solid var(--line); padding: 1.25rem 0.85rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
    .tabbar[b-7zxvp0dmje] { display: none; }
    .content[b-7zxvp0dmje] { padding: 1.75rem 2rem; }
}

/* Sign out is a form POST, so it is a <button> among anchors — matched to the nav links
   rather than styled as a page button. */
.sidenav[b-7zxvp0dmje]  .signout-form { margin: 0.3rem 0 0 0; }
.sidenav[b-7zxvp0dmje]  .signout {
    display: flex; align-items: baseline; gap: 0.4rem; width: 100%;
    padding: 0.55rem 0.6rem; min-height: 0; border: none; border-radius: 10px;
    background: none; color: var(--muted); font-size: 0.9rem; font-weight: 600;
    text-align: left; cursor: pointer;
}
.sidenav[b-7zxvp0dmje]  .signout:hover { color: var(--ink); background: var(--fill); }
.sidenav[b-7zxvp0dmje]  .signout-user { color: var(--faint); font-size: 0.78rem; font-weight: 600; }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-9bd6euhxzc],
.components-reconnect-repeated-attempt-visible[b-9bd6euhxzc],
.components-reconnect-failed-visible[b-9bd6euhxzc],
.components-pause-visible[b-9bd6euhxzc],
.components-resume-failed-visible[b-9bd6euhxzc],
.components-rejoining-animation[b-9bd6euhxzc] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-9bd6euhxzc],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-9bd6euhxzc],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-9bd6euhxzc],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-9bd6euhxzc],
#components-reconnect-modal.components-reconnect-retrying[b-9bd6euhxzc],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-9bd6euhxzc],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-9bd6euhxzc],
#components-reconnect-modal.components-reconnect-failed[b-9bd6euhxzc],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-9bd6euhxzc] {
    display: block;
}


#components-reconnect-modal[b-9bd6euhxzc] {
    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-9bd6euhxzc 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-9bd6euhxzc 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-9bd6euhxzc 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-9bd6euhxzc]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-9bd6euhxzc 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-9bd6euhxzc {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-9bd6euhxzc {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-9bd6euhxzc {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-9bd6euhxzc] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-9bd6euhxzc] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-9bd6euhxzc] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-9bd6euhxzc] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-9bd6euhxzc] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-9bd6euhxzc] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-9bd6euhxzc] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-9bd6euhxzc 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-9bd6euhxzc] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-9bd6euhxzc {
    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/Pages/Home.razor.rz.scp.css */
.task-card[b-m39q2ifaix] { padding: 1.2rem; }
.task-head[b-m39q2ifaix] { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.9rem; }
.task-head h4[b-m39q2ifaix] { margin: 0; font-size: 1.15rem; }
.task-cta[b-m39q2ifaix] { display: flex; align-items: center; justify-content: center; min-height: 50px; border-radius: var(--radius); text-decoration: none; font-weight: 600; }
.hq-grid[b-m39q2ifaix] { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.85rem; }
.hq-card[b-m39q2ifaix] { display: block; text-decoration: none; color: var(--ink); }
.hq-card:hover[b-m39q2ifaix] { border-color: var(--red); color: var(--ink); }
.hq-card .sub[b-m39q2ifaix] { color: var(--muted); font-size: 0.85rem; }
/* /Components/Pages/Login.razor.rz.scp.css */
.login-wrap[b-vwz9nt1dgr] { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 2rem; background: var(--bg); }
.login-brand[b-vwz9nt1dgr] { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; margin-bottom: 2rem; text-align: center; }
.login-brand img[b-vwz9nt1dgr] { width: 110px; height: 110px; border-radius: 22px; border: 1.5px solid var(--line); background: #fff; object-fit: contain; box-shadow: 0 6px 16px rgba(74, 45, 37, 0.12); margin-bottom: 0.75rem; }
.login-brand h1[b-vwz9nt1dgr] { margin: 0; }
.login-brand p[b-vwz9nt1dgr] { margin: 0; color: var(--muted); font-size: 0.95rem; }
.login-form[b-vwz9nt1dgr] { display: flex; flex-direction: column; gap: 0.9rem; width: 100%; max-width: 360px; }
.login-form[b-vwz9nt1dgr]  input { min-height: 52px; font-size: 1.05rem; }
.login-form[b-vwz9nt1dgr]  button { min-height: 52px; font-size: 1.05rem; }
.login-error[b-vwz9nt1dgr] { color: var(--red); font-weight: 600; margin: 0 0 0.75rem 0; }
.login-help[b-vwz9nt1dgr] { margin-top: 1.75rem; color: var(--muted); font-size: 0.9rem; text-align: center; line-height: 1.5; }
/* /Components/Pages/More.razor.rz.scp.css */
.morenav[b-s3mbp15mtc]  a { display: block; padding: 0.7rem 0.4rem; text-decoration: none; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--fill); }
.morenav[b-s3mbp15mtc]  a:last-child { border-bottom: none; }
.morenav[b-s3mbp15mtc]  .nav-group { font-size: 0.68rem; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; padding: 0.9rem 0.4rem 0.2rem 0.4rem; }
.morenav[b-s3mbp15mtc]  .signout {
    display: flex; align-items: baseline; gap: 0.5rem; width: 100%;
    padding: 0.7rem 0.4rem; min-height: 0; border: none; background: none;
    color: var(--red); font-weight: 600; font-size: 1rem; text-align: left; cursor: pointer;
}
.morenav[b-s3mbp15mtc]  .signout-user { color: var(--faint); font-size: 0.82rem; }
/* /Components/Pages/Orders.razor.rz.scp.css */
.order-page[b-8jhkrqzx3d] { padding-bottom: 10rem; }
.toolbar[b-8jhkrqzx3d] { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-bottom: 0.85rem;
    position: sticky; top: 0; z-index: 10; background: var(--bg); padding: 0.5rem 0; }
/* The global `label` rule stacks label above input; the toolbar needs them on one
   row so the control matches the 44px button beside it. */
.sort-field[b-8jhkrqzx3d] { display: inline-flex; flex-direction: row; align-items: center; gap: 0.4rem;
    font-size: 0.85rem; color: var(--muted); }
.sort-dir[b-8jhkrqzx3d] { min-width: 44px; padding: 0 0.6rem; font-size: 1.1rem; line-height: 1; }
.list-loading[b-8jhkrqzx3d] { display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 1.6rem 0.85rem; color: var(--muted); font-size: 0.9rem; }
.save-note[b-8jhkrqzx3d] { color: var(--muted); font-size: 0.85rem; }
.order-list[b-8jhkrqzx3d] { padding: 0.15rem 0; overflow: hidden; }
.order-row[b-8jhkrqzx3d] { border-bottom: 1px solid var(--fill); }
.order-row:last-child[b-8jhkrqzx3d] { border-bottom: none; }
.order-row.has-order[b-8jhkrqzx3d] { box-shadow: inset 3px 0 0 var(--red); }
.order-row-head[b-8jhkrqzx3d] {
    display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 0.6rem;
    background: none; border: none; border-radius: 0;
    padding: 0.6rem 0.85rem; min-height: 52px;
    text-align: left; font: inherit; color: inherit; cursor: pointer;
}
.order-row-head[b-8jhkrqzx3d]::after {
    content: "›"; color: var(--faint); font-size: 1.1rem; font-weight: 700;
    flex: none; transition: transform 0.15s ease;
}
.order-row.expanded .order-row-head[b-8jhkrqzx3d]::after { transform: rotate(90deg); }
.order-row-main[b-8jhkrqzx3d] { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.order-card-head[b-8jhkrqzx3d] { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.7rem; }
.item-name[b-8jhkrqzx3d] { font-weight: 700; font-size: 0.98rem; }
.item-meta[b-8jhkrqzx3d] { color: var(--muted); font-size: 0.82rem; }
.order-card-body[b-8jhkrqzx3d] { display: flex; gap: 0.75rem; align-items: flex-end; padding: 0.1rem 0.85rem 0.85rem; }
.stock-field[b-8jhkrqzx3d] { flex: 1; }
.stock-field[b-8jhkrqzx3d]  input, .stock-field input[b-8jhkrqzx3d] { width: 100%; text-align: center; }
.stepper-label[b-8jhkrqzx3d] { font-size: 0.75rem; font-weight: 600; color: var(--muted); display: block; text-align: center; margin-bottom: 0.3rem; }
.stepper[b-8jhkrqzx3d] { display: flex; }
.stepper input[b-8jhkrqzx3d] { width: 4em; text-align: center; border-radius: 0; border-left: none; border-right: none; }
.stepper button[b-8jhkrqzx3d] { min-width: 46px; border-radius: 10px 0 0 10px; font-size: 1.2rem; }
.stepper button.plus[b-8jhkrqzx3d] { border-radius: 0 10px 10px 0; background: var(--red); border-color: var(--red); color: #fff; }
.add-row[b-8jhkrqzx3d] { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.add-row input:first-child[b-8jhkrqzx3d] { flex: 1; min-width: 12em; }
.add-row .qty[b-8jhkrqzx3d] { width: 6em; }
.actionbar[b-8jhkrqzx3d] {
    position: fixed; left: 0; right: 0; bottom: calc(60px + env(safe-area-inset-bottom)); z-index: 90;
    display: flex; align-items: center; gap: 1rem; justify-content: space-between;
    background: var(--surface); border-top: 1.5px solid var(--line); padding: 0.7rem 1.25rem;
}
.actionbar[b-8jhkrqzx3d]  .btn-primary, .actionbar .btn-primary[b-8jhkrqzx3d] { flex: 1; max-width: 320px; }
.order-group[b-8jhkrqzx3d] { margin-bottom: .5rem; }

.order-group-head[b-8jhkrqzx3d] {
    display: flex;
    align-items: center;
    gap: .6rem;
    width: 100%;
    padding: .55rem .75rem;
    border: 0;
    border-radius: 6px;
    background: var(--fill);
    font: inherit;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.order-group-head:hover[b-8jhkrqzx3d] { filter: brightness(.97); }
.group-title[b-8jhkrqzx3d] { flex: 0 0 auto; }
.group-meta[b-8jhkrqzx3d] { flex: 1 1 auto; font-weight: 400; font-size: .85em; opacity: .7; }
.group-chevron[b-8jhkrqzx3d] { flex: 0 0 auto; opacity: .6; }

.order-search[b-8jhkrqzx3d] {
    flex: 1 1 10rem;
    min-width: 8rem;
}

.search-note[b-8jhkrqzx3d] { padding: 0.85rem; color: var(--muted); font-size: 0.9rem; }

@media (min-width: 768px) {
    .actionbar[b-8jhkrqzx3d] { left: 230px; bottom: 0; }
    .order-list[b-8jhkrqzx3d] { max-width: 640px; }
    .order-page[b-8jhkrqzx3d] { padding-bottom: 6rem; }
}
/* /Components/Pages/StockTakePage.razor.rz.scp.css */
.save-note[b-lkaat8pfq9] { color: var(--muted); font-size: 0.85rem; }
.add-row[b-lkaat8pfq9] { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.add-row input:first-child[b-lkaat8pfq9] { flex: 1; min-width: 12em; }
/* Without a flex basis the results select claimed the whole row, wrapping qty + Add
   onto a second line and moving the Add button out from under the cursor. */
.add-row select[b-lkaat8pfq9] { flex: 1 1 14em; min-width: 0; max-width: 26em; }
.add-row .qty[b-lkaat8pfq9] { width: 6em; }
.row-saved[b-lkaat8pfq9] { color: var(--muted); font-size: 0.8rem; margin-top: 0.5rem; }
.search-note[b-lkaat8pfq9] { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.6rem;
    color: var(--muted); font-size: 0.85rem; }
.list-loading[b-lkaat8pfq9] { display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    color: var(--muted); font-size: 0.9rem; }
/* The count sheet: one row per item the outlet stocks, so counting is typing rather
   than searching. Sticky toolbar keeps search reachable over a 50-row list. */
.toolbar[b-lkaat8pfq9] { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-bottom: 0.85rem;
    position: sticky; top: 0; z-index: 10; background: var(--bg); padding: 0.5rem 0; }
.count-search[b-lkaat8pfq9] { flex: 1; min-width: 12em; }
.counted-note[b-lkaat8pfq9] { color: var(--muted); font-size: 0.85rem; }
.count-group h4[b-lkaat8pfq9] { margin: 0 0 0.6rem; }
.count-table td[b-lkaat8pfq9] { vertical-align: middle; }
.count-table .count-cell input[b-lkaat8pfq9] { width: 7em; text-align: center; font-size: 1.05rem; font-weight: 600; min-height: 44px; }
.tare-note[b-lkaat8pfq9] { display: block; color: var(--muted); font-size: 0.78rem; margin-top: 0.2rem; }
.net-cell strong[b-lkaat8pfq9] { font-size: 1.05rem; }
/* An uncounted row is the normal state early in the month — muted, not an error. */
.count-table tr.uncounted td:first-child[b-lkaat8pfq9] { color: var(--muted); }
.name-zh[b-lkaat8pfq9] { color: var(--muted); font-size: 0.85rem; margin-left: 0.35rem; }
/* /Components/Pages/SupplierSheets.razor.rz.scp.css */
/* Compact matrix cells so a per-supplier screenshot stays readable with many outlet
   columns (up to ~16 outlets exist). */
.sheet .table th[b-kgk0114j49],
.sheet .table td[b-kgk0114j49] {
    padding: 0.35rem 0.55rem;
    font-size: 0.85rem;
    white-space: nowrap;
}

.sheet .table th.qty[b-kgk0114j49],
.sheet .table td.qty[b-kgk0114j49] { text-align: right; }
.sheet .table td.total[b-kgk0114j49] { font-weight: 600; }

.sheet details[b-kgk0114j49] { margin-top: 0.6rem; }
.sheet summary[b-kgk0114j49] { cursor: pointer; color: var(--muted); font-size: 0.9rem; }
.sheet textarea[b-kgk0114j49] {
    width: 100%;
    max-width: 40em;
    margin-top: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
}
