html, body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f4f6f8;
    color: #17212b;
    max-width: 100%;
    overflow-x: hidden;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

:root {
    --er-red: #e32636;
    --er-red-dark: #b61827;
    --er-navy: #17212b;
    --er-blue: #285b82;
    --er-border: #d8dee5;
    --er-surface: #ffffff;
    --er-muted: #647383;
}

h1, h2, h3 { color: var(--er-navy); letter-spacing: -.025em; }
h1 { font-weight: 750; }

.eyebrow {
    color: var(--er-red-dark);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .13em;
    margin: 0 0 .35rem;
    text-transform: uppercase;
}

.page-heading, .editor-heading {
    align-items: flex-start;
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    margin: .6rem 0 1.5rem;
    max-width: 100%;
    min-width: 0;
    flex-wrap: wrap;
}

.page-heading.compact h1, .editor-heading h1 { margin-bottom: .25rem; }
.page-heading p, .editor-heading p { color: var(--er-muted); margin-bottom: 0; }
.scope-badge, .coming-soon {
    background: #e8eef3;
    border-radius: 999px;
    color: #38536b;
    display: inline-flex;
    font-size: .78rem;
    font-weight: 700;
    padding: .55rem .8rem;
    white-space: nowrap;
}

.safety-notice { border: 0; border-left: 4px solid #d29a00; }
.dashboard-grid, .placeholder-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
    align-items: flex-start;
    background: var(--er-surface);
    border: 1px solid var(--er-border);
    border-radius: 12px;
    color: inherit;
    display: flex;
    gap: 1rem;
    min-height: 150px;
    padding: 1.25rem;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}
.feature-card:hover { box-shadow: 0 10px 28px rgba(24, 40, 55, .10); color: inherit; transform: translateY(-2px); }
.feature-card.primary { border-top: 4px solid var(--er-red); }
.feature-card h2 { font-size: 1.1rem; margin: .2rem 0 .4rem; }
.feature-card p { color: var(--er-muted); font-size: .9rem; margin: 0; }
.feature-icon {
    align-items: center; background: #edf1f4; border-radius: 9px; color: var(--er-navy);
    display: flex; flex: 0 0 44px; font-size: .76rem; font-weight: 900; height: 44px; justify-content: center;
}
.feature-card.primary .feature-icon { background: #fdebed; color: var(--er-red-dark); }

.scope-panel, .placeholder-page, .context-toolbar, .po-summary-grid, .grid-toolbar {
    background: var(--er-surface);
    border: 1px solid var(--er-border);
    border-radius: 10px;
}
.scope-panel { margin-top: 1rem; padding: 1.25rem; }
.scope-panel h2 { font-size: 1rem; }
.store-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.store-chips span { background: #eef3f7; border-radius: 6px; color: #3a5268; font-size: .8rem; padding: .45rem .65rem; }

.context-toolbar { align-items: center; display: flex; gap: 1rem; margin-bottom: .8rem; padding: .85rem 1rem; }
.context-toolbar label { font-size: .8rem; font-weight: 800; margin: 0; text-transform: uppercase; }
.scope-hint { color: var(--er-muted); font-size: .85rem; }
.demo-data-note { color: #695b2c; font-size: .82rem; margin: 0 0 .8rem; }
.po-link { color: #095fa7; font-weight: 750; }

.setup-backdrop {
    align-items: center;
    background: rgba(12, 22, 31, .56);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 1rem;
    position: fixed;
    z-index: 1000;
}
.setup-dialog {
    background: var(--er-surface);
    border-radius: 14px;
    box-shadow: 0 22px 70px rgba(8, 20, 31, .28);
    max-width: 650px;
    padding: 1.5rem;
    width: 100%;
}
.setup-dialog-heading { align-items: flex-start; display: flex; gap: 1rem; justify-content: space-between; }
.setup-dialog-heading h2 { font-size: 1.35rem; margin-bottom: .25rem; }
.setup-dialog-heading p:last-child { color: var(--er-muted); margin-bottom: 0; }
.setup-fields { display: grid; gap: 1rem; margin: 1.4rem 0; }
.setup-fields label { display: block; font-size: .75rem; font-weight: 800; margin-bottom: .4rem; text-transform: uppercase; }
.setup-fields small { color: var(--er-muted); display: block; margin-top: .4rem; }
.setup-dialog-actions { display: flex; gap: .65rem; justify-content: flex-end; }

.editor-actions { display: flex; gap: .65rem; }
.back-link { color: var(--er-muted); display: inline-block; font-size: .85rem; margin-bottom: .9rem; text-decoration: none; }
.po-summary-grid { display: grid; gap: 1rem; grid-template-columns: 180px minmax(300px, 1fr) 360px; margin-bottom: .8rem; padding: .9rem; }
.po-summary-grid label { display: block; font-size: .72rem; font-weight: 800; margin-bottom: .35rem; text-transform: uppercase; }
.totals-card { align-items: center; background: #f3f6f8; border-radius: 8px; display: grid; grid-template-columns: repeat(3, 1fr); padding: .7rem; }
.totals-card span { display: flex; flex-direction: column; padding: 0 .7rem; }
.totals-card span + span { border-left: 1px solid var(--er-border); }
.totals-card small { color: var(--er-muted); font-size: .7rem; text-transform: uppercase; }
.totals-card strong { font-size: 1.05rem; }
.compact-alert { margin-bottom: .8rem; padding: .55rem .8rem; }
.po-workbench { display: grid; gap: .8rem; grid-template-columns: 380px 225px minmax(320px, 1fr); margin-bottom: .8rem; }
.po-dates-card, .po-totals-card, .supplier-context-card { background: white; border: 1px solid var(--er-border); border-radius: 10px; min-width: 0; }
.po-dates-card { display: grid; gap: .55rem; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: .8rem; }
.po-dates-card label { color: var(--er-muted); font-size: .66rem; font-weight: 800; margin: 0; text-transform: uppercase; }
.po-dates-card label, .po-dates-card input { min-width: 0; width: 100%; }
.po-dates-card input { font-size: .75rem; padding: .35rem; }
.po-comments-label { grid-column: 1 / -1; }
.po-comments-label textarea { font-size: .78rem; margin-top: .3rem; resize: vertical; text-transform: none; }
.po-totals-card { padding: .75rem .9rem; }
.totals-heading { align-items: baseline; border-bottom: 1px solid var(--er-border); display: flex; justify-content: space-between; padding-bottom: .45rem; }
.totals-heading span { font-size: .82rem; font-weight: 800; text-transform: uppercase; }
.totals-heading small { color: var(--er-muted); }
.po-totals-card dl { margin: .35rem 0 0; }
.po-totals-card dl div { display: flex; font-size: .78rem; justify-content: space-between; padding: .16rem 0; }
.po-totals-card dt { color: var(--er-muted); font-weight: 600; }
.po-totals-card dd { font-weight: 800; margin: 0; }
.supplier-context-card { overflow: hidden; }
.supplier-tabs { background: #f0f3f5; border-bottom: 1px solid var(--er-border); display: flex; flex-wrap: wrap; overflow: hidden; }
.supplier-tabs button { background: transparent; border: 0; border-bottom: 3px solid transparent; color: #516273; font-size: .67rem; font-weight: 750; padding: .55rem .52rem .45rem; white-space: nowrap; }
.supplier-tabs button.active { background: white; border-bottom-color: var(--er-red); color: var(--er-navy); }
.supplier-tab-content { height: 128px; overflow: auto; padding: .65rem .8rem; }
.supplier-tab-content pre { color: #374554; font-family: inherit; font-size: .75rem; margin: 0; white-space: pre-wrap; }
.grid-toolbar { align-items: center; display: flex; justify-content: space-between; margin-bottom: .5rem; padding: .55rem .8rem; }
.status-legend { display: flex; gap: .35rem; }
.status-legend button, .status-pill { border: 0; border-radius: 999px; font-size: .68rem; font-weight: 750; padding: .22rem .48rem; white-space: nowrap; }
.status-legend button { cursor: pointer; opacity: .82; transition: box-shadow .12s ease, opacity .12s ease, transform .12s ease; }
.status-legend button:hover { opacity: 1; transform: translateY(-1px); }
.status-legend button.selected { box-shadow: 0 0 0 2px white, 0 0 0 4px #355b78; opacity: 1; }
.status-legend button:focus-visible { outline: 2px solid #1b6ec2; outline-offset: 2px; }
.legend-key, .status-key { background: #5d1022; color: white; }
.legend-core, .status-core { background: #58db57; color: #143c14; }
.legend-new, .status-new { background: #d7fff8; color: #116257; }
.legend-inactive, .status-inactive { background: #5e1a73; color: white; }
.legend-removeatactivation, .status-removeatactivation { background: #f3b51b; color: #3d2b00; }
.status-pricechange { background: #007a77; color: white; }
.status-unavailable { background: #e1e3e5; color: #4b5056; }
.status-notrecommended { background: #b1a36c; color: #27220d; }
.status-normal { background: #edf1f4; color: #425466; }

.po-grid, .po-list-grid { background: white; border: 1px solid var(--er-border); border-radius: 8px; max-width: 100%; min-width: 0; overflow: hidden; width: 100%; }
.po-grid .rz-grid-table td { font-size: .78rem; }
.product-id-preview-host { align-items: center; display: flex; gap: .35rem; }
.image-available-marker { background: #e8f0f7; border-radius: 3px; color: #36536d; font-size: .52rem; font-weight: 800; padding: .12rem .2rem; }
.product-image-preview { background: white; border: 1px solid var(--er-border); border-radius: 10px; bottom: 1.5rem; box-shadow: 0 16px 44px rgba(22, 37, 50, .28); padding: .5rem; position: fixed; right: 1.5rem; z-index: 2000; }
.product-image-preview img { display: block; max-height: min(480px, 65vh); max-width: min(640px, 55vw); object-fit: contain; }
.po-grid .rz-column-title, .po-list-grid .rz-column-title { font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.case-pack-help { color: var(--er-muted); font-size: .74rem; margin-left: .65rem; }
.qty-stepper { align-items: center; display: inline-flex; gap: 2px; }
.qty-stepper .qty-input { border: 1px solid #b8c2cc; border-radius: 4px; font-weight: 800; height: 30px; padding: 2px 3px; text-align: right; width: 58px; }
.qty-step-button { align-items: center; background: #eef2f5; border: 1px solid #c6ced6; border-radius: 4px; color: #32485b; display: inline-flex; font-size: .62rem; height: 30px; justify-content: center; padding: 0; width: 22px; }
.qty-step-button:hover { background: #dce6ed; }
.item-detail-link { color: #095fa7; font-weight: 750; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.product-row.row-key td:first-child { box-shadow: inset 4px 0 #641329; }
.product-row.row-core td:first-child { box-shadow: inset 4px 0 #38bd3a; }
.product-row.row-new td:first-child { box-shadow: inset 4px 0 #17b8a7; }
.product-row.row-inactive { opacity: .65; }
.product-row.row-removeatactivation td { background: #fff8df; }
.activation-warning { border-left: 4px solid #d79800; }

/* The PO grid is the primary workspace. Keep its supporting context visible without
   letting the header consume most of a desktop viewport. */
.po-editor-page {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - 4.2rem);
    margin-top: -.55rem;
    min-height: 0;
    overflow: hidden;
}
.po-editor-overview {
    flex: 0 0 auto;
}
.po-editor-page .editor-heading {
    align-items: center;
    flex-wrap: nowrap;
    margin: .15rem 0 .45rem;
}
.po-editor-page .editor-heading h1 {
    font-size: 1.7rem;
    line-height: 1.05;
    margin: .1rem 0;
}
.po-editor-page .editor-heading .eyebrow {
    font-size: .66rem;
    margin-bottom: .18rem;
}
.po-editor-page .back-link {
    font-size: .76rem;
    margin-bottom: .3rem;
}
.po-editor-page .editor-actions .btn {
    padding: .38rem .7rem;
}
.po-editor-page .demo-data-note {
    font-size: .73rem;
    margin-bottom: .35rem;
}
.po-editor-page .compact-alert {
    font-size: .78rem;
    margin-bottom: .35rem;
    padding: .35rem .65rem;
}
.po-editor-page .po-workbench {
    gap: .5rem;
    grid-template-columns: 360px 210px minmax(320px, 1fr);
    margin-bottom: .4rem;
}
.po-editor-page .po-dates-card {
    gap: .3rem .45rem;
    padding: .45rem .55rem;
}
.po-editor-page .po-dates-card input {
    height: 29px;
    padding: .2rem .35rem;
}
.po-editor-page .po-comments-label textarea {
    height: 42px;
    margin-top: .15rem;
    min-height: 42px;
    padding: .3rem .45rem;
    resize: none;
}
.po-editor-page .po-totals-card {
    padding: .4rem .65rem;
}
.po-editor-page .totals-heading {
    padding-bottom: .22rem;
}
.po-editor-page .po-totals-card dl {
    margin-top: .18rem;
}
.po-editor-page .po-totals-card dl div {
    font-size: .72rem;
    line-height: 1.15;
    padding: .08rem 0;
}
.po-editor-page .supplier-tabs {
    flex-wrap: nowrap;
}
.po-editor-page .supplier-tabs button {
    font-size: .62rem;
    padding: .36rem .42rem .3rem;
}
.po-editor-page .supplier-tab-content {
    height: 70px;
    padding: .4rem .6rem;
}
.po-editor-page .supplier-tab-content pre {
    font-size: .7rem;
    line-height: 1.25;
}
.po-editor-page .grid-toolbar {
    flex: 0 0 auto;
    font-size: .82rem;
    margin-bottom: .3rem;
    padding: .35rem .65rem;
}
.po-editor-page .status-legend button {
    font-size: .62rem;
    padding: .17rem .38rem;
}
.po-editor-page .po-grid {
    border-radius: 8px;
    flex: 1 1 0;
    height: auto !important;
    min-height: 0;
    overflow: hidden;
}
.po-editor-page .po-grid .rz-data-grid-data {
    overflow: auto;
}

@media (min-width: 1600px) {
    .po-editor-overview {
        align-items: stretch;
        display: grid;
        gap: .6rem;
        grid-template-columns: 320px minmax(0, 1fr);
        margin-bottom: .4rem;
    }
    .po-editor-intro {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }
    .po-editor-page .editor-heading {
        align-items: flex-start;
        flex: 1 1 auto;
        flex-direction: column;
        gap: .35rem;
        justify-content: space-between;
        margin: 0;
    }
    .po-editor-page .editor-actions {
        gap: .35rem;
    }
    .po-editor-page .editor-actions .btn {
        font-size: .75rem;
        padding: .3rem .5rem;
    }
    .po-editor-page .demo-data-note {
        line-height: 1.2;
        margin: .3rem 0 0;
    }
    .po-editor-page .po-workbench {
        grid-template-columns: 340px 195px minmax(300px, 1fr);
        height: 100%;
        margin-bottom: 0;
    }
    .po-editor-page .supplier-context-card {
        display: flex;
        flex-direction: column;
    }
    .po-editor-page .supplier-tab-content {
        flex: 1 1 auto;
        height: auto;
    }
}

.item-detail-heading { align-items: flex-start; display: flex; gap: 1.5rem; justify-content: space-between; margin: .8rem 0 1.2rem; }
.item-detail-heading h1 { margin-bottom: .25rem; }
.item-image-link { flex: 0 0 auto; }
.item-detail-image { background: white; border: 1px solid var(--er-border); border-radius: 10px; display: block; max-height: 360px; max-width: min(640px, 45vw); object-fit: contain; }
.item-description { color: var(--er-muted); font-size: 1.08rem; margin: 0; }
.item-statuses { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: flex-end; }
.item-detail-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1rem; }
.item-detail-card { background: white; border: 1px solid var(--er-border); border-radius: 10px; padding: 1.2rem; }
.item-detail-card h2 { font-size: 1rem; margin-bottom: 1rem; }
.item-detail-card dl { margin: 0; }
.item-detail-card dl div { align-items: baseline; border-top: 1px solid #edf0f2; display: flex; gap: 1rem; justify-content: space-between; padding: .55rem 0; }
.item-detail-card dt { color: var(--er-muted); font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.item-detail-card dd { font-size: .88rem; margin: 0; text-align: right; }
.item-comments { margin-top: 1rem; }
.item-comments p { margin-bottom: 0; white-space: pre-wrap; }
.sales-history-section { background: white; border: 1px solid var(--er-border); border-radius: 10px; margin-top: 1rem; padding: 1.2rem; }
.sales-history-heading { align-items: flex-end; display: flex; gap: 1.5rem; justify-content: space-between; }
.sales-history-heading h2 { font-size: 1.25rem; margin-bottom: .2rem; }
.sales-history-heading p:last-child { color: var(--er-muted); font-size: .82rem; margin: 0; }
.sales-date-filter { align-items: flex-end; display: flex; gap: .55rem; }
.sales-date-filter label { color: var(--er-muted); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.sales-date-filter input { font-size: .78rem; margin-top: .25rem; min-width: 135px; }
.sales-summary-strip { background: #f3f6f8; border-radius: 8px; display: grid; grid-template-columns: repeat(4, 1fr); margin: 1rem 0; padding: .75rem; }
.sales-summary-strip span { display: flex; flex-direction: column; padding: 0 .8rem; }
.sales-summary-strip span + span { border-left: 1px solid var(--er-border); }
.sales-summary-strip small { color: var(--er-muted); font-size: .68rem; text-transform: uppercase; }
.sales-summary-strip strong { font-size: 1rem; }
.sales-table-wrap { max-width: 100%; overflow-x: auto; }
.sales-history-table { border-collapse: collapse; font-size: .75rem; width: 100%; }
.sales-history-table th { background: #edf1f4; color: #435568; font-size: .66rem; text-transform: uppercase; }
.sales-history-table th, .sales-history-table td { border: 1px solid #dce2e7; padding: .42rem .5rem; text-align: right; white-space: nowrap; }
.sales-history-table th:first-child, .sales-history-table td:first-child { left: 0; min-width: 210px; position: sticky; text-align: left; }
.sales-history-table td:first-child { background: white; }
.masked-store-row td:first-child { color: var(--er-muted); font-style: italic; }

.placeholder-page { margin: .75rem auto; max-width: 1100px; padding: 2rem; }
.placeholder-page > p { color: var(--er-muted); }
.placeholder-grid { margin: 1.5rem 0; }
.placeholder-grid section { background: #f5f7f9; border-radius: 8px; padding: 1rem; }
.placeholder-grid h2 { font-size: 1rem; }
.placeholder-grid p { color: var(--er-muted); font-size: .88rem; margin-bottom: 0; }

.login-shell { align-items: center; display: flex; justify-content: center; min-height: calc(100vh - 8rem); }
.login-card { background: white; border: 1px solid var(--er-border); border-radius: 16px; box-shadow: 0 18px 50px rgba(24, 40, 55, .12); max-width: 460px; padding: 2rem; width: 100%; }
.login-card h1 { font-size: 1.75rem; }
.brand-mark { align-items: center; background: var(--er-red); border-radius: 50%; color: white; display: flex; font-size: 1rem; font-weight: 900; height: 50px; justify-content: center; margin-bottom: 1rem; width: 50px; }
.development-credentials { background: #f3f6f8; border-radius: 8px; display: flex; flex-direction: column; font-size: .78rem; gap: .35rem; padding: .8rem; }
.development-credentials strong { margin-bottom: .2rem; }

@media (max-width: 1000px) {
    .dashboard-grid, .placeholder-grid, .item-detail-grid { grid-template-columns: 1fr; }
    .po-summary-grid { grid-template-columns: 1fr 1fr; }
    .totals-card { grid-column: 1 / -1; }
    .po-workbench { grid-template-columns: 1fr 1fr; }
    .supplier-context-card { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
    .page-heading, .editor-heading, .context-toolbar, .item-detail-heading { align-items: stretch; flex-direction: column; gap: .75rem; }
    .po-summary-grid { grid-template-columns: 1fr; }
    .totals-card { grid-column: auto; }
    .po-workbench { grid-template-columns: 1fr; }
    .supplier-context-card { grid-column: auto; }
    .sales-history-heading, .sales-date-filter { align-items: stretch; flex-direction: column; }
    .sales-summary-strip { grid-template-columns: 1fr 1fr; row-gap: .8rem; }
}
