/* Cashier shell styles. Visual identity comes from the shared design-system foundation
   (pos-foundation.css: tokens, buttons, forms, cards, badges); this file only lays out the
   minimal Cashier shell. */

h1:focus { outline: none; }

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }

.cashier-shell { display: flex; flex-direction: column; min-height: 100vh; background: var(--pos-bg); }

.cashier-shell__header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    height: 3.5rem;
    padding: 0 1.5rem;
    background: var(--pos-surface);
    border-bottom: 1px solid var(--pos-border);
}

.cashier-shell__brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; color: var(--pos-text); text-decoration: none; }
.cashier-shell__brand-mark { width: 1.4rem; height: 1.4rem; border-radius: 6px; object-fit: contain; }
.cashier-shell__brand-name { font-size: 1.05rem; letter-spacing: -0.01em; }
.cashier-shell__brand-app { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--pos-text-muted); }

.cashier-shell__nav { display: flex; gap: 0.25rem; flex: 1; }
.cashier-shell__link { padding: 0.35rem 0.7rem; border-radius: var(--pos-radius-sm); color: var(--pos-text-muted); text-decoration: none; font-weight: 500; }
.cashier-shell__link:hover { background: var(--pos-surface-alt); color: var(--pos-text); }
.cashier-shell__link.active { background: var(--pos-accent-soft); color: var(--pos-accent-text); }

.cashier-shell__meta { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }
.cashier-shell__branch { font-size: 0.85rem; color: var(--pos-text-muted); }
.cashier-shell__user { font-size: 0.9rem; font-weight: 500; }

.cashier-shell__content { flex: 1; min-width: 0; padding: 1.5rem; }

.cashier-page { max-width: 60rem; margin: 0 auto; }
.cashier-page__title { font-size: 1.35rem; font-weight: 700; margin-bottom: 1rem; }

.cashier-bare { min-height: 100vh; background: var(--pos-bg); }
.cashier-bare__content { padding: 1rem; }

.cashier-login-logo { display: block; width: 100%; max-width: 15rem; height: auto; margin-inline: auto; object-fit: contain; }

/* Printing a receipt from the Cashier host: only the receipt itself goes to paper — no header, navigation,
   branch banner or buttons. (The receipt's own width/typography rules are the shared receipt.css.) */
@media print {
    .cashier-shell__header,
    [data-branch-access-lost],
    #blazor-error-ui { display: none !important; }

    .cashier-shell,
    .cashier-shell__content {
        display: block !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }
}

/* Price Check: the price is the point of the page. */
.pricecheck__price { font-size: 3.5rem; font-weight: 700; line-height: 1.1; }
.pricecheck__img { width: 8rem; height: 8rem; object-fit: contain; border-radius: .5rem; }
