/* /Components/Layout/MainLayout.razor.rz.scp.css */
.shell[b-yyht9j87z6] {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    min-height: 100vh;
}

/* Sidebar */
.sidebar[b-yyht9j87z6] {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    padding: 1.25rem 0.875rem;
    background: var(--surface);
    border-right: 1px solid var(--border);
}

.brand[b-yyht9j87z6] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 0.5rem;
    color: var(--text);
    text-decoration: none;
}

.nav[b-yyht9j87z6] {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.nav-label[b-yyht9j87z6] {
    padding: 0 0.625rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* NavLink renders its <a> in a child component, hence ::deep */
.nav[b-yyht9j87z6]  .nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.625rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 120ms ease, color 120ms ease;
}

    .nav[b-yyht9j87z6]  .nav-item:hover {
        background: var(--surface-muted);
        color: var(--text);
    }

    .nav[b-yyht9j87z6]  .nav-item.active {
        background: var(--accent-soft);
        color: var(--accent);
        font-weight: 600;
    }

    .nav[b-yyht9j87z6]  .nav-item:focus-visible {
        outline: none;
        box-shadow: var(--focus);
    }

/* Theme toggle and logout at the bottom of the sidebar */
.sidebar-actions[b-yyht9j87z6] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
}

    /* The logout form must not change the layout of its button */
    .sidebar-actions form[b-yyht9j87z6] {
        display: contents;
    }

.sidebar-action[b-yyht9j87z6] {
    padding: 0.5rem 0.625rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 120ms ease, color 120ms ease;
}

    .sidebar-action:hover[b-yyht9j87z6] {
        background: var(--surface-muted);
        color: var(--text);
    }

    .sidebar-action:focus-visible[b-yyht9j87z6] {
        outline: none;
        box-shadow: var(--focus);
    }

.action-content[b-yyht9j87z6], .when-light[b-yyht9j87z6], .when-dark[b-yyht9j87z6] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.when-dark[b-yyht9j87z6],
:root[data-theme="dark"] .when-light[b-yyht9j87z6] {
    display: none;
}

:root[data-theme="dark"] .when-dark[b-yyht9j87z6] {
    display: flex;
}

/* Content */
.content[b-yyht9j87z6] {
    padding: 2.5rem clamp(1rem, 4vw, 3rem);
    max-width: 1100px;
    width: 100%;
}

/* Mobile: the sidebar becomes a bar at the top */
@media (max-width: 760px) {
    .shell[b-yyht9j87z6] {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto 1fr;
    }

    .sidebar[b-yyht9j87z6] {
        position: relative;
        min-width: 0;
        height: auto;
        gap: 1rem;
        padding: 1rem;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .nav[b-yyht9j87z6] {
        flex-direction: row;
        overflow-x: auto;
    }

    .nav-label[b-yyht9j87z6] {
        display: none;
    }

    /* Icons only, top right next to the logo */
    .sidebar-actions[b-yyht9j87z6] {
        position: absolute;
        top: 1rem;
        right: 1rem;
        flex-direction: row;
        margin-top: 0;
    }

    .action-label[b-yyht9j87z6] {
        display: none;
    }

    .content[b-yyht9j87z6] {
        padding: 1.5rem 1rem;
    }
}

/* Blazor error bar */
#blazor-error-ui[b-yyht9j87z6] {
    background: var(--danger-soft);
    color: var(--danger);
    border-top: 1px solid color-mix(in srgb, var(--danger) 30%, transparent);
    bottom: 0;
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.75rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    font-size: 0.875rem;
}

    #blazor-error-ui .reload[b-yyht9j87z6] {
        color: inherit;
        font-weight: 600;
        margin-left: 0.5rem;
    }

    #blazor-error-ui .dismiss[b-yyht9j87z6] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.625rem;
    }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-144riqugfu],
.components-reconnect-repeated-attempt-visible[b-144riqugfu],
.components-reconnect-failed-visible[b-144riqugfu],
.components-pause-visible[b-144riqugfu],
.components-resume-failed-visible[b-144riqugfu],
.components-rejoining-animation[b-144riqugfu] {
    display: none;
}

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


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

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

}

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

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

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

@keyframes components-reconnect-modal-fadeInOpacity-b-144riqugfu {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

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

    100% {
        opacity: 0;
    }
}

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

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

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

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

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

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

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

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

@keyframes components-rejoining-animation-b-144riqugfu {
    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/ArticleForecastPage.razor.rz.scp.css */
/* Search form */
.search-fields[b-8wfiql5vbb] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem;
}

    .search-fields .field[b-8wfiql5vbb] {
        flex: 1 1 220px;
    }

.form-error[b-8wfiql5vbb] {
    margin: 0;
    padding: 0 1.5rem 1.25rem;
}

/* Results */
.results[b-8wfiql5vbb] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.summary[b-8wfiql5vbb] {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0 0.25rem;
}

.summary-notes[b-8wfiql5vbb] {
    flex: 1 1 320px;
    min-width: 0;
}

.not-found[b-8wfiql5vbb] {
    margin: 0;
    color: var(--danger);
    font-size: 0.875rem;
}

.summary-stats[b-8wfiql5vbb] {
    display: flex;
    gap: 2rem;
    margin: 0;
}

    .summary-stats div[b-8wfiql5vbb] {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .summary-stats dt[b-8wfiql5vbb] {
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--text-muted);
    }

    .summary-stats dd[b-8wfiql5vbb] {
        margin: 0;
        font-size: 1.25rem;
        font-weight: 650;
        font-variant-numeric: tabular-nums;
    }

/* Orders table */
.table-card[b-8wfiql5vbb] {
    overflow: hidden;
}

.table-toolbar[b-8wfiql5vbb] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.table-scroll[b-8wfiql5vbb] {
    overflow-x: auto;
}

table[b-8wfiql5vbb] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

th[b-8wfiql5vbb] {
    padding: 0.625rem 0.75rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

td[b-8wfiql5vbb] {
    padding: 0.625rem 0.75rem;
    vertical-align: top;
}

.forecast > thead th[b-8wfiql5vbb] {
    background: var(--surface-muted);
    border-bottom: 1px solid var(--border);
}

/* Top level: one row per article */
.article-row[b-8wfiql5vbb] {
    cursor: pointer;
    transition: background-color 120ms ease;
}

    .article-row > td[b-8wfiql5vbb] {
        border-bottom: 1px solid var(--border);
        vertical-align: middle;
    }

    .article-row:hover[b-8wfiql5vbb],
    .article-row.expanded[b-8wfiql5vbb] {
        background: var(--surface-muted);
    }

    .article-row.empty[b-8wfiql5vbb] {
        cursor: default;
        color: var(--text-muted);
    }

/* Spans the order columns; max-width: 0 keeps long article texts from widening the table */
.article-cell[b-8wfiql5vbb] {
    max-width: 0;
}

.article-line[b-8wfiql5vbb] {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    min-width: 0;
}

.article-number[b-8wfiql5vbb] {
    flex: none;
    font-weight: 650;
    white-space: nowrap;
}

.article-description[b-8wfiql5vbb] {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-muted);
}

.article-count[b-8wfiql5vbb] {
    flex: none;
    font-size: 0.8125rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.article-total[b-8wfiql5vbb] {
    font-weight: 650;
}

/* Second level: the orders of an article, indented below it */
.order-row > .toggle-column[b-8wfiql5vbb] {
    padding-left: 1.75rem;
}

.order-row[b-8wfiql5vbb] {
    cursor: pointer;
    transition: background-color 120ms ease;
}

    .order-row > td[b-8wfiql5vbb] {
        border-bottom: 1px solid var(--border);
        vertical-align: middle;
    }

    .order-row:hover[b-8wfiql5vbb] {
        background: var(--surface-muted);
    }

    .order-row.expanded[b-8wfiql5vbb] {
        background: var(--accent-soft);
    }

        .order-row.expanded > td[b-8wfiql5vbb] {
            border-bottom-color: transparent;
        }

.order-number[b-8wfiql5vbb] {
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

/* Long company names would push the quantity out of the card, the full name is in the tooltip.
   Table cells ignore max-width, so the inner span is limited. */
.customer span[b-8wfiql5vbb] {
    display: block;
    max-width: 14rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Takes the remaining width and clamps long subjects instead of widening the table */
.subject[b-8wfiql5vbb] {
    width: 100%;
    min-width: 11rem;
    max-width: 0;
}

/* Wide enough for the indented toggle of the order rows */
.toggle-column[b-8wfiql5vbb] {
    width: 3.75rem;
    padding-right: 0;
}

.toggle[b-8wfiql5vbb] {
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
}

    .toggle:focus-visible[b-8wfiql5vbb] {
        outline: none;
        box-shadow: var(--focus);
    }

    .toggle[b-8wfiql5vbb]  .icon {
        width: 1rem;
        height: 1rem;
        transition: transform 150ms ease;
    }

    .toggle[aria-expanded="true"][b-8wfiql5vbb] {
        color: var(--accent);
    }

        .toggle[aria-expanded="true"][b-8wfiql5vbb]  .icon {
            transform: rotate(90deg);
        }

.badge[b-8wfiql5vbb] {
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Expanded occurrences of the article within the order */
.detail-row > td[b-8wfiql5vbb] {
    padding: 0 0.75rem 1rem 0;
    background: var(--accent-soft);
    border-bottom: 1px solid var(--border);
}

.items[b-8wfiql5vbb] {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

    .items th[b-8wfiql5vbb] {
        padding: 0.5rem 0.75rem;
        border-bottom: 1px solid var(--border);
        font-size: 0.6875rem;
    }

    .items td[b-8wfiql5vbb] {
        padding: 0.5rem 0.75rem;
        border-bottom: 1px solid var(--border);
    }

    .items tr:last-child td[b-8wfiql5vbb] {
        border-bottom: 0;
    }

.numeric[b-8wfiql5vbb] {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.nowrap[b-8wfiql5vbb] {
    white-space: nowrap;
}

.muted[b-8wfiql5vbb] {
    color: var(--text-muted);
}

.clamp-1[b-8wfiql5vbb],
.clamp-2[b-8wfiql5vbb] {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.clamp-1[b-8wfiql5vbb] {
    -webkit-line-clamp: 1;
}

.clamp-2[b-8wfiql5vbb] {
    -webkit-line-clamp: 2;
}
/* /Components/Pages/LoginPage.razor.rz.scp.css */
.login[b-bzd1psmdr9] {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 1.5rem 1rem;
}

.login-card[b-bzd1psmdr9] {
    width: 100%;
    max-width: 380px;
    padding: 2rem;
}

.login-brand[b-bzd1psmdr9] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

h1[b-bzd1psmdr9] {
    font-size: 1.5rem;
    font-weight: 650;
}

.lead[b-bzd1psmdr9] {
    margin: 0.375rem 0 1.5rem;
    font-size: 0.875rem;
}

form[b-bzd1psmdr9] {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

    form .field[b-bzd1psmdr9] {
        max-width: none;
    }

    form .btn[b-bzd1psmdr9] {
        width: 100%;
    }
/* /Components/Pages/ProductionPlanningPage.razor.rz.scp.css */
/* The two exports side by side, stacked on narrow screens */
.exports[b-6mvbmtsqk9] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
    gap: 1.5rem;
    align-items: start;
}

.export h2[b-6mvbmtsqk9] {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 650;
}

.export-description[b-6mvbmtsqk9] {
    margin: 0.375rem 0 1.25rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}
