:root {
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    background: #f4f6f8;
    color: #18211c;
}

body {
    margin: 0;
    background: #f4f6f8;
}

.synthetic-hall-banner {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.5rem 1rem;
    background: #fff0a8;
    border-bottom: 1px solid #d7b63b;
    color: #352b05;
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-align: center;
}

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;
}

.entry-page {
    box-sizing: border-box;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.entry-panel {
    width: min(100%, 42rem);
    box-sizing: border-box;
    padding: clamp(1.5rem, 5vw, 3rem);
    border: 1px solid #dbe3de;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 18px 50px rgb(30 53 40 / 8%);
}

.entry-panel h1,
.entry-panel p {
    margin: 0;
}

.entry-panel h1 {
    margin-top: 0.45rem;
    font-size: clamp(2rem, 7vw, 3.2rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.entry-panel > p:not(.entry-kicker) {
    margin-top: 0.8rem;
    color: #526159;
}

.entry-session {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.25rem;
}

.entry-kicker {
    color: #185d3e;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.entry-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 2rem;
}

.entry-action {
    min-height: 88px;
    box-sizing: border-box;
    display: grid;
    align-content: center;
    gap: 0.3rem;
    padding: 1rem;
    border: 1px solid #cad6ce;
    border-radius: 0.85rem;
    color: #17211b;
    text-decoration: none;
}

.entry-action:hover,
.entry-action:focus-visible {
    border-color: #185d3e;
    outline: 3px solid rgb(24 93 62 / 18%);
    outline-offset: 2px;
}

.entry-action-primary {
    border-color: #185d3e;
    background: #185d3e;
    color: #fff;
}

.entry-action span {
    color: #526159;
    font-size: 0.9rem;
}

.entry-action-primary span {
    color: #dbece3;
}

.session-logout-form {
    display: inline-flex;
    margin: 0;
}

.session-logout-button {
    min-height: 44px;
    padding: 0 1rem;
    border: 1px solid #b9c8bf;
    border-radius: 999px;
    background: #fff;
    color: #26372d;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}

.session-logout-button:hover,
.session-logout-button:focus-visible,
.entry-home-link:hover,
.entry-home-link:focus-visible,
.access-denied-actions a:hover,
.access-denied-actions a:focus-visible {
    border-color: #185d3e;
    outline: 3px solid rgb(24 93 62 / 18%);
    outline-offset: 2px;
}

.access-denied-panel,
.not-found-panel {
    max-width: 34rem;
}

.access-denied-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 1.2rem;
    border-radius: 18px;
    background: #fff0df;
    color: #8b4b16;
    font-size: 1.6rem;
    font-weight: 900;
}

.access-denied-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.6rem;
}

.access-denied-actions .session-logout-button {
    border-color: #185d3e;
    background: #185d3e;
    color: #fff;
}

.access-denied-actions a,
.entry-home-link {
    min-height: 44px;
    box-sizing: border-box;
    display: inline-grid;
    place-items: center;
    padding: 0 1rem;
    border: 1px solid #cad6ce;
    border-radius: 999px;
    color: #26372d;
    font-weight: 750;
    text-decoration: none;
}

.entry-home-link {
    margin-top: 1.6rem;
}

@media (max-width: 34rem) {
    .entry-actions {
        grid-template-columns: 1fr;
    }

    .access-denied-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .access-denied-actions .session-logout-form,
    .access-denied-actions .session-logout-button,
    .access-denied-actions a {
        width: 100%;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.pos-shell {
    --pos-coral: #c8444c;
    --pos-coral-dark: #8f2828;
    --pos-ink: #3b2e3a;
    --pos-muted: #786a74;
    min-height: 100vh;
    box-sizing: border-box;
    color: var(--pos-ink);
    background:
        radial-gradient(circle at 4% 0%, rgb(255 221 198 / 55%), transparent 31rem),
        linear-gradient(155deg, #fffbf6 5%, #fff3f6 100%);
    font-family: Nunito, "Avenir Next", "Segoe UI", ui-rounded, sans-serif;
}

.pos-topbar {
    width: min(100%, 100rem);
    min-height: 88px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 auto;
    padding: 1.25rem clamp(1rem, 3vw, 2rem) 0.5rem;
}

.pos-brand {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 44px;
    color: var(--pos-ink);
    font-size: 1.65rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    text-decoration: none;
}

.pos-brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(145deg, #ffe4d2, #ffc5b8);
    font-size: 1.35rem;
    box-shadow: 0 8px 20px rgb(200 68 76 / 13%);
}

.pos-register-heading {
    display: grid;
    gap: 0.18rem;
}

.pos-register-heading > span {
    padding-left: 3.4rem;
    color: var(--pos-muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.pos-operator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.workspace-account {
    position: relative;
}

.workspace-account-trigger {
    min-height: 50px;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.35rem 0.7rem 0.35rem 0.35rem;
    border: 1px solid #d8ded9;
    border-radius: 999px;
    background: #fff;
    color: #26372d;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.pos-operator-pill {
    border: 1px solid rgb(255 255 255 / 70%);
    box-shadow: 0 9px 24px rgb(200 68 76 / 12%);
}

.workspace-account-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffe0c2, #ffc9b0);
    font-size: 1.2rem;
}

.workspace-account-copy {
    display: grid;
    line-height: 1.1;
}

.workspace-account-copy strong {
    max-width: 10rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workspace-account-copy small {
    margin-top: 0.2rem;
    color: #6c7771;
    font-weight: 700;
}

.workspace-account-pos .workspace-account-copy small {
    color: var(--pos-muted);
}

.workspace-account-chevron {
    width: 1rem;
    color: #796e74;
    font-size: 1rem;
    text-align: center;
    transition: transform 140ms ease;
}

.workspace-account-trigger[aria-expanded="true"] .workspace-account-chevron {
    transform: rotate(180deg);
}

.workspace-account-dismiss {
    position: fixed;
    z-index: 49;
    inset: 0;
}

.workspace-account-panel {
    position: absolute;
    z-index: 50;
    top: calc(100% + 0.55rem);
    right: 0;
    width: min(17rem, calc(100vw - 1.6rem));
    box-sizing: border-box;
    padding: 0.65rem;
    border: 1px solid #d9dfdb;
    border-radius: 1rem;
    background: #fff;
    color: #26372d;
    box-shadow: 0 18px 55px rgb(43 31 38 / 20%);
}

.workspace-account-panel > p {
    margin: 0.25rem 0.55rem 0.45rem;
    color: #6c7771;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.workspace-account-item {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    box-sizing: border-box;
    padding: 0.65rem 0.75rem;
    border-radius: 0.7rem;
    color: inherit;
    font-weight: 800;
    text-decoration: none;
}

.workspace-account-item:hover,
.workspace-account-item:focus-visible {
    outline: 0;
    background: #edf4f0;
}

.workspace-account-item[aria-disabled="true"] {
    background: #f0f2f1;
    color: #7a847f;
    cursor: not-allowed;
}

.workspace-account-action {
    width: 100%;
    border: 0;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.workspace-account-action:disabled {
    color: #8a938e;
    cursor: not-allowed;
}

.workspace-account-warning {
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #f1f3f2;
    color: #68736d;
}

.workspace-account-warning.is-active {
    background: #fff0bd;
    color: #8a5700;
}

.workspace-account-item strong,
.workspace-account-item small {
    display: block;
}

.workspace-account-item small {
    margin-top: 0.2rem;
    font-size: 0.72rem;
    font-weight: 650;
}

.workspace-account-divider {
    height: 1px;
    margin: 0.45rem 0.2rem;
    background: #e2e6e3;
}

.workspace-account-panel .session-logout-form,
.workspace-account-panel .session-logout-button {
    width: 100%;
}

.workspace-account-panel .session-logout-button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-inline: 0.75rem;
    border: 0;
    border-radius: 0.7rem;
}

.pos-day-button,
.pos-secondary-action,
.pos-category,
.pos-cart-close {
    min-width: 44px;
    min-height: 44px;
    border: 1px solid #e3d8d0;
    border-radius: 999px;
    background: #fff;
    color: var(--pos-ink);
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}

.pos-day-button {
    padding-inline: 1.1rem;
    box-shadow: 0 6px 16px rgb(122 92 110 / 8%);
}

.pos-day-button:hover,
.pos-day-button:focus-visible,
.pos-operator-pill:hover,
.pos-operator-pill:focus-visible,
.pos-secondary-action:hover,
.pos-secondary-action:focus-visible,
.pos-category:hover,
.pos-category:focus-visible,
.pos-operator .session-logout-button:hover,
.pos-operator .session-logout-button:focus-visible {
    border-color: var(--pos-coral);
    outline: 3px solid rgb(235 93 93 / 17%);
    outline-offset: 2px;
}

.pos-operator .session-logout-button {
    border-color: #e3d8d0;
    color: var(--pos-ink);
    white-space: nowrap;
    box-shadow: 0 6px 16px rgb(122 92 110 / 8%);
}

.pos-focus-state .session-logout-form,
.admin-state .session-logout-form {
    margin-top: 1.25rem;
}

.pos-workspace {
    width: min(100%, 100rem);
    min-height: calc(100vh - 88px);
    margin: 0 auto;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 26rem);
    gap: clamp(1.25rem, 2.3vw, 2rem);
    padding: 0.75rem clamp(1rem, 3vw, 2rem) 2rem;
}

.pos-error-banner {
    width: min(calc(100% - 2rem), 54rem);
    box-sizing: border-box;
    display: flex;
    gap: 0.45rem;
    justify-content: center;
    margin: 1rem auto 0;
    padding: 0.85rem 1rem;
    border: 1px solid #d88787;
    border-radius: 0.9rem;
    background: #fff0ee;
    color: #7d2020;
}

.pos-success-toast {
    position: fixed;
    right: clamp(1rem, 3vw, 2rem);
    bottom: 1.5rem;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    box-sizing: border-box;
    padding: 0.75rem 1rem;
    border: 1px solid #9bc9a7;
    border-radius: 0.9rem;
    background: #effaf2;
    color: #225c31;
    font-weight: 800;
    box-shadow: 0 12px 30px rgb(34 92 49 / 16%);
}

.pos-success-toast > span:first-child {
    width: 1.45rem;
    height: 1.45rem;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: #d5efdc;
}

.pos-products {
    min-width: 0;
}

.pos-products-heading,
.pos-cart-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.pos-eyebrow {
    margin: 0 0 0.35rem;
    color: var(--pos-coral-dark);
    font-size: 0.77rem;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.pos-products h1,
.pos-cart h2,
.pos-focus-state h1,
.pos-empty-products h2 {
    margin: 0;
    letter-spacing: -0.04em;
}

.pos-products h1 {
    font-size: clamp(1.8rem, 3vw, 2.25rem);
    font-weight: 900;
}

.pos-search input {
    width: min(18rem, 27vw);
    min-height: 48px;
    box-sizing: border-box;
    padding: 0 1rem;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: var(--pos-ink);
    font: inherit;
    box-shadow: 0 6px 16px rgb(122 92 110 / 8%);
}

.pos-search input:focus {
    border-color: var(--pos-coral);
    outline: 3px solid rgb(235 93 93 / 16%);
}

.pos-categories {
    display: flex;
    gap: 0.55rem;
    margin: 1.1rem 0 1.4rem;
    padding: 3px;
    overflow-x: auto;
}

.pos-category {
    flex: 0 0 auto;
    padding: 0 1.1rem;
    border: 0;
    color: #6d5e69;
    box-shadow: 0 6px 14px rgb(122 92 110 / 8%);
}

.pos-category.is-active {
    border-color: var(--pos-coral);
    background: linear-gradient(135deg, #db5b4f, var(--pos-coral));
    color: #fff;
    box-shadow: 0 9px 20px rgb(200 68 76 / 28%);
}

.pos-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(8.5rem, 1fr));
    gap: clamp(0.8rem, 1.5vw, 1.15rem);
}

.pos-product {
    min-height: 190px;
    display: grid;
    grid-template-rows: 1fr auto auto auto;
    justify-items: start;
    padding: 1.25rem;
    border: 0;
    border-radius: 1.65rem;
    color: var(--pos-ink);
    text-align: left;
    font: inherit;
    cursor: pointer;
    box-shadow: 0 9px 20px rgb(122 92 110 / 9%);
    transition: transform 120ms ease, box-shadow 120ms ease;
}

.pos-product:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgb(70 50 40 / 11%);
}

.pos-product:focus-visible {
    outline: 4px solid #2d5f91;
    outline-offset: 3px;
}

.pos-product-0 { background: #ffe4d6; }
.pos-product-1 { background: #ffdce6; }
.pos-product-2 { background: #e4f1dc; }
.pos-product-3 { background: #eee1fb; }
.pos-product-4 { background: #fff0ce; }
.pos-product-5 { background: #fbe3d2; }
.pos-product-6 { background: #dbeef6; }
.pos-product-7 { background: #ffe0ec; }

.pos-product-art {
    font-size: 2.75rem;
    line-height: 1;
}

.pos-product-name {
    margin-top: 1rem;
    font-size: 1.02rem;
    font-weight: 900;
}

.pos-product-price {
    margin-top: 0.32rem;
    color: var(--pos-coral-dark);
    font-size: 1.02rem;
    font-weight: 900;
}

.pos-stock-hint {
    margin-top: 0.35rem;
    color: #655c63;
    font-size: 0.76rem;
    font-weight: 700;
}

.pos-cart {
    position: sticky;
    top: 1rem;
    align-self: start;
    min-height: min(690px, calc(100vh - 112px));
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding: clamp(1.25rem, 2vw, 1.75rem);
    border: 0;
    border-radius: 2rem;
    background: #fff;
    box-shadow: 0 18px 46px rgb(200 68 76 / 14%);
}

.pos-cart h2 {
    font-size: 1.45rem;
    font-weight: 900;
}

.pos-cart-close {
    display: none;
    font-size: 1.65rem;
    line-height: 1;
}

.pos-cart-lines {
    display: grid;
    gap: 0.2rem;
    margin-top: 1rem;
}

.pos-cart-line {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: center;
    padding: 0.85rem 0;
    border-bottom: 1px solid #f3e4ec;
}

.pos-line-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #d26060;
    background: #ffe8e1;
    font-size: 1.15rem;
}

.pos-cart-line > div:not(.pos-quantity) {
    min-width: 0;
    display: grid;
    gap: 0.18rem;
}

.pos-cart-line > div span {
    color: var(--pos-muted);
    font-size: 0.8rem;
}

.pos-quantity {
    grid-column: 2 / 4;
    display: grid;
    grid-template-columns: 44px 2.5rem 44px;
    align-items: center;
    justify-content: end;
    text-align: center;
}

.pos-quantity button {
    min-width: 44px;
    min-height: 44px;
    border: 1px solid #e4d8cf;
    border-radius: 14px;
    background: #fffaf6;
    color: var(--pos-ink);
    font: inherit;
    font-size: 1.25rem;
    font-weight: 850;
    cursor: pointer;
}

.pos-quantity button:focus-visible {
    outline: 3px solid #2d5f91;
    outline-offset: 2px;
}

.pos-empty-cart,
.pos-empty-products {
    display: grid;
    justify-items: center;
    align-content: center;
    text-align: center;
    color: var(--pos-muted);
}

.pos-empty-cart {
    flex: 1;
    min-height: 15rem;
}

.pos-empty-cart > span,
.pos-empty-products > span {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 19px;
    background: #fff1e9;
    color: var(--pos-coral);
    font-size: 1.5rem;
}

.pos-empty-cart strong {
    margin-top: 0.8rem;
    color: var(--pos-ink);
}

.pos-empty-cart p,
.pos-empty-products p {
    margin: 0.35rem 0 0;
}

.pos-empty-products {
    min-height: 20rem;
}

.pos-empty-products h2 {
    margin-top: 1rem;
    color: var(--pos-ink);
}

.pos-cart-footer {
    display: grid;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 2px dashed #eedce5;
}

.pos-cart-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    font-size: 1rem;
}

.pos-cart-total strong {
    color: #b2353d;
    font-size: clamp(1.65rem, 3vw, 2.2rem);
    letter-spacing: -0.04em;
}

.pos-focus-state {
    width: min(calc(100% - 2rem), 35rem);
    min-height: 100vh;
    box-sizing: border-box;
    display: grid;
    justify-items: center;
    align-content: center;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

.pos-focus-state h1 {
    font-size: clamp(2.2rem, 7vw, 4rem);
    line-height: 1;
}

.pos-focus-state > p:not(.pos-eyebrow):not(.pos-inline-error) {
    max-width: 28rem;
    margin: 0.8rem 0 0;
    color: var(--pos-muted);
    font-size: 1.05rem;
}

.pos-state-icon,
.pos-spinner {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    margin-bottom: 1.2rem;
    border-radius: 24px;
    background: #ffe4dc;
    color: var(--pos-coral-dark);
    font-size: 2rem;
    font-weight: 850;
    box-shadow: 0 14px 28px rgb(235 93 93 / 13%);
}

.pos-state-sun {
    background: #fff0bd;
    color: #a76400;
}

.pos-spinner {
    width: 48px;
    height: 48px;
    border: 5px solid #f3d8d0;
    border-top-color: var(--pos-coral);
    border-radius: 50%;
    background: transparent;
    animation: pos-spin 800ms linear infinite;
}

@keyframes pos-spin {
    to { transform: rotate(360deg); }
}

.pos-day-start label {
    justify-self: start;
    margin: 2rem 0 0.45rem;
    font-weight: 800;
}

.pos-money-input {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    border: 2px solid #dfd2c8;
    border-radius: 1.1rem;
    background: #fff;
    overflow: hidden;
}

.pos-money-input:focus-within {
    border-color: var(--pos-coral);
    outline: 3px solid rgb(235 93 93 / 15%);
}

.pos-money-input input {
    min-width: 0;
    min-height: 58px;
    box-sizing: border-box;
    padding: 0 0 0 1rem;
    border: 0;
    outline: 0;
    color: var(--pos-ink);
    font: inherit;
    font-size: 1.35rem;
    font-weight: 800;
}

.pos-money-input span {
    padding: 0 1rem;
    color: var(--pos-muted);
    font-weight: 800;
}

.pos-day-start small {
    justify-self: start;
    margin-top: 0.45rem;
    color: var(--pos-muted);
}

.pos-inline-error {
    margin: 0.7rem 0 0;
    color: #a72020;
    font-weight: 700;
}

.pos-primary-action,
.pos-secondary-action,
.pos-login-action {
    min-height: 52px;
    box-sizing: border-box;
    padding: 0 1.35rem;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

.pos-support-link {
    display: grid;
    place-items: center;
    color: var(--pos-ink);
    text-decoration: none;
}

.pos-primary-action {
    width: 100%;
    margin-top: 1.4rem;
    border: 0;
    border-radius: 1rem;
    background: linear-gradient(135deg, #ff7e76, var(--pos-coral));
    color: #fff;
    box-shadow: 0 12px 24px rgb(235 93 93 / 22%);
}

.pos-cash-action {
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    font-size: 1rem;
}

.pos-cash-action > span {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 2px solid rgb(255 255 255 / 65%);
    border-radius: 50%;
    font-size: 0.72rem;
}

.pos-payment-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
}

.pos-pouch-action {
    grid-column: 1 / -1;
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    background: linear-gradient(135deg, #238a70, #176b58);
    box-shadow: 0 12px 24px rgb(23 107 88 / 20%);
}

.pos-pouch-action > span {
    font-size: 1.2rem;
}

.pos-reserve-banner {
    width: auto;
    max-width: 22rem;
    min-height: 44px;
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-sizing: border-box;
    margin: 0;
    padding: 0.6rem 1rem;
    border: 1px solid #d49a28;
    border-radius: 0.9rem;
    background: #fff3cf;
    color: #714800;
    font: inherit;
    text-align: center;
    cursor: pointer;
}

.pos-reserve-banner strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pos-reserve-banner:hover,
.pos-reserve-banner:focus-visible {
    border-color: #a76700;
    outline: 3px solid rgb(212 154 40 / 22%);
    outline-offset: 2px;
}

.pos-reserve-banner:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.pos-device-modal-layer {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: grid;
    place-items: start center;
    box-sizing: border-box;
    padding: clamp(4.5rem, 10vh, 7rem) 1rem 1rem;
    overflow-y: auto;
}

.pos-device-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgb(43 31 38 / 38%);
    backdrop-filter: blur(2px);
}

.pos-device-modal {
    position: relative;
    z-index: 1;
    width: min(100%, 30rem);
    display: grid;
    gap: 0.8rem;
    box-sizing: border-box;
    padding: 1.25rem;
    border: 1px solid #eadbd4;
    border-radius: 1.35rem;
    background: #fffaf8;
    color: var(--pos-ink);
    box-shadow: 0 24px 70px rgb(43 31 38 / 30%);
}

.pos-device-modal:focus {
    outline: none;
}

.pos-device-modal > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.1rem 0.1rem 0.4rem;
}

.pos-device-modal h2 {
    margin: 0.15rem 0 0;
    font-size: clamp(1.55rem, 4vw, 2rem);
    letter-spacing: -0.035em;
}

.pos-modal-kicker {
    color: #9c2929;
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pos-modal-close {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border: 1px solid #e3d8d0;
    border-radius: 50%;
    background: #fff;
    color: var(--pos-ink);
    font: inherit;
    font-size: 1.55rem;
    line-height: 1;
    cursor: pointer;
}

.pos-device-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.8rem 1rem;
    box-sizing: border-box;
    padding: 1rem;
    border: 1px solid #eadfd9;
    border-radius: 1rem;
    background: #fff;
}

.pos-device-row-heading {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pos-device-row-heading > div {
    display: grid;
    gap: 0.15rem;
}

.pos-device-row-heading span:last-child,
.pos-device-inline small {
    color: var(--pos-muted);
    font-size: 0.82rem;
}

.pos-device-symbol {
    width: 2.4rem;
    height: 2.4rem;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 0.75rem;
    background: #f7eee9;
    color: #873333;
}

.pos-device-switch {
    width: 58px;
    height: 44px;
    position: relative;
    box-sizing: border-box;
    margin: 0;
    padding: 8px 3px;
    border: 2px solid #b9bebb;
    border-radius: 999px;
    background: #d9ddda;
    cursor: pointer;
    transition: background 140ms ease, border-color 140ms ease;
}

.pos-device-switch > span {
    width: 24px;
    height: 24px;
    display: block;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 7px rgb(43 31 38 / 22%);
    transition: transform 140ms ease;
}

.pos-device-switch.is-on {
    border-color: #18725a;
    background: #1f896c;
}

.pos-device-switch.is-on > span {
    transform: translateX(24px);
}

.pos-device-switch:focus-visible {
    outline: 4px solid #2d5f91;
    outline-offset: 3px;
}

.pos-device-switch:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.pos-device-inline {
    grid-column: 1 / -1;
    display: grid;
    gap: 0.7rem;
    box-sizing: border-box;
    padding: 0.85rem;
    border: 1px solid #e2b44f;
    border-radius: 0.8rem;
    background: #fff6d9;
    color: #5b3b00;
}

.pos-device-inline-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.pos-device-inline-actions .pos-primary-action,
.pos-device-inline-actions .pos-secondary-action {
    width: 100%;
    min-height: 46px;
    margin-top: 0;
    padding-inline: 0.8rem;
}

.pos-device-inline-actions .pos-primary-action {
    background: #b92f3a;
}

.pos-device-progress {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 750;
}

.pos-device-progress i {
    width: 0.85rem;
    height: 0.85rem;
    border: 2px solid #d6a13b;
    border-top-color: transparent;
    border-radius: 50%;
    animation: pos-spin 800ms linear infinite;
}

.pos-exception-confirm {
    width: min(100%, 30rem);
    box-sizing: border-box;
    display: grid;
    gap: 0.7rem;
    margin-top: 0.8rem;
    padding: 1rem;
    border: 1px solid #dfad43;
    border-radius: 1rem;
    background: #fff6d9;
    color: #5b3b00;
}

.pos-exception-confirm .pos-primary-action,
.pos-exception-confirm .pos-secondary-action {
    width: 100%;
    margin-top: 0;
}

.pos-exception-action {
    width: min(100%, 28rem);
    margin-top: 0.9rem;
}

.pos-reserve-actions {
    display: grid;
    width: min(100%, 28rem);
    gap: 0.75rem;
}

.pos-reserve-actions .pos-primary-action,
.pos-reserve-actions .pos-secondary-action {
    width: 100%;
    margin-top: 0;
}

.pos-device-note {
    display: block;
    margin-top: 0.65rem;
    color: var(--pos-muted);
    text-align: center;
}

.pos-card-action {
    margin-top: 0;
    background: linear-gradient(135deg, #6070c9, #3f4fa9);
    box-shadow: 0 12px 24px rgb(63 79 169 / 22%);
}

.pos-card-state {
    width: min(calc(100% - 2rem), 43rem);
    min-height: calc(100vh - 88px);
}

.pos-state-card {
    background: #e8eafd;
    color: #4653a6;
}

.pos-terminal-amount {
    width: 100%;
    box-sizing: border-box;
    display: grid;
    justify-items: center;
    gap: 0.35rem;
    margin-top: 1.35rem;
    padding: 1.2rem;
    border: 2px solid #bbc1ec;
    border-radius: 1.25rem;
    background: #f0f1ff;
}

.pos-terminal-amount span {
    color: #5d6191;
    font-size: 0.8rem;
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pos-terminal-amount strong {
    color: #343e8d;
    font-size: clamp(2.4rem, 8vw, 4.3rem);
    letter-spacing: -0.055em;
    line-height: 1;
}

.pos-card-steps {
    width: 100%;
    box-sizing: border-box;
    display: grid;
    gap: 0.5rem;
    margin: 1.1rem 0;
    padding-left: 1.8rem;
    color: #554a52;
    text-align: left;
}

.pos-card-steps li::marker {
    color: #505cb0;
    font-weight: 900;
}

.pos-card-outcomes {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.7rem;
    margin-top: 1rem;
}

.pos-card-outcomes button {
    min-height: 86px;
    display: grid;
    align-content: center;
    gap: 0.3rem;
    padding: 0.7rem;
    border: 1px solid #ddd3da;
    border-radius: 1rem;
    background: #fff;
    color: var(--pos-ink);
    font: inherit;
    cursor: pointer;
}

.pos-card-outcomes button:focus-visible {
    outline: 4px solid #2d5f91;
    outline-offset: 3px;
}

.pos-card-outcomes button > span {
    color: var(--pos-muted);
    font-size: 0.72rem;
    line-height: 1.25;
}

.pos-card-outcomes .pos-outcome-approved {
    border-color: #9fc9a5;
    background: #eef8eb;
    color: #285b31;
}

.pos-card-outcomes .pos-outcome-uncertain {
    border-color: #e1be75;
    background: #fff8df;
    color: #725211;
}

.pos-card-outcomes button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pos-primary-action:disabled,
.pos-cash-presets button:disabled {
    opacity: 0.48;
    cursor: not-allowed;
    box-shadow: none;
}

.pos-cash-entry {
    position: relative;
    align-content: start;
    min-height: 0;
    padding-top: clamp(2rem, 8vh, 6rem);
}

.pos-cash-entry label {
    justify-self: start;
    margin: 1.8rem 0 0.45rem;
    font-weight: 850;
}

.pos-cash-entry small {
    justify-self: start;
    margin-top: 0.55rem;
    color: var(--pos-muted);
}

.pos-state-cash {
    background: #e6f3df;
    color: #35642d;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.pos-back-action {
    justify-self: start;
    margin-bottom: 2rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #735d6c;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.pos-back-action:focus-visible {
    outline: 3px solid #2d5f91;
    outline-offset: 4px;
}

.pos-cash-presets {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.55rem;
    margin-top: 0.75rem;
}

.pos-cash-presets button {
    min-height: 48px;
    padding: 0.4rem;
    border: 1px solid #e3d8d0;
    border-radius: 0.85rem;
    background: #fff;
    color: var(--pos-ink);
    font: inherit;
    font-size: 0.83rem;
    font-weight: 850;
    cursor: pointer;
}

.pos-cash-presets button:hover,
.pos-cash-presets button:focus-visible {
    border-color: var(--pos-coral);
    outline: 3px solid rgb(235 93 93 / 15%);
}

.pos-change-card {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
    padding: 1rem 1.15rem;
    border-radius: 1rem;
    background: #eaf5e5;
    color: #284e2e;
}

.pos-change-card strong {
    font-size: clamp(1.45rem, 5vw, 2rem);
}

.pos-cash-state {
    min-height: calc(100vh - 88px);
}

.pos-cash-state .pos-state-icon {
    background: #e8f3df;
    color: #376735;
}

.pos-cash-state.pos-focus-error .pos-state-icon {
    background: #ffe4dc;
    color: #9b3030;
}

.pos-auto-progress {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1.5rem;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: #edf3ef;
    color: #40534a;
    font-size: 0.88rem;
    font-weight: 800;
}

.pos-auto-progress span {
    width: 0.75rem;
    height: 0.75rem;
    border: 2px solid #9ab0a2;
    border-top-color: #275b3d;
    border-radius: 50%;
    animation: pos-spin 800ms linear infinite;
}

.pos-stop-note {
    width: 100%;
    box-sizing: border-box;
    margin-top: 1.5rem;
    padding: 1rem;
    border: 2px solid #a93434;
    border-radius: 1rem;
    background: #fff0ee;
    color: #7d2020;
    font-weight: 800;
}

.pos-primary-action:focus-visible,
.pos-secondary-action:focus-visible {
    outline: 4px solid #2d5f91;
    outline-offset: 3px;
}

.pos-secondary-action {
    margin-top: 1.5rem;
    border-radius: 1rem;
}

.pos-login-action {
    display: grid;
    place-items: center;
    margin-top: 1.5rem;
    border-radius: 1rem;
    background: var(--pos-coral);
    color: #fff;
    text-decoration: none;
}

.pos-mobile-cart-bar {
    display: none;
}

@media (max-width: 78rem) {
    .pos-product-grid {
        grid-template-columns: repeat(3, minmax(8.5rem, 1fr));
    }
}

@media (max-width: 54rem) {
    .pos-topbar {
        min-height: 76px;
        gap: 0.5rem;
        padding-top: 0.7rem;
    }

    .pos-reserve-banner {
        width: 44px;
        min-width: 44px;
        padding: 0;
        border-radius: 50%;
    }

    .pos-reserve-banner strong {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        clip-path: inset(50%);
    }

    .pos-success-toast {
        right: 0.8rem;
        bottom: 0.8rem;
        left: 0.8rem;
        min-height: 62px;
        max-width: calc(100% - 1.6rem);
        justify-content: center;
        border-radius: 1.1rem;
    }

    .pos-register-heading > span {
        display: none;
    }

    .pos-device-modal-layer {
        padding: 3.25rem 0.75rem 0.75rem;
    }

    .workspace-account-avatar {
        width: 38px;
        height: 38px;
    }

    .pos-workspace {
        display: block;
        min-height: auto;
        padding-bottom: 6.5rem;
    }

    .pos-products-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .pos-search input {
        width: 100%;
    }

    .pos-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pos-product {
        min-height: 158px;
    }

    .pos-mobile-cart-bar {
        position: fixed;
        z-index: 20;
        right: 0.8rem;
        bottom: 0.8rem;
        left: 0.8rem;
        display: block;
    }

    .pos-mobile-cart-bar button {
        width: 100%;
        min-height: 62px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 1.2rem;
        border: 0;
        border-radius: 1.1rem;
        background: linear-gradient(135deg, #ff7e76, var(--pos-coral));
        color: #fff;
        font: inherit;
        font-weight: 800;
        box-shadow: 0 14px 30px rgb(102 48 43 / 28%);
    }

    .pos-cart {
        position: fixed;
        z-index: 30;
        inset: 0;
        min-height: 100vh;
        display: none;
        border: 0;
        border-radius: 0;
        overflow-y: auto;
    }

    .pos-cart.is-open {
        display: flex;
    }

    .pos-cart-close {
        display: block;
    }

    .pos-card-state {
        min-height: calc(100vh - 76px);
        padding: 1.3rem 1rem 2rem;
    }

    .pos-card-state .pos-state-icon {
        width: 54px;
        height: 54px;
        margin-bottom: 0.8rem;
        border-radius: 18px;
    }

    .pos-card-steps {
        margin-block: 0.8rem;
    }

    .pos-card-outcomes {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .pos-card-outcomes button {
        min-height: 64px;
    }
}

@media (max-width: 25rem) {
    .pos-topbar {
        padding-inline: 0.8rem;
    }

    .pos-workspace {
        padding-inline: 0.8rem;
    }

    .pos-brand {
        font-size: 1.3rem;
    }

    .pos-brand-mark {
        width: 40px;
        height: 40px;
    }

    .pos-brand-label {
        display: none;
    }

    .pos-operator {
        gap: 0.4rem;
    }

    .pos-operator-pill {
        padding: 0.25rem 0.5rem 0.25rem 0.25rem;
    }

    .workspace-account-copy strong {
        max-width: 4.8rem;
    }

    .workspace-account-copy small {
        font-size: 0.7rem;
    }

    .pos-product-grid {
        gap: 0.65rem;
    }

    .pos-product {
        min-height: 138px;
        padding: 0.85rem;
        border-radius: 1.1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pos-product {
        transition: none;
    }

    .pos-spinner,
    .pos-auto-progress span {
        animation-duration: 1.8s;
    }
}

button,
input,
select {
    font: inherit;
}

button {
    min-height: 44px;
}

.admin-shell {
    min-height: 100vh;
    background: #f5f7f6;
    color: #17211b;
}

.admin-topbar {
    box-sizing: border-box;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem clamp(1rem, 3vw, 2.5rem);
    border-bottom: 1px solid #dde3df;
    background: #fff;
}

.brand {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: inherit;
    text-decoration: none;
}

.brand > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #185d3e;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.brand strong {
    font-size: 1.02rem;
    letter-spacing: -0.02em;
}

.admin-context {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #526159;
    font-size: 0.88rem;
}

.role-chip,
.status {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 0 0.65rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 750;
}

.role-chip {
    background: #edf4f0;
    color: #185d3e;
}

.admin-layout {
    min-height: calc(100vh - 68px);
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1.5rem 1rem;
    border-right: 1px solid #dde3df;
    background: #fff;
}

.admin-nav button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 48px;
    padding: 0 0.9rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #526159;
    text-align: left;
    cursor: pointer;
}

.admin-nav button span {
    width: 24px;
    color: #738078;
    font-size: 1.1rem;
    text-align: center;
}

.admin-nav button:hover {
    background: #f3f6f4;
}

.admin-nav button.selected {
    background: #e7f1ec;
    color: #124b32;
    font-weight: 750;
}

.admin-main {
    width: min(100% - 3rem, 1080px);
    box-sizing: border-box;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4.5rem) 0 5rem;
}

.page-kicker {
    margin: 0 0 0.55rem;
    color: #2e7653;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.admin-main h1,
.admin-main h2,
.admin-main p {
    margin-top: 0;
}

.admin-main h1 {
    margin-bottom: 0.65rem;
    font-size: clamp(2.2rem, 5vw, 3.7rem);
    line-height: 1;
    letter-spacing: -0.055em;
}

.admin-main h2 {
    margin-bottom: 0.25rem;
    font-size: 1.2rem;
    letter-spacing: -0.025em;
}

.page-lead {
    max-width: 42rem;
    margin-bottom: 2rem;
    color: #65736b;
    font-size: 1rem;
}

.readiness {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.15rem 1.25rem;
    border: 1px solid;
    border-radius: 15px;
}

.card-resolution {
    display: grid;
    gap: 0.9rem;
    margin-bottom: 1.2rem;
    padding: clamp(1rem, 3vw, 1.35rem);
    border: 2px solid #d19a3e;
    border-radius: 15px;
    background: #fff8e3;
}

.card-resolution-heading {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.card-resolution h2,
.card-resolution p {
    margin: 0;
}

.card-resolution-heading > div > p:last-child,
.card-resolution > p {
    margin-top: 0.25rem;
    color: #6d5b3c;
    font-size: 0.84rem;
}

.card-resolution label {
    display: grid;
    gap: 0.4rem;
    color: #51452f;
    font-size: 0.8rem;
    font-weight: 750;
}

.card-resolution input {
    min-height: 46px;
    box-sizing: border-box;
    padding: 0 0.8rem;
    border: 1px solid #cdbb94;
    border-radius: 8px;
    background: #fff;
}

.readiness.blocked {
    border-color: #f1d5a1;
    background: #fff9ed;
}

.readiness.ready {
    border-color: #b9deca;
    background: #eff9f3;
}

.readiness-icon,
.state-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f6c761;
    color: #4c3600;
    font-weight: 900;
}

.readiness.ready .readiness-icon {
    background: #57a777;
    color: #fff;
}

.readiness p {
    margin: 0.2rem 0 0;
    color: #6c685b;
    font-size: 0.88rem;
}

.button {
    min-height: 44px;
    padding: 0 1rem;
    border: 1px solid transparent;
    border-radius: 9px;
    font-weight: 750;
    cursor: pointer;
}

.button.primary {
    background: #185d3e;
    color: #fff;
}

.button.primary:hover {
    background: #104c31;
}

.button.secondary {
    border-color: #cfd8d2;
    background: #fff;
    color: #283a30;
}

.button:focus-visible,
.admin-nav button:focus-visible,
.text-button:focus-visible,
.icon-button:focus-visible,
.compact-row:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid #90c7aa;
    outline-offset: 2px;
}

.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.admin-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.summary-card {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    padding: 1.3rem;
    border: 1px solid #dde3df;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 25px rgb(23 48 34 / 4%);
}

.card-heading {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.3rem;
    color: #5c6961;
    font-size: 0.84rem;
    font-weight: 700;
}

.card-icon {
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 9px;
    background: #eaf3ee;
    color: #185d3e;
    font-weight: 850;
}

.big-number {
    font-size: 2.2rem;
    line-height: 1;
}

.summary-card > p {
    margin: 0.4rem 0 1rem;
    color: #657168;
    font-size: 0.85rem;
}

.seller-summary > strong {
    line-height: 1.3;
}

.text-button {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: auto -0.3rem -0.5rem;
    padding: 0 0.3rem;
    border: 0;
    background: transparent;
    color: #185d3e;
    font-size: 0.85rem;
    font-weight: 760;
    cursor: pointer;
}

.section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.3rem;
}

.product-list,
.setup-list,
.compact-table {
    display: grid;
    gap: 0.7rem;
}

.product-row {
    min-height: 76px;
    display: grid;
    grid-template-columns: 44px minmax(170px, 1fr) 100px 110px 75px auto;
    align-items: center;
    gap: 1rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid #dde3df;
    border-radius: 12px;
    background: #fff;
}

.drag-order {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #f1f4f2;
    color: #5d6a62;
    font-size: 0.82rem;
    font-weight: 750;
}

.product-name {
    display: grid;
    gap: 0.25rem;
}

.product-name span,
.vat-label {
    color: #667169;
    font-size: 0.78rem;
}

.money {
    text-align: right;
}

.status.active {
    background: #e4f4ea;
    color: #17633c;
}

.status.inactive {
    background: #eef0ef;
    color: #66716a;
}

.status.warning {
    background: #fff1cf;
    color: #735600;
}

.icon-button,
.icon-close {
    min-height: 44px;
    border: 0;
    background: transparent;
    color: #2b6848;
    font-size: 0.82rem;
    font-weight: 750;
    cursor: pointer;
}

.icon-close {
    width: 44px;
    font-size: 1.6rem;
    color: #637168;
}

.empty-state {
    display: grid;
    place-items: center;
    padding: 4rem 1rem;
    border: 1px dashed #c7d2cb;
    border-radius: 15px;
    background: #fff;
    text-align: center;
}

.empty-state > span {
    font-size: 2rem;
}

.empty-state h2 {
    margin-top: 1rem;
}

.empty-state p {
    color: #6b776f;
}

.form-card {
    margin-top: 1.5rem;
    padding: clamp(1.1rem, 3vw, 1.7rem);
    border: 1px solid #cfd9d3;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 14px 40px rgb(19 43 30 / 7%);
}

.form-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.2rem;
}

.form-grid {
    display: grid;
    gap: 1rem;
}

.form-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid .wide {
    grid-column: 1 / -1;
}

.form-card label {
    display: grid;
    gap: 0.45rem;
    color: #46564c;
    font-size: 0.82rem;
    font-weight: 700;
}

.form-card input:not([type=checkbox]),
.form-card select {
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    padding: 0 0.8rem;
    border: 1px solid #cbd5cf;
    border-radius: 8px;
    background: #fff;
    color: #17211b;
}

.export-card {
    max-width: 850px;
}

.export-fields {
    grid-template-columns: minmax(180px, 1.4fr) repeat(2, minmax(145px, 1fr));
}

.export-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.2rem;
}

.export-state {
    max-width: 850px;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.2rem;
    border: 1px solid #d6dfda;
    border-radius: 12px;
    background: #fff;
}

.export-state h2,
.export-state p {
    margin: 0;
}

.export-state p {
    margin-top: 0.2rem;
    color: #65736b;
    font-size: 0.88rem;
}

.archive-workspace {
    max-width: 850px;
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid #d6dfda;
}

.archive-workspace h2 {
    margin: 0;
    font-size: 2rem;
}

.archive-result {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.archive-result > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: #46564c;
}

.archive-file-list {
    overflow: hidden;
    border: 1px solid #d6dfda;
    border-radius: 12px;
    background: #fff;
}

.archive-file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 72px;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #e7ece9;
}

.archive-file-row:last-child {
    border-bottom: 0;
}

.archive-file-row span {
    display: grid;
    gap: 0.15rem;
}

.archive-file-row small {
    color: #65736b;
}

.check-row {
    min-height: 44px;
    grid-template-columns: 22px 1fr !important;
    align-items: center;
    gap: 0.6rem !important;
    margin-top: 1rem;
}

.check-row input {
    width: 20px;
    height: 20px;
    accent-color: #185d3e;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.2rem;
}

.form-help {
    margin: 1rem 0 0;
    padding: 0.8rem;
    border-radius: 8px;
    background: #f2f5f3;
    color: #5a685f;
    font-size: 0.82rem;
}

.setup-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #dde3df;
    border-radius: 12px;
    background: #fff;
}

.setup-block > div {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.setup-block h2,
.setup-block p {
    margin: 0;
}

.setup-block p {
    margin-top: 0.25rem;
    color: #65736b;
    font-size: 0.82rem;
}

.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0.5rem 0 1.5rem;
}

.compact-table {
    margin-top: 1.5rem;
}

.device-section {
    display: grid;
    gap: 0.8rem;
    margin-top: 2.2rem;
}

.device-section-heading p {
    margin: 0.25rem 0 0;
    color: #5f6d65;
    font-size: 0.86rem;
}

.device-card {
    padding: clamp(1rem, 3vw, 1.4rem);
    border: 1px solid #d7dfda;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 25px rgb(23 48 34 / 4%);
}

.device-card-heading,
.device-card-heading > div,
.device-empty,
.agent-identity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.device-card-heading > div {
    justify-content: flex-start;
}

.device-card-heading h2,
.device-card-heading p,
.device-empty p {
    margin: 0;
}

.device-card-heading p,
.device-empty p {
    margin-top: 0.2rem;
    color: #65736b;
    font-size: 0.82rem;
}

.device-empty {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    background: #f4f7f5;
}

.agent-identity {
    margin-top: 1rem;
    padding: 0.85rem 0;
    border-top: 1px solid #e4e9e6;
    border-bottom: 1px solid #e4e9e6;
    color: #526159;
    font-size: 0.8rem;
}

.agent-identity > span {
    display: grid;
    gap: 0.25rem;
}

.agent-identity code {
    color: #24352b;
    font-size: 0.78rem;
    overflow-wrap: anywhere;
}

.printer-assignment {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #d7dfda;
    border-radius: 10px;
    background: #f7faf8;
}

.printer-assignment > div {
    display: grid;
    gap: 0.25rem;
}

.printer-assignment p {
    margin: 0;
    color: #5e685f;
    font-size: 0.82rem;
}

.printer-label {
    color: #65736b;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.button.quiet-danger {
    border-color: #e4c7c7;
    background: #fff;
    color: #8a2929;
}

.device-status-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
    margin-top: 1rem;
}

.device-status-grid > div {
    min-height: 90px;
    display: grid;
    align-content: start;
    gap: 0.25rem;
    padding: 0.8rem;
    border: 1px solid #e0e6e2;
    border-radius: 10px;
    background: #fafcfb;
}

.device-status-grid span,
.device-status-grid small {
    color: #69766e;
    font-size: 0.75rem;
}

.device-status-grid strong {
    font-size: 0.92rem;
}

.device-tests {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    align-items: end;
    gap: 1rem;
    margin-top: 1rem;
}

.device-tests label {
    display: grid;
    gap: 0.4rem;
    color: #46564c;
    font-size: 0.8rem;
    font-weight: 700;
}

.device-tests input {
    min-height: 44px;
    box-sizing: border-box;
    padding: 0 0.75rem;
    border: 1px solid #cbd5cf;
    border-radius: 8px;
}

.device-tests .inline-actions {
    margin: 0;
}

.credential-once,
.effect-state {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 11px;
}

.credential-once {
    border: 1px solid #dfc46f;
    background: #fff9df;
}

.credential-once p,
.effect-state p {
    margin: 0.3rem 0 0;
    color: #5e685f;
    font-size: 0.84rem;
}

.credential-once dl {
    display: grid;
    gap: 0.45rem;
    margin: 1rem 0;
}

.credential-once dl > div {
    display: grid;
    grid-template-columns: 135px minmax(0, 1fr);
    gap: 0.75rem;
}

.credential-once dt {
    color: #6b5a1e;
    font-size: 0.76rem;
    font-weight: 750;
}

.credential-once dd {
    min-width: 0;
    margin: 0;
}

.credential-once code {
    overflow-wrap: anywhere;
}

.effect-state.pending {
    background: #eef4f8;
}

.effect-state.succeeded {
    background: #edf8f1;
}

.effect-state.failed {
    background: #fff5df;
}

.effect-state.unknown {
    border: 1px solid #e4b5b5;
    background: #fff0f0;
}

.effect-state .button {
    margin-top: 0.8rem;
}

.compact-row {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0.9rem;
    border: 1px solid #dde3df;
    border-radius: 10px;
    background: #fff;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.compact-row > span:first-child {
    display: grid;
    gap: 0.2rem;
}

.compact-row small {
    color: #65736b;
}

.toast-message {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    z-index: 20;
    padding: 0.9rem 1.1rem;
    border-radius: 10px;
    background: #174f36;
    color: #fff;
    box-shadow: 0 10px 35px rgb(0 0 0 / 18%);
}

.toast-message.error {
    background: #9a2c2c;
}

.admin-state {
    min-height: 100vh;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 0.7rem;
    box-sizing: border-box;
    padding: 2rem;
    background: #f4f6f5;
    text-align: center;
}

.admin-state h1,
.admin-state p {
    margin: 0;
}

.admin-state p {
    color: #68756d;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #c9d8d0;
    border-top-color: #185d3e;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 800px) {
    .admin-context > span:first-child {
        display: none;
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-nav {
        position: sticky;
        top: 0;
        z-index: 10;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        padding: 0.55rem;
        border-right: 0;
        border-bottom: 1px solid #dde3df;
    }

    .admin-nav button {
        min-height: 50px;
        justify-content: center;
        gap: 0.35rem;
        padding: 0 0.4rem;
        font-size: 0.72rem;
    }

    .admin-nav button span {
        width: auto;
    }

    .admin-main {
        width: min(100% - 1.5rem, 1080px);
        padding: 2rem 0 4rem;
    }

    .admin-main h1 {
        font-size: 2.35rem;
    }

    .readiness {
        grid-template-columns: auto 1fr;
    }

    .readiness .button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .admin-cards {
        grid-template-columns: 1fr;
    }

    .summary-card {
        min-height: 155px;
    }

    .section-heading {
        align-items: flex-end;
    }

    .section-heading .button {
        flex: 0 0 auto;
    }

    .product-row {
        grid-template-columns: 34px 1fr auto;
        gap: 0.6rem;
    }

    .product-row .vat-label,
    .product-row .status {
        display: none;
    }

    .product-row .money {
        grid-column: 3;
        grid-row: 1;
    }

    .product-row .icon-button {
        grid-column: 3;
        grid-row: 2;
        min-height: 44px;
    }

    .form-grid.two {
        grid-template-columns: 1fr;
    }

    .export-fields {
        grid-template-columns: 1fr;
    }

    .archive-result > div:first-child,
    .archive-file-row {
        align-items: stretch;
        flex-direction: column;
    }

    .form-grid .wide {
        grid-column: auto;
    }

    .device-status-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .device-tests {
        grid-template-columns: 1fr;
    }

    .setup-block {
        align-items: flex-start;
    }
}

@media (max-width: 430px) {
    .admin-topbar {
        min-height: 60px;
    }

    .brand strong {
        display: none;
    }

    .admin-context > span:first-child {
        display: none;
    }

    .admin-nav button {
        flex-direction: column;
        line-height: 1.1;
        white-space: normal;
    }

    .page-lead {
        margin-bottom: 1.4rem;
    }

    .section-heading {
        gap: 0.8rem;
    }

    .section-heading .button {
        padding: 0 0.75rem;
        font-size: 0.78rem;
    }

    .setup-block {
        display: grid;
    }

    .setup-block .button {
        width: 100%;
    }

    .device-card-heading,
    .device-empty,
    .agent-identity,
    .printer-assignment {
        align-items: flex-start;
    }

    .device-empty,
    .agent-identity,
    .printer-assignment {
        display: grid;
    }

    .device-empty .button,
    .agent-identity .button,
    .printer-assignment .button,
    .device-tests .button {
        width: 100%;
    }

    .device-status-grid {
        grid-template-columns: 1fr;
    }

    .credential-once dl > div {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }
}

.return-workspace {
    max-width: 900px;
}

.return-workspace *,
.return-workspace *::before,
.return-workspace *::after {
    box-sizing: border-box;
}

.return-search {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
    gap: 14px;
    align-items: end;
    padding: 20px;
    margin-top: 24px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
}

.return-search label,
.return-reason,
.blocked-panel label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: .85rem;
    font-weight: 700;
}

.return-search input,
.return-search select,
.return-reason textarea,
.blocked-panel input {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 11px;
    background: white;
    color: var(--ink);
    font: inherit;
}

.return-intro,
.return-progress,
.return-receipt {
    margin-top: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
}

.return-intro {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 30px;
}

.return-intro > span {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 14px;
    background: var(--lime-soft);
    color: var(--ink);
    font-size: 1.5rem;
}

.return-intro h2,
.return-intro p,
.return-progress h2,
.return-progress p {
    margin: 0;
}

.return-intro p,
.return-progress p {
    color: var(--muted);
}

.return-receipt {
    overflow: hidden;
}

.return-receipt-heading,
.return-summary {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 18px 20px;
}

.return-receipt-heading {
    border-bottom: 1px solid var(--line);
}

.return-receipt-heading h2 {
    margin: 2px 0 0;
}

.return-lines {
    display: grid;
}

.return-line {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    min-height: 78px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
}

.return-line > div:first-child {
    display: grid;
    gap: 2px;
}

.return-line span,
.return-line small {
    color: var(--muted);
}

.quantity-stepper {
    display: grid;
    grid-template-columns: 44px 40px 44px;
    align-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    overflow: hidden;
}

.quantity-stepper button {
    min-width: 44px;
    min-height: 44px;
    border: 0;
    background: var(--surface-soft);
    color: var(--ink);
    font-size: 1.25rem;
    cursor: pointer;
}

.quantity-stepper button:disabled {
    opacity: .35;
    cursor: default;
}

.quantity-stepper output {
    color: var(--ink);
    text-align: center;
    font-weight: 800;
}

.return-reason {
    padding: 18px 20px 4px;
}

.return-reason textarea {
    resize: vertical;
}

.return-summary {
    padding-bottom: 10px;
}

.return-summary strong,
.return-total {
    font-size: 1.35rem;
}

.return-submit {
    width: calc(100% - 40px);
    margin: 0 20px 20px;
}

.return-progress {
    display: grid;
    justify-items: start;
    gap: 10px;
    padding: 28px;
}

.terminal-amount {
    display: grid;
    gap: 4px;
    width: 100%;
    padding: 18px;
    margin-top: 8px;
    border-radius: 14px;
    background: var(--ink);
    color: white;
}

.terminal-amount strong {
    font-size: clamp(2rem, 6vw, 3.5rem);
}

.return-steps {
    display: grid;
    gap: 8px;
    padding-left: 24px;
}

.return-outcomes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

.blocked-panel {
    display: grid;
    gap: 14px;
    width: 100%;
    padding: 18px;
    margin-top: 8px;
    border: 1px solid #e0b8a8;
    border-radius: 14px;
    background: #fff7f2;
}

.blocked-panel label,
.blocked-panel input {
    min-width: 0;
}

@media (max-width: 700px) {
    .return-search {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .return-search .button {
        width: 100%;
    }

    .return-intro {
        align-items: flex-start;
        padding: 20px;
    }

    .return-receipt-heading,
    .return-line,
    .return-summary {
        padding-inline: 16px;
    }

    .return-line {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .return-reason {
        padding-inline: 16px;
    }

    .return-submit {
        width: calc(100% - 32px);
        margin-inline: 16px;
    }

    .return-progress {
        padding: 20px;
    }

    .return-outcomes {
        grid-template-columns: 1fr;
    }

    .blocked-panel .inline-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
    }

    .blocked-panel .button {
        width: 100%;
        white-space: normal;
    }
}

.pos-day-workspace {
    max-width: 660px;
}

.pos-day-workspace > label {
    justify-self: start;
    margin: 1.25rem 0 .5rem;
    font-weight: 850;
}

.day-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    margin-top: 12px;
}

.day-actions > button:last-child {
    grid-column: 1 / -1;
}

.purchase-reminder {
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    margin: 12px 0 4px;
    padding: 14px 16px;
    border: 1px solid #d8c27b;
    border-radius: 14px;
    background: #fff8df;
    color: var(--pos-ink);
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.purchase-reminder > span:nth-child(2) {
    display: grid;
    gap: 3px;
}

.purchase-reminder small {
    color: var(--pos-muted);
}

.purchase-reminder:focus-visible {
    outline: 4px solid #2d5f91;
    outline-offset: 3px;
}

.purchase-receipt-input {
    position: relative;
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px dashed var(--pos-line);
    border-radius: 14px;
    background: white;
}

.purchase-file-button {
    justify-self: start;
    padding: 9px 13px;
    border-radius: 10px;
    background: var(--pos-green-soft);
    color: var(--pos-green);
    font-weight: 850;
}

.purchase-file-native {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.purchase-receipt-input:focus-within {
    outline: 4px solid #2d5f91;
    outline-offset: 3px;
}

.purchase-receipt-input small {
    color: var(--pos-green);
    overflow-wrap: anywhere;
}

.day-close-purchase-note {
    display: grid;
    gap: 4px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid #d8c27b;
    border-radius: 14px;
    background: #fff8df;
}

.day-close-purchase-note span {
    color: var(--pos-muted);
}

.day-close-workspace {
    width: min(920px, calc(100% - 40px));
    margin: 0 auto;
    padding: 42px 0 72px;
}

.day-close-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 28px;
    margin: 22px 0 26px;
}

.day-close-heading h1 {
    margin: 4px 0 8px;
    font-size: clamp(2.1rem, 5vw, 3.6rem);
    line-height: 1;
}

.day-close-heading p {
    margin: 0;
}

.day-close-note,
.day-close-blockers,
.day-close-step,
.day-close-difference-explanation,
.day-close-complete {
    border: 1px solid #d9e2dd;
    border-radius: 22px;
    background: #fff;
}

.day-close-note {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 20px;
    margin-bottom: 20px;
    background: #edf7f1;
}

.day-close-step {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 18px;
    padding: 28px;
}

.day-close-step > div:last-child {
    display: grid;
    gap: 14px;
}

.day-close-step h2,
.day-close-blockers h2,
.day-close-difference-explanation h2,
.day-close-complete h2 {
    margin: 0;
    font-size: 1.45rem;
}

.day-close-step p {
    margin: 0 0 4px;
}

.day-close-step-number {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 15px;
    background: #12633f;
    color: #fff;
    font-weight: 800;
}

.day-close-step .pos-money-input,
.day-close-step .pos-primary-action {
    width: min(100%, 420px);
}

.day-close-comparison {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.day-close-comparison article {
    display: grid;
    gap: 6px;
    min-height: 108px;
    padding: 20px;
    border: 1px solid #d9e2dd;
    border-radius: 18px;
    background: #fff;
}

.day-close-comparison strong {
    font-size: 1.45rem;
}

.difference.ok {
    background: #edf7f1;
    color: #124f35;
}

.difference.attention {
    background: #fff3d9;
    color: #6f4800;
}

.day-close-blockers {
    display: grid;
    gap: 12px;
    padding: 24px;
    margin-bottom: 20px;
    border-color: #e8c77f;
    background: #fff8e8;
}

.day-close-blockers > div {
    display: grid;
    gap: 3px;
    padding-top: 12px;
    border-top: 1px solid #ead8af;
}

.day-close-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
}

.day-close-fields label,
.day-close-step > div > label {
    display: grid;
    gap: 7px;
    font-weight: 750;
}

.day-close-fields input,
.day-close-step textarea {
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid #aebdb5;
    border-radius: 12px;
    background: #fff;
    color: #102219;
    font: inherit;
}

.day-close-card-comparison {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 16px;
    border-radius: 14px;
    background: #f1f4f2;
}

.day-close-card-comparison span {
    display: grid;
    gap: 4px;
}

.day-close-difference-explanation {
    display: grid;
    gap: 14px;
    padding: 24px 28px;
    margin-top: 20px;
    border-color: #e8c77f;
    background: #fff8e8;
}

.day-close-difference-explanation p,
.day-close-difference-explanation h2 {
    margin: 0;
}

.day-close-difference-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.day-close-difference-summary span {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    min-width: 210px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff;
}

.day-close-difference-explanation label {
    font-weight: 750;
}

.day-close-difference-explanation textarea {
    width: min(100%, 620px);
    min-height: 76px;
    padding: 12px 14px;
    border: 1px solid #aebdb5;
    border-radius: 12px;
    background: #fff;
    color: #102219;
    font: inherit;
}

.day-close-final-action {
    display: grid;
    gap: 10px;
    justify-items: end;
    margin-top: 20px;
}

.day-close-final-action .pos-primary-action {
    width: min(100%, 420px);
}

.day-close-complete {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 44px 28px;
    text-align: center;
}

.day-close-complete p {
    max-width: 540px;
    margin: 0;
}

@media (max-width: 620px) {
    .day-close-workspace {
        width: min(100% - 24px, 920px);
        padding-top: 26px;
    }

    .day-close-heading,
    .day-close-note,
    .day-close-card-comparison {
        align-items: stretch;
        flex-direction: column;
    }

    .day-close-comparison {
        grid-template-columns: 1fr;
    }

    .day-close-comparison article {
        min-height: 86px;
    }

    .day-close-step {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .day-close-difference-explanation {
        padding: 20px;
    }

    .day-close-difference-summary span {
        width: 100%;
    }

    .day-close-final-action {
        justify-items: stretch;
    }

    .day-close-fields {
        grid-template-columns: 1fr;
    }
}

.day-actions button {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 2px 12px;
    align-items: center;
    min-height: 92px;
    padding: 16px;
    border: 1px solid var(--pos-line);
    border-radius: 16px;
    background: white;
    color: var(--pos-ink);
    text-align: left;
    cursor: pointer;
}

.day-actions button:hover,
.day-actions button:focus-visible {
    border-color: var(--pos-green);
    box-shadow: 0 0 0 3px rgba(41, 105, 74, .13);
}

.day-actions button > span {
    grid-row: 1 / 3;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 14px;
    background: var(--pos-green-soft);
    color: var(--pos-green);
    font-size: 1.5rem;
    font-weight: 800;
}

.day-actions button strong {
    font-size: 1rem;
}

.day-actions button small {
    color: var(--pos-muted);
}

.day-reason-input {
    box-sizing: border-box;
    width: 100%;
    min-height: 72px;
    padding: 12px 14px;
    border: 1px solid var(--pos-line);
    border-radius: 12px;
    background: white;
    color: var(--pos-ink);
    font: inherit;
    resize: vertical;
}

.day-movement-reason {
    display: grid;
    gap: 4px;
    width: 100%;
    padding: 16px;
    border: 1px solid var(--pos-line);
    border-radius: 14px;
    background: white;
}

.day-movement-reason span {
    color: var(--pos-muted);
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

@media (max-width: 600px) {
    .day-actions {
        grid-template-columns: 1fr;
    }
}

/* =========================================================================
   Daggry — soft, warm admin theme (scoped to .admin-shell; POS is untouched)
   Source of truth: admin-soft/01-daggry.html
   ========================================================================= */
:root {
    --bk-bg: #FCF7F1;
    --bk-surface: #FFFFFF;
    --bk-surface-2: #FFFBF6;
    --bk-line: #EFE6D6;
    --bk-line-soft: #F4ECDD;
    --bk-ink: #2C251F;
    --bk-sec: #574C40;
    --bk-muted: #6B5E50;
    --bk-coral: #A8452A;       /* AA text on light surfaces */
    --bk-coral-soft: #E87457;  /* decorative only */
    --bk-peach: #F6B597;
    --bk-ok: #2F6B4B;
    --bk-ok-tint: #E7F1EC;
    --bk-ok-border: #CDE6D4;
    --bk-warn: #8A5A2A;
    --bk-warn-tint: #FBF1E0;
    --bk-warn-border: #F0DBA8;
    --bk-bad: #B23B2E;
    --bk-bad-tint: #FBEAE8;
    --bk-bad-border: #F0CFCB;
    --bk-radius: 18px;
    --bk-radius-lg: 24px;
    --bk-shadow: 0 18px 40px -16px rgba(120, 80, 50, 0.26), 0 4px 12px -8px rgba(120, 80, 50, 0.10);
    --bk-shadow-sm: 0 10px 24px -14px rgba(120, 80, 50, 0.28);
    --bk-display: "Fraunces", Georgia, "Times New Roman", serif;
}

.admin-shell {
    background:
        radial-gradient(60% 50% at 12% -5%, #FFE6D2 0%, transparent 55%),
        radial-gradient(55% 45% at 105% 0%, #E7EEFB 0%, transparent 55%),
        radial-gradient(50% 50% at 50% 110%, #FBEEF1 0%, transparent 55%),
        var(--bk-bg);
    color: var(--bk-ink);
}

/* --- typography (Fraunces display for headings) --- */
.admin-shell .page-kicker {
    color: var(--bk-coral);
    font-weight: 700;
}
.admin-shell .admin-main h1 {
    font-family: var(--bk-display);
    font-weight: 500;
    letter-spacing: -0.03em;
    color: var(--bk-ink);
}
.admin-shell .admin-main h2 {
    letter-spacing: -0.01em;
}
.admin-shell .page-lead {
    color: var(--bk-sec);
}

/* --- buttons: soft pills --- */
.admin-shell .button {
    min-height: 46px;
    padding: 0 1.25rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.92rem;
    transition: background .15s, border-color .15s, transform .05s;
}
.admin-shell .button.primary {
    background: var(--bk-ink);
    color: #FBF3E9;
    box-shadow: var(--bk-shadow-sm);
}
.admin-shell .button.primary:hover {
    background: #3a3027;
}
.admin-shell .button.secondary {
    background: var(--bk-surface);
    border-color: var(--bk-line);
    color: var(--bk-ink);
}
.admin-shell .button.secondary:hover {
    border-color: var(--bk-coral);
}
.admin-shell .button.quiet-danger {
    background: var(--bk-surface);
    border-color: var(--bk-bad-border);
    color: var(--bk-bad);
}
.admin-shell .button:focus-visible,
.admin-shell .admin-nav button:focus-visible,
.admin-shell .text-button:focus-visible,
.admin-shell .icon-button:focus-visible,
.admin-shell .compact-row:focus-visible,
.admin-shell input:focus-visible,
.admin-shell select:focus-visible {
    outline: 3px solid var(--bk-coral);
    outline-offset: 2px;
}
.admin-shell .check-row input {
    accent-color: var(--bk-coral);
}
.admin-shell .button:disabled,
.admin-shell .button.primary:disabled,
.admin-shell .button.secondary:disabled {
    background: var(--bk-line-soft);
    color: var(--bk-muted);
    border-color: var(--bk-line);
    box-shadow: none;
    opacity: 1;
    cursor: not-allowed;
}

/* --- forms --- */
.admin-shell .form-card {
    border: 1px solid var(--bk-line);
    border-radius: var(--bk-radius-lg);
    background: var(--bk-surface);
    box-shadow: var(--bk-shadow);
}
.admin-shell .form-card label {
    color: var(--bk-sec);
    font-weight: 600;
}
.admin-shell .form-card input:not([type=checkbox]),
.admin-shell .form-card select {
    min-height: 48px;
    border: 1px solid var(--bk-line);
    border-radius: 12px;
    background: var(--bk-surface-2);
    color: var(--bk-ink);
    transition: border-color .15s, box-shadow .15s;
}
.admin-shell .form-card input:not([type=checkbox]):focus,
.admin-shell .form-card select:focus {
    border-color: var(--bk-coral);
    box-shadow: 0 0 0 3px rgba(200, 90, 62, 0.16);
    outline: none;
}
.admin-shell .form-help {
    background: var(--bk-line-soft);
    color: var(--bk-muted);
    border-radius: 12px;
}
.admin-shell .card-resolution input {
    border-radius: 12px;
    border-color: var(--bk-line);
}

/* --- readiness + states (soft pastel, AA) --- */
.admin-shell .readiness {
    border: 1px solid var(--bk-line);
    border-radius: var(--bk-radius);
    background: var(--bk-surface);
    box-shadow: var(--bk-shadow-sm);
}
.admin-shell .readiness.ready {
    border-color: var(--bk-ok-border);
    background: var(--bk-ok-tint);
}
.admin-shell .readiness.blocked {
    border-color: var(--bk-warn-border);
    background: var(--bk-warn-tint);
}
.admin-shell .readiness strong {
    color: var(--bk-ink);
}
.admin-shell .readiness p {
    color: var(--bk-sec);
}
.admin-shell .readiness-icon,
.admin-shell .state-icon {
    background: var(--bk-warn-border);
    color: var(--bk-warn);
}
.admin-shell .readiness.ready .readiness-icon {
    background: var(--bk-ok);
    color: #fff;
}

/* --- uncertain-card resolution (soft peach) --- */
.admin-shell .card-resolution {
    border: 1px solid #F1D2B0;
    border-radius: var(--bk-radius-lg);
    background: #FBEFE3;
    box-shadow: var(--bk-shadow-sm);
}
.admin-shell .card-resolution h2 {
    color: var(--bk-ink);
}
.admin-shell .card-resolution-heading > div > p:last-child,
.admin-shell .card-resolution > p {
    color: var(--bk-sec);
}
.admin-shell .card-resolution label {
    color: var(--bk-sec);
}

/* --- status pills + role chip --- */
.admin-shell .status {
    border-radius: 999px;
    font-weight: 600;
}
.admin-shell .status.active {
    background: var(--bk-ok-tint);
    color: var(--bk-ok);
}
.admin-shell .status.inactive {
    background: #F1ECE3;
    color: var(--bk-muted);
}
.admin-shell .status.warning {
    background: var(--bk-warn-tint);
    color: var(--bk-warn);
}
.admin-shell .role-chip {
    background: #F7EAE2;
    color: var(--bk-coral);
}

/* --- toast (soft, AA) --- */
.admin-shell .toast-message {
    border-radius: 14px;
    background: var(--bk-ok-tint);
    color: var(--bk-ok);
    border: 1px solid var(--bk-ok-border);
    box-shadow: var(--bk-shadow);
    font-weight: 600;
}
.admin-shell .toast-message.error {
    background: var(--bk-bad-tint);
    color: var(--bk-bad);
    border-color: var(--bk-bad-border);
}

/* --- accent text links stay coral --- */
.admin-shell .text-button,
.admin-shell .icon-button {
    color: var(--bk-coral);
}

/* --- shell + top bar + pill nav (T-094) --- */
.admin-shell .admin-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    justify-content: flex-start;
    flex-wrap: wrap;
    min-height: 64px;
    gap: 0.9rem;
    padding: 0.7rem clamp(1rem, 3vw, 2rem);
    border-bottom: 1px solid var(--bk-line);
    background: rgba(255, 251, 245, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.admin-shell .brand {
    gap: 0.7rem;
}
.admin-shell .brand > span {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--bk-peach), var(--bk-coral-soft));
    color: #fff;
    font-family: var(--bk-display);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0;
    box-shadow: var(--bk-shadow-sm);
}
.admin-shell .brand strong {
    font-family: var(--bk-display);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--bk-ink);
}
.admin-shell .admin-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.3rem;
    padding: 0;
    border: 0;
    background: transparent;
    margin: 0;
}
.admin-shell .admin-nav button {
    min-height: 42px;
    padding: 0 0.95rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--bk-sec);
    font-weight: 600;
    font-size: 0.92rem;
}
.admin-shell .admin-nav button span {
    width: auto;
    color: inherit;
    font-size: 1rem;
    opacity: 0.8;
}
.admin-shell .admin-nav button:hover {
    background: #fff;
    color: var(--bk-ink);
}
.admin-shell .admin-nav button.selected {
    background: var(--bk-ink);
    color: #FBF3E9;
}
.admin-shell .admin-nav button.selected span {
    opacity: 1;
}
.admin-shell .admin-context {
    margin-left: auto;
    color: var(--bk-sec);
    font-size: 0.85rem;
}
.admin-shell .hall-name {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 0.7rem;
    border-radius: 999px;
    background: #F7EAE2;
    color: var(--bk-coral);
    font-weight: 600;
    font-size: 0.8rem;
}
.admin-shell .admin-main {
    width: min(100% - 3rem, 1040px);
}
@media (max-width: 880px) {
    .admin-shell .admin-context {
        margin-left: 0;
        width: 100%;
    }
}

/* --- account menu (admin variant, T-094) --- */
.admin-shell .workspace-account-trigger {
    min-height: 44px;
    border: 1px solid var(--bk-line);
    background: #fff;
    color: var(--bk-ink);
    box-shadow: var(--bk-shadow-sm);
}
.admin-shell .workspace-account-trigger:hover {
    border-color: var(--bk-coral);
}
.admin-shell .workspace-account-avatar {
    background: linear-gradient(135deg, var(--bk-peach), var(--bk-coral-soft));
}
.admin-shell .workspace-account-copy strong {
    color: var(--bk-ink);
}
.admin-shell .workspace-account-copy small {
    color: var(--bk-muted);
}
.admin-shell .workspace-account-chevron {
    color: var(--bk-muted);
}
.admin-shell .workspace-account-panel {
    border: 1px solid var(--bk-line);
    background: var(--bk-surface);
    color: var(--bk-ink);
    box-shadow: var(--bk-shadow);
}
.admin-shell .workspace-account-panel > p {
    color: var(--bk-muted);
}
.admin-shell .workspace-account-item {
    font-weight: 600;
    color: var(--bk-ink);
}
.admin-shell .workspace-account-item:hover,
.admin-shell .workspace-account-item:focus-visible {
    background: var(--bk-line-soft);
}
.admin-shell .workspace-account-item[aria-disabled="true"] {
    background: var(--bk-line-soft);
    color: var(--bk-muted);
}
.admin-shell .workspace-account-divider {
    background: var(--bk-line);
}

/* --- overview: task-first Neste steg (T-095) --- */
.admin-shell .overview {
    display: grid;
    gap: 0.4rem;
}
.admin-shell .overview-hero {
    margin-bottom: 0.4rem;
}
.admin-shell .overview-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
}
.admin-shell .overview-status .overview-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.admin-shell .overview-status.ok {
    background: var(--bk-ok-tint);
    color: var(--bk-ok);
}
.admin-shell .overview-status.ok .overview-dot {
    background: var(--bk-ok);
}
.admin-shell .overview-status.warn {
    background: var(--bk-warn-tint);
    color: var(--bk-warn);
}
.admin-shell .overview-status.warn .overview-dot {
    background: #d89a38;
}
.admin-shell .sec-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 1.6rem 0 0.9rem;
}
.admin-shell .sec-label h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.admin-shell .sec-label small {
    color: var(--bk-muted);
    font-size: 0.82rem;
}
.admin-shell .sec-label-gap {
    margin-top: 2.4rem;
}
.admin-shell .step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 1.2rem;
    margin-bottom: 0.8rem;
    border: 1px solid var(--bk-line);
    border-radius: var(--bk-radius-lg);
    background: var(--bk-surface);
    box-shadow: var(--bk-shadow-sm);
}
.admin-shell .step.step-warn {
    border-color: var(--bk-warn-border);
    background: var(--bk-warn-tint);
}
.admin-shell .step-num {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: var(--bk-warn);
    font-weight: 700;
    border: 1px solid var(--bk-warn-border);
}
.admin-shell .step-body {
    min-width: 0;
    flex: 1;
}
.admin-shell .step-body > b {
    font-size: 1rem;
    font-weight: 600;
    display: block;
    line-height: 1.3;
}
.admin-shell .step-body > span {
    color: var(--bk-sec);
    font-size: 0.88rem;
}
.admin-shell .step-body > span b {
    color: var(--bk-ink);
    font-weight: 600;
}
.admin-shell .step-help {
    margin: 0.5rem 0 0;
    color: var(--bk-muted);
    font-size: 0.82rem;
}
.admin-shell .step-field {
    display: grid;
    gap: 0.4rem;
    margin: 0.8rem 0;
    color: var(--bk-sec);
    font-size: 0.8rem;
    font-weight: 600;
}
.admin-shell .step-field input {
    box-sizing: border-box;
    min-height: 46px;
    padding: 0 0.8rem;
    border: 1px solid var(--bk-line);
    border-radius: 12px;
    background: #fff;
    color: var(--bk-ink);
}
.admin-shell .step .button {
    align-self: center;
}
.admin-shell .step-done {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.3rem;
    border: 1px solid var(--bk-ok-border);
    border-radius: var(--bk-radius-lg);
    background: var(--bk-ok-tint);
    box-shadow: var(--bk-shadow-sm);
}
.admin-shell .step-done-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--bk-ok);
    color: #fff;
    font-weight: 700;
}
.admin-shell .step-done b {
    display: block;
}
.admin-shell .step-done span {
    color: var(--bk-sec);
    font-size: 0.88rem;
}

/* --- soft summary cards --- */
.admin-shell .admin-cards {
    gap: 1rem;
}
.admin-shell .summary-card {
    border: 1px solid var(--bk-line);
    border-radius: var(--bk-radius-lg);
    background: var(--bk-surface);
    box-shadow: var(--bk-shadow-sm);
}
.admin-shell .card-heading {
    color: var(--bk-sec);
}
.admin-shell .card-icon {
    border-radius: 11px;
    background: #f7eae2;
    color: var(--bk-coral);
}
.admin-shell .big-number {
    font-family: var(--bk-display);
    font-weight: 500;
    letter-spacing: -0.02em;
}
.admin-shell .summary-card > p {
    color: var(--bk-muted);
}
.admin-shell .seller-summary > strong {
    color: var(--bk-ink);
    font-size: 1.1rem;
}

/* --- produkter (T-096) --- */
.admin-shell .section-heading {
    margin-bottom: 1.4rem;
}
.admin-shell .product-row {
    border: 1px solid var(--bk-line);
    border-radius: var(--bk-radius);
    background: var(--bk-surface);
    box-shadow: var(--bk-shadow-sm);
}
.admin-shell .product-name strong {
    color: var(--bk-ink);
}
.admin-shell .product-name span,
.admin-shell .vat-label {
    color: var(--bk-muted);
}
.admin-shell .money {
    color: var(--bk-ink);
    font-weight: 600;
}
.admin-shell .drag-order {
    border-radius: 10px;
    background: var(--bk-line-soft);
    color: var(--bk-muted);
}
.admin-shell .icon-close {
    color: var(--bk-muted);
}
.admin-shell .form-title h2 {
    color: var(--bk-ink);
}
.admin-shell .empty-state {
    border: 1px dashed var(--bk-line);
    border-radius: var(--bk-radius-lg);
    background: var(--bk-surface);
    box-shadow: var(--bk-shadow-sm);
}
.admin-shell .empty-state h2 {
    color: var(--bk-ink);
}
.admin-shell .empty-state p {
    color: var(--bk-muted);
}

/* --- retur + SAF-T + arkiv (T-097) --- */
/* The return-workspace CSS referenced these tokens but they were never defined,
   so mapping them on .admin-shell (inherited by the return flow) styles it soft. */
.admin-shell {
    --line: var(--bk-line);
    --line-strong: #e0d4bf;
    --surface: var(--bk-surface);
    --surface-soft: var(--bk-surface-2);
    --ink: var(--bk-ink);
    --muted: var(--bk-muted);
    --lime-soft: #f7eae2;
    --accent: var(--bk-coral);
}

.admin-shell .export-state {
    border: 1px solid var(--bk-line);
    border-radius: var(--bk-radius);
    background: var(--bk-surface);
    box-shadow: var(--bk-shadow-sm);
}
.admin-shell .export-state p {
    color: var(--bk-muted);
}
.admin-shell .archive-workspace {
    border-top: 1px solid var(--bk-line);
}
.admin-shell .archive-workspace h2 {
    color: var(--bk-ink);
}
.admin-shell .archive-result > div:first-child {
    color: var(--bk-sec);
}
.admin-shell .archive-file-list {
    border: 1px solid var(--bk-line);
    border-radius: var(--bk-radius);
    background: var(--bk-surface);
    box-shadow: var(--bk-shadow-sm);
    overflow: hidden;
}
.admin-shell .archive-file-row {
    border-bottom-color: var(--bk-line-soft);
}
.admin-shell .archive-file-row small {
    color: var(--bk-muted);
}
.admin-shell .return-search,
.admin-shell .return-intro,
.admin-shell .return-progress,
.admin-shell .return-receipt {
    border-color: var(--bk-line);
    background: var(--bk-surface);
    box-shadow: var(--bk-shadow-sm);
}
.admin-shell .return-search input,
.admin-shell .return-search select,
.admin-shell .return-reason textarea,
.admin-shell .blocked-panel input {
    border-color: var(--bk-line);
    border-radius: 12px;
    background: var(--bk-surface-2);
    color: var(--bk-ink);
}
.admin-shell .return-search label,
.admin-shell .return-reason,
.admin-shell .blocked-panel label {
    color: var(--bk-sec);
}
.admin-shell .return-intro > span {
    background: var(--lime-soft);
    color: var(--bk-coral);
}
.admin-shell .return-intro p,
.admin-shell .return-progress p,
.admin-shell .return-line span,
.admin-shell .return-line small {
    color: var(--bk-muted);
}
.admin-shell .return-receipt-heading {
    border-bottom-color: var(--bk-line);
}
.admin-shell .return-line {
    border-bottom-color: var(--bk-line-soft);
}
.admin-shell .quantity-stepper {
    border-color: var(--bk-line);
    border-radius: 12px;
}
.admin-shell .quantity-stepper button {
    background: var(--bk-line-soft);
    color: var(--bk-ink);
}
.admin-shell .quantity-stepper output {
    color: var(--bk-ink);
}

/* --- kasser, brukere, agent/einigar (T-098) --- */
.admin-shell .setup-block {
    border: 1px solid var(--bk-line);
    border-radius: var(--bk-radius);
    background: var(--bk-surface);
    box-shadow: var(--bk-shadow-sm);
}
.admin-shell .setup-block h2 {
    color: var(--bk-ink);
}
.admin-shell .setup-block p {
    color: var(--bk-muted);
}
.admin-shell .compact-table h2 {
    color: var(--bk-ink);
}
.admin-shell .compact-row {
    border: 1px solid var(--bk-line);
    border-radius: var(--bk-radius);
    background: var(--bk-surface);
    box-shadow: var(--bk-shadow-sm);
}
.admin-shell .compact-row small {
    color: var(--bk-muted);
}
.admin-shell .device-section-heading p {
    color: var(--bk-muted);
}
.admin-shell .device-card {
    border: 1px solid var(--bk-line);
    border-radius: var(--bk-radius-lg);
    background: var(--bk-surface);
    box-shadow: var(--bk-shadow-sm);
}
.admin-shell .device-card-heading h2 {
    color: var(--bk-ink);
}
.admin-shell .device-card-heading p,
.admin-shell .device-empty p {
    color: var(--bk-muted);
}
.admin-shell .device-empty {
    border-radius: var(--bk-radius);
    background: var(--bk-line-soft);
}
.admin-shell .agent-identity {
    border-top-color: var(--bk-line);
    border-bottom-color: var(--bk-line);
    color: var(--bk-sec);
}
.admin-shell .agent-identity code {
    color: var(--bk-ink);
}
.admin-shell .printer-assignment {
    border: 1px solid var(--bk-line);
    border-radius: var(--bk-radius);
    background: var(--bk-surface-2);
}
.admin-shell .printer-assignment p {
    color: var(--bk-muted);
}
.admin-shell .printer-label {
    color: var(--bk-muted);
}
.admin-shell .device-status-grid > div {
    border: 1px solid var(--bk-line);
    border-radius: var(--bk-radius);
    background: var(--bk-surface-2);
}
.admin-shell .device-status-grid span,
.admin-shell .device-status-grid small {
    color: var(--bk-muted);
}
.admin-shell .device-status-grid strong {
    color: var(--bk-ink);
}
.admin-shell .device-status-grid > div:nth-child(1) {
    background: #eef2fb;
}
.admin-shell .device-status-grid > div:nth-child(2) {
    background: var(--bk-ok-tint);
}
.admin-shell .device-status-grid > div:nth-child(3) {
    background: #f7eae2;
}
.admin-shell .device-status-grid > div:nth-child(4) {
    background: #f6efde;
}
.admin-shell .device-tests label {
    color: var(--bk-sec);
}
.admin-shell .device-tests input {
    border: 1px solid var(--bk-line);
    border-radius: 12px;
    background: var(--bk-surface-2);
    color: var(--bk-ink);
}
.admin-shell .credential-once {
    border: 1px solid var(--bk-warn-border);
    border-radius: var(--bk-radius);
    background: var(--bk-warn-tint);
}
.admin-shell .credential-once p,
.admin-shell .effect-state p {
    color: var(--bk-sec);
}
.admin-shell .credential-once dt {
    color: var(--bk-warn);
}
.admin-shell .credential-once dd,
.admin-shell .credential-once code {
    color: var(--bk-ink);
}
.admin-shell .effect-state {
    border-radius: var(--bk-radius);
}
.admin-shell .effect-state.pending {
    background: #eef2fb;
}
.admin-shell .effect-state.succeeded {
    background: var(--bk-ok-tint);
}
.admin-shell .effect-state.failed {
    background: var(--bk-warn-tint);
}
.admin-shell .effect-state.unknown {
    border: 1px solid var(--bk-bad-border);
    background: var(--bk-bad-tint);
}

/* --- produkter: pretty card grid + icon (v2) --- */
.admin-shell .product-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.admin-shell .product-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.2rem;
    border: 1px solid var(--bk-line);
    border-radius: var(--bk-radius-lg);
    background: var(--bk-surface);
    box-shadow: var(--bk-shadow-sm);
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
    transition: transform .1s, border-color .15s, box-shadow .15s;
}
.admin-shell .product-card:hover {
    transform: translateY(-2px);
    border-color: var(--bk-coral-soft);
    box-shadow: var(--bk-shadow);
}
.admin-shell .product-card:focus-visible {
    outline: 3px solid var(--bk-coral);
    outline-offset: 2px;
}
.admin-shell .product-card.is-inactive {
    opacity: 0.78;
}
.admin-shell .product-card-top {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}
.admin-shell .product-card-tile {
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 16px;
    font-size: 1.7rem;
    line-height: 1;
    color: #fff;
}
.admin-shell .product-card:nth-child(4n+1) .product-card-tile {
    background: linear-gradient(135deg, #f6b597, #e87457);
}
.admin-shell .product-card:nth-child(4n+2) .product-card-tile {
    background: linear-gradient(135deg, #9ec2de, #7aa8d0);
}
.admin-shell .product-card:nth-child(4n+3) .product-card-tile {
    background: linear-gradient(135deg, #a7d6bc, #76be99);
}
.admin-shell .product-card:nth-child(4n+4) .product-card-tile {
    background: linear-gradient(135deg, #f3d38b, #e8b45c);
    color: #6e5210;
}
.admin-shell .product-card-id {
    min-width: 0;
    flex: 1;
    display: grid;
    gap: 0.2rem;
}
.admin-shell .product-card-id strong {
    color: var(--bk-ink);
    font-weight: 600;
    font-size: 1.02rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-shell .product-card-id small {
    color: var(--bk-muted);
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-shell .product-card-foot {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.admin-shell .vat-chip {
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: var(--bk-line-soft);
    color: var(--bk-sec);
    font-size: 0.74rem;
    font-weight: 600;
}
.admin-shell .stock-chip {
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: #eef3ee;
    color: var(--bk-sec);
    font-size: 0.74rem;
    font-weight: 600;
}
.admin-shell .stock-count-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 0.8rem 1rem;
    margin-top: 0.8rem;
    padding: 1rem;
    border: 1px solid var(--bk-line);
    border-radius: var(--bk-radius);
    background: var(--bk-line-soft);
}
.admin-shell .stock-count-box > div:first-child,
.admin-shell .stock-count-box .form-help {
    grid-column: 1 / -1;
}
.admin-shell .stock-count-box p {
    margin: 0.2rem 0 0;
    color: var(--bk-muted);
}
.admin-shell .stock-count-box label {
    margin: 0;
}
.admin-shell .product-card-price {
    margin-left: auto;
    font-family: var(--bk-display);
    font-weight: 500;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
    color: var(--bk-ink);
}
.admin-shell .product-card-edit {
    color: var(--bk-coral);
    font-weight: 600;
    font-size: 0.82rem;
}
.admin-shell .product-icon-field {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 0.8rem;
    color: var(--bk-sec);
    font-size: 0.82rem;
    font-weight: 600;
}
.admin-shell .product-icon-input {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.admin-shell .product-icon-preview {
    width: 50px;
    height: 50px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #f6b597, #e87457);
    color: #fff;
    font-size: 1.6rem;
}
.admin-shell .product-icon-input input {
    flex: 1;
    min-height: 50px;
    box-sizing: border-box;
    padding: 0 0.9rem;
    border: 1px solid var(--bk-line);
    border-radius: 12px;
    background: var(--bk-surface-2);
    color: var(--bk-ink);
    font-size: 1.1rem;
}
.admin-shell .product-icon-picks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}
.admin-shell .product-icon-picks button {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--bk-line);
    border-radius: 12px;
    background: var(--bk-surface);
    font-size: 1.25rem;
    cursor: pointer;
}
.admin-shell .product-icon-picks button:hover {
    border-color: var(--bk-coral);
    background: var(--bk-line-soft);
}

/* --- combobox (Gruppe): looks like a select, accepts free text --- */
.admin-shell .combo-field {
    display: grid;
    gap: 0.45rem;
    color: var(--bk-sec);
    font-size: 0.82rem;
    font-weight: 600;
}
.admin-shell .combo {
    position: relative;
}
.admin-shell .combo-input {
    position: relative;
    z-index: 42;
    width: 100%;
    min-height: 50px;
    box-sizing: border-box;
    padding: 0 2.6rem 0 0.85rem;
    border: 1px solid var(--bk-line);
    border-radius: 12px;
    background: var(--bk-surface-2);
    color: var(--bk-ink);
    font: inherit;
}
.admin-shell .combo-input:focus {
    border-color: var(--bk-coral);
    box-shadow: 0 0 0 3px rgba(168, 69, 42, 0.16);
    outline: none;
}
.admin-shell .combo-toggle {
    position: absolute;
    z-index: 43;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--bk-muted);
    font-size: 0.8rem;
    cursor: pointer;
}
.admin-shell .combo-toggle:hover {
    background: var(--bk-line-soft);
    color: var(--bk-coral);
}
.admin-shell .combo-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
}
.admin-shell .combo-panel {
    position: absolute;
    z-index: 41;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 220px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid var(--bk-line);
    border-radius: 14px;
    background: var(--bk-surface);
    box-shadow: var(--bk-shadow);
}
.admin-shell .combo-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 40px;
    padding: 0 0.7rem;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--bk-ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.admin-shell .combo-option:hover {
    background: var(--bk-line-soft);
    color: var(--bk-coral);
}
.admin-shell .combo-empty {
    display: block;
    padding: 0.5rem 0.7rem;
    color: var(--bk-muted);
    font-size: 0.85rem;
}
@media (max-width: 760px) {
    .admin-shell .product-cards {
        grid-template-columns: 1fr;
    }
}
