:root {
    color-scheme: light;
    --ink: #17211b;
    --muted: #657068;
    --surface: #ffffff;
    --canvas: #f4f7f4;
    --line: #dfe7e1;
    --brand: #176b3a;
    --brand-dark: #0f4d29;
    --danger-bg: #fff0f0;
    --danger-ink: #982f2f;
    --warning-bg: #fff8e6;
    --warning-ink: #765100;
    --success-bg: #eaf7ee;
    --success-ink: #145f32;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: var(--canvas);
}

a {
    color: inherit;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 1000;
    padding: 10px 14px;
    color: #fff;
    background: var(--brand-dark);
    border-radius: 8px;
    text-decoration: none;
    transform: translateY(-160%);
}

.skip-link:focus {
    outline: 3px solid #fff;
    outline-offset: 2px;
    transform: translateY(0);
}

.shell {
    width: min(100% - 32px, 1080px);
    margin-inline: auto;
}

.topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.topbar__inner,
.account,
.brand {
    display: flex;
    align-items: center;
}

.topbar__inner {
    min-height: 68px;
    justify-content: space-between;
    gap: 20px;
}

.admin-nav {
    display: flex;
    gap: 8px;
    padding-bottom: 12px;
    overflow-x: auto;
}

.admin-nav a {
    flex: 0 0 auto;
    padding: 7px 11px;
    color: var(--brand-dark);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
}

.admin-nav a:hover {
    background: #e9f2ec;
}

.admin-nav a:focus-visible {
    outline: 3px solid rgba(23, 107, 58, .28);
    outline-offset: 1px;
}

.admin-nav a[aria-current="page"] {
    color: #fff;
    background: var(--brand);
}

.brand {
    gap: 10px;
    color: var(--brand-dark);
    font-weight: 800;
    text-decoration: none;
    letter-spacing: .01em;
}

.brand__logo {
    display: block;
    flex: 0 0 auto;
    object-fit: contain;
}

.brand__logo--horizontal {
    width: 126px;
    height: 42px;
}

.brand__logo--square {
    width: 36px;
    height: 36px;
}

.account {
    gap: 14px;
}

.account__name {
    color: var(--muted);
    font-size: 14px;
}

.account__identity {
    display: grid;
    min-width: 0;
    gap: 2px;
    line-height: 1.2;
}

.account__name,
.account__context {
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account__context {
    color: var(--brand-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.page {
    padding-block: 48px;
}

.auth-card,
.status-card {
    width: min(100%, 440px);
    margin: 5vh auto 0;
    padding: clamp(24px, 5vw, 40px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(23, 33, 27, .08);
}

.auth-card--wide {
    width: min(100%, 620px);
}

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

h1 {
    margin-bottom: 10px;
    font-size: clamp(28px, 5vw, 42px);
    line-height: 1.12;
}

h2 {
    font-size: 20px;
}

.eyebrow {
    margin-bottom: 8px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.muted {
    color: var(--muted);
    line-height: 1.65;
}

.form {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.form label {
    margin-top: 4px;
    font-size: 14px;
    font-weight: 700;
}

.form input {
    width: 100%;
    height: 48px;
    min-height: 48px;
    padding: 0 14px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #bcc9c0;
    border-radius: 10px;
    font: inherit;
}

.form input:disabled,
.form select:disabled,
.form textarea:disabled,
.button:disabled {
    cursor: not-allowed;
    opacity: .58;
}

.form input:focus {
    outline: 3px solid rgba(23, 107, 58, .15);
    border-color: var(--brand);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 15px;
    border: 0;
    border-radius: 9px;
    font: inherit;
    font-weight: 750;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.button--primary {
    color: #fff;
    background: var(--brand);
}

.button--primary:hover {
    background: var(--brand-dark);
}

.button--quiet {
    color: var(--brand-dark);
    background: #e9f2ec;
}

.button--full {
    width: 100%;
    min-height: 48px;
    margin-top: 10px;
}

.button--danger {
    color: #fff;
    background: #a52b2b;
}

.button--danger-soft {
    color: #8c2929;
    background: #fbe7e7;
}

.button--success-soft {
    color: var(--success-ink);
    background: var(--success-bg);
}

.button--small {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 13px;
}

.button--danger:hover {
    background: #7e1f1f;
}

.button-row,
.input-action {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.input-action input {
    min-width: 0;
    flex: 1;
}

.input-action .button {
    min-height: 48px;
    flex: 0 0 auto;
}

.button-row {
    flex-wrap: wrap;
    margin-top: 20px;
}

.alert {
    margin-top: 20px;
    padding: 12px 14px;
    border-radius: 10px;
    line-height: 1.5;
}

.alert--error {
    color: var(--danger-ink);
    background: var(--danger-bg);
    border: 1px solid #f0caca;
}

.alert--warning {
    color: var(--warning-ink);
    background: var(--warning-bg);
    border: 1px solid #ecd796;
}

.alert--success {
    color: var(--success-ink);
    background: var(--success-bg);
    border: 1px solid #baddc4;
}

.auth-alternative,
.back-link {
    margin: 24px 0 0;
    color: var(--brand-dark);
    font-weight: 700;
}

.auth-alternative {
    text-align: center;
    font-size: 14px;
}

.form-help {
    margin: -4px 0 4px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.form--compact {
    margin-top: 20px;
}

.danger-zone {
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.hero {
    margin-bottom: 30px;
}

.page-heading,
.panel-heading,
.filter-form,
.form-actions {
    display: flex;
    align-items: center;
}

.page-heading {
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.page-heading h1 {
    margin-bottom: 8px;
}

.page-heading .muted {
    margin-bottom: 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.panel {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.table-panel,
.filter-panel,
.form-panel {
    margin-top: 20px;
}

.panel-heading {
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.panel-heading h2 {
    margin-bottom: 0;
}

.count-badge {
    padding: 5px 9px;
    color: var(--muted);
    background: var(--canvas);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
}

.table-wrap {
    overflow-x: auto;
}

.table-wrap[data-app-shell-scroll="true"] {
    scrollbar-gutter: stable;
}

.table-wrap[data-app-shell-scroll="true"]:focus-visible {
    outline: 3px solid rgba(23, 107, 58, .28);
    outline-offset: 3px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th,
.data-table td {
    padding: 13px 12px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid var(--line);
}

.data-table th {
    color: var(--muted);
    background: #f8faf8;
    font-size: 12px;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.data-table tbody tr:hover {
    background: #fafcfb;
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.cell-secondary {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.table-actions {
    white-space: nowrap;
}

.data-table td.table-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.data-table td.inventory-actions {
    min-width: 260px;
    flex-wrap: wrap;
    white-space: normal;
}

.stock-value--low {
    color: var(--warning-ink);
}

.stock-value--out {
    color: var(--danger-ink);
}

.inventory-attach-search {
    grid-template-columns: minmax(220px, 1fr) minmax(260px, 2fr) auto;
}

.data-table td.table-actions form {
    margin: 0;
}

.empty-state {
    margin: 24px 0 4px;
    color: var(--muted);
    text-align: center;
}

.info-note {
    margin-top: 18px;
    padding: 14px 16px;
    color: #4d5b52;
    background: #eef4ef;
    border-left: 4px solid var(--brand);
    border-radius: 8px;
    line-height: 1.6;
}

.filter-form {
    flex-wrap: wrap;
    gap: 10px;
}

.catalog-filter {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) minmax(180px, 1fr) minmax(140px, .75fr) auto;
    align-items: end;
    gap: 14px;
}

.catalog-filter .field-group {
    gap: 6px;
}

.catalog-filter label {
    font-size: 14px;
    font-weight: 750;
}

.catalog-filter input,
.catalog-filter select {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #bcc9c0;
    border-radius: 10px;
    font: inherit;
}

.catalog-filter input:focus,
.catalog-filter select:focus {
    outline: 3px solid rgba(23, 107, 58, .15);
    border-color: var(--brand);
}

.catalog-filter__actions {
    display: flex;
    gap: 8px;
    padding-bottom: 2px;
}

.filter-form label {
    font-size: 14px;
    font-weight: 750;
}

.filter-form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.filter-form select {
    min-width: min(100%, 340px);
}

.form select,
.filter-form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.filter-form select,
.form textarea {
    min-height: 44px;
    padding: 11px 14px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #bcc9c0;
    border-radius: 10px;
    font: inherit;
}

.form select {
    width: 100%;
    min-height: 48px;
}

.form textarea {
    width: 100%;
    resize: vertical;
}

.form select:focus,
.filter-form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):focus,
.filter-form select:focus,
.form textarea:focus {
    outline: 3px solid rgba(23, 107, 58, .15);
    border-color: var(--brand);
}

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

.field-group {
    display: grid;
    align-content: start;
    gap: 8px;
}

.field-group--full {
    grid-column: 1 / -1;
}

.dashboard-grid,
.cash-shift-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.form-stack,
.form-grid {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

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

.form-stack label,
.form-grid label,
.register-create-form label {
    display: grid;
    gap: 7px;
    font-size: 14px;
    font-weight: 750;
}

.form-stack input,
.form-stack select,
.form-stack textarea,
.form-grid input,
.form-grid select,
.form-grid textarea,
.register-create-form input {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #bcc9c0;
    border-radius: 10px;
    font: inherit;
}

.form-stack textarea,
.form-grid textarea {
    min-height: 76px;
    resize: vertical;
}

.form-stack input:focus,
.form-stack select:focus,
.form-stack textarea:focus,
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus,
.register-create-form input:focus {
    outline: 3px solid rgba(23, 107, 58, .15);
    border-color: var(--brand);
}

.field-span-2 {
    grid-column: 1 / -1;
}

.metric-list {
    display: grid;
    gap: 0;
    margin-bottom: 18px;
}

.metric-list p {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.metric-list span {
    color: var(--muted);
}

.cash-close-form {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.register-create-form {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.form-actions {
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.alert-list {
    margin: 8px 0 0;
    padding-left: 20px;
    line-height: 1.65;
}

.dashboard-actions {
    margin-top: 20px;
}

.security-grid {
    align-items: start;
}

.status-pill {
    display: inline-flex;
    padding: 4px 9px;
    border-radius: 999px;
    color: #34433a;
    background: #edf1ee;
    font-size: 12px;
    font-weight: 800;
}

.status-pill--active {
    color: var(--success-ink);
    background: var(--success-bg);
}

.status-pill--warning {
    color: var(--warning-ink);
    background: var(--warning-bg);
}

.status-pill--danger,
.status-pill--revoked,
.status-pill--expired,
.status-pill--disabled,
.status-pill--inactive {
    color: var(--danger-ink);
    background: var(--danger-bg);
}

.status-pill--processing {
    color: #174b73;
    background: #e9f4ff;
}

.product-cell,
.current-image,
.check-control {
    display: flex;
    align-items: center;
}

.product-cell {
    min-width: 240px;
    gap: 11px;
}

.product-thumb {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    object-fit: cover;
    background: #edf3ee;
    border: 1px solid var(--line);
    border-radius: 9px;
}

.product-thumb--empty {
    color: var(--brand-dark);
    font-size: 11px;
    font-weight: 850;
}

.current-image {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 6px;
}

.current-image img {
    width: 112px;
    height: 112px;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.check-control {
    gap: 8px;
    margin-top: 8px !important;
    font-weight: 650 !important;
}

.form .check-control input {
    width: auto;
    height: auto;
}

.scanner {
    padding: 12px;
    background: #101512;
    border-radius: 12px;
}

.scanner video {
    display: block;
    width: 100%;
    max-height: 360px;
    margin-bottom: 10px;
    object-fit: cover;
    border-radius: 8px;
}

.qr-result-grid {
    display: grid;
    grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
    align-items: start;
    gap: 24px;
    margin-top: 28px;
}

.qr-card {
    padding: clamp(18px, 4vw, 30px);
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.qr-render {
    width: min(100%, 360px);
    margin-inline: auto;
    aspect-ratio: 1;
}

.qr-render svg {
    display: block;
    width: 100%;
    height: 100%;
}

.cashier-qr-print-identity,
.vip-qr-print-identity {
    display: none;
}

.qr-card__brand-logo {
    display: block;
    width: 48px;
    height: 48px;
    margin-inline: auto;
    object-fit: contain;
}

.secret-label {
    display: block;
    margin: 22px 0 8px;
    font-size: 14px;
    font-weight: 700;
}

code {
    padding: 2px 5px;
    overflow-wrap: anywhere;
    color: #26362c;
    background: #eef3ef;
    border-radius: 5px;
}

.facts {
    margin: 0;
}

.facts div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    padding-block: 11px;
    border-bottom: 1px solid var(--line);
}

.facts div:last-child {
    border-bottom: 0;
}

.facts dt {
    color: var(--muted);
}

.facts dd {
    margin: 0;
    font-weight: 700;
}

.check-list {
    padding-left: 20px;
    line-height: 1.8;
}

.status-card {
    text-align: center;
}

.status-code {
    margin-bottom: 6px;
    color: var(--brand);
    font-size: 48px;
    font-weight: 850;
}

.dashboard-heading__actions {
    justify-content: flex-end;
    margin-top: 0;
}

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

.metric-grid--compact {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    margin-top: 20px;
}

.metric-card {
    display: flex;
    min-height: 142px;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    padding: 20px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.metric-card > span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
    letter-spacing: .02em;
}

.metric-card > strong {
    overflow-wrap: anywhere;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.05;
}

.metric-card > small {
    color: var(--muted);
    line-height: 1.45;
}

.metric-card--primary {
    color: #fff;
    background: linear-gradient(145deg, var(--brand), var(--brand-dark));
    border-color: transparent;
}

.metric-card--primary > span,
.metric-card--primary > small {
    color: rgba(255, 255, 255, .82);
}

.metric-card--link {
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}

.metric-card--link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(23, 33, 27, .08);
}

.metric-card--warning {
    background: var(--warning-bg);
    border-color: #ecd796;
}

.metric-card--danger {
    background: var(--danger-bg);
    border-color: #f0caca;
}

.report-filter {
    display: grid;
    align-items: end;
    gap: 14px;
}

.report-filter--sales {
    grid-template-columns: repeat(4, minmax(140px, 1fr)) auto;
}

.report-filter--inventory {
    grid-template-columns: minmax(240px, 2fr) minmax(190px, 1fr) minmax(150px, .75fr) auto;
}

.report-filter label {
    font-size: 14px;
    font-weight: 750;
}

.report-filter input,
.report-filter select {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #bcc9c0;
    border-radius: 10px;
    font: inherit;
}

.report-filter input:focus,
.report-filter select:focus {
    outline: 3px solid rgba(23, 107, 58, .15);
    border-color: var(--brand);
}

.report-filter__actions {
    display: flex;
    gap: 8px;
}

.report-table--wide {
    min-width: 1080px;
}

.pos-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(330px, .85fr);
    align-items: start;
    gap: 20px;
}

.cashier-shell-page {
    width: min(100% - 24px, 1320px);
    padding-block: 14px 20px;
}

.pos-kiosk-shell {
    display: grid;
    grid-template-columns: 154px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
}

.pos-kiosk-shell--management {
    grid-template-columns: minmax(0, 1fr);
}

.pos-kiosk-main {
    min-width: 0;
}

.pos-kiosk-nav {
    position: sticky;
    top: 12px;
    display: flex;
    min-height: calc(100dvh - 32px);
    flex-direction: column;
    padding: 14px 10px;
}

.pos-kiosk-nav__heading {
    display: grid;
    gap: 2px;
    padding: 2px 8px 12px;
}

.pos-kiosk-nav__heading .eyebrow {
    margin: 8px 0 0;
}

.pos-kiosk-brand {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 850;
    line-height: 1.15;
    text-decoration: none;
}

.pos-kiosk-brand .brand__logo--square {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
}

.pos-kiosk-nav__links {
    display: grid;
    gap: 6px;
}

.pos-kiosk-nav__links a {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding: 9px 10px;
    color: var(--brand-dark);
    background: #eef5f0;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 780;
    line-height: 1.25;
    text-decoration: none;
}

.pos-kiosk-nav__links a:hover {
    background: #dfeee4;
}

.pos-kiosk-nav__links a:focus-visible {
    outline: 3px solid rgba(23, 107, 58, .24);
    outline-offset: 1px;
}

.pos-kiosk-nav__links a.cashier-nav-action--keyboard-selected,
.pos-kiosk-account [data-cashier-keyboard-action].cashier-nav-action--keyboard-selected {
    outline: 3px solid rgba(23, 107, 58, .3);
    outline-offset: 2px;
}

.pos-kiosk-nav__links a[aria-current="page"] {
    color: #fff;
    background: var(--brand);
}

.pos-kiosk-shortcuts {
    margin: 12px 4px 0;
    padding: 9px 4px 8px;
    color: var(--muted);
    background: #f6f9f7;
    border: 1px solid #dce8df;
    border-radius: 10px;
}

.pos-kiosk-shortcuts__flow {
    margin: 0 0 9px;
    color: var(--brand-dark);
    font-size: 9px;
    font-weight: 780;
    letter-spacing: -.02em;
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;
}

.pos-kiosk-shortcuts__title {
    margin: 0 0 5px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.pos-kiosk-shortcuts__list {
    display: grid;
    gap: 0;
    margin: 0;
}

.pos-kiosk-shortcuts__item {
    display: grid;
    min-width: 0;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 5px;
    min-height: 27px;
    padding: 4px 0;
    border-top: 1px solid #e4ece6;
}

.pos-kiosk-shortcuts__item dt {
    display: flex;
    min-width: 0;
    gap: 2px;
    margin: 0;
}

.pos-kiosk-shortcuts__item dd {
    min-width: 0;
    margin: 0;
    font-size: 9px;
    font-weight: 760;
    line-height: 1.15;
    text-align: right;
}

.pos-kiosk-shortcuts kbd {
    display: inline-grid;
    min-width: 21px;
    min-height: 18px;
    place-items: center;
    padding: 1px 3px 2px;
    color: var(--brand-dark);
    background: #fff;
    border: 1px solid #c7d7cc;
    border-radius: 5px;
    box-shadow: 0 1px 0 #b9c9be;
    font: inherit;
    font-size: 9px;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
}

.pos-kiosk-account {
    display: grid;
    gap: 8px;
    margin-top: auto;
    padding: 12px 8px 2px;
    border-top: 1px solid var(--line);
}

.pos-kiosk-account__identity {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.pos-kiosk-account__identity strong,
.pos-kiosk-account__identity small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pos-kiosk-account__identity strong {
    color: var(--ink);
    font-size: 12px;
}

.pos-kiosk-account__identity small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 750;
    text-transform: uppercase;
}

.pos-kiosk-account form,
.pos-kiosk-account .button {
    width: 100%;
}

.body--pos-kiosk .pos-page-heading {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.body--pos-kiosk .pos-page-heading .eyebrow,
.body--pos-kiosk .pos-page-heading .muted {
    display: none;
}

.body--pos-kiosk .pos-page-heading h1 {
    margin-bottom: 0;
    font-size: clamp(26px, 3vw, 30px);
}

.pos-page-heading__title {
    min-width: 180px;
}

.pos-heading-tools {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    min-width: 0;
    flex: 1 1 620px;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.pos-heading-tools__management {
    grid-column: 1 / -1;
    justify-self: end;
}

.pos-heading-tools__management,
.pos-heading-tools__actions {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
}

.pos-heading-tools .button--small,
.pos-heading-tools .status-pill,
.pos-heading-tools .count-badge {
    min-height: 30px;
    padding: 5px 8px;
    font-size: 11px;
}

.pos-display-pair-code {
    letter-spacing: .1em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.pos-shift-summary {
    display: flex;
    min-height: 30px;
    align-items: center;
    flex-wrap: wrap;
    gap: 3px 6px;
    padding: 5px 8px;
    color: var(--success-ink);
    background: var(--success-bg);
    border: 1px solid #a9d8b9;
    border-radius: 9px;
    font-size: 11px;
    line-height: 1.25;
}

.pos-shift-summary strong {
    color: var(--brand-dark);
}

.pos-shift-summary--warning {
    color: #735b12;
    background: var(--warning-bg);
    border-color: #ecd796;
}

.pos-shift-summary--warning a {
    color: #594400;
    font-weight: 800;
}

.pos-kiosk-main > .alert {
    margin: 0 0 10px;
    padding: 9px 12px;
    font-size: 13px;
}

.pos-kiosk-page .pos-workspace {
    grid-template-columns: minmax(0, 1fr) minmax(310px, 330px);
    gap: 14px;
}

.pos-kiosk-page .pos-catalog {
    max-height: calc(100dvh - 96px);
    scrollbar-gutter: stable;
}

.pos-kiosk-page .pos-catalog {
    overflow: hidden;
    padding: 18px;
}

.pos-kiosk-page .pos-cart {
    top: 12px;
    max-height: none;
    overflow: visible;
    scrollbar-gutter: auto;
    padding: 12px;
}

.pos-catalog,
.pos-cart {
    min-width: 0;
}

.pos-catalog {
    display: flex;
    min-height: 0;
    flex-direction: column;
}

.pos-cart {
    position: sticky;
    top: 18px;
    max-height: none;
    overflow: visible;
}

.pos-cart > form > .pos-cart-summary {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.pos-payable-hero {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
    border-radius: 11px;
}

.pos-payable-hero span {
    font-size: 14px;
    font-weight: 800;
}

.pos-payable-hero strong {
    font-size: clamp(27px, 3vw, 34px);
    line-height: 1;
    white-space: nowrap;
}

.pos-discount-control {
    min-width: 0;
    margin: 6px 0 4px;
    padding: 0;
    border: 0;
}

.pos-discount-control legend {
    margin-bottom: 4px;
    padding: 0;
    font-size: 12px;
    font-weight: 750;
}

.pos-discount-control__inputs {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 6px;
}

.pos-discount-control select,
.pos-discount-control input {
    width: 100%;
    min-width: 0;
    min-height: 36px;
    padding: 6px 8px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #bcc9c0;
    border-radius: 9px;
    font: inherit;
    font-size: 13px;
}

.pos-discount-control select:focus,
.pos-discount-control input:focus {
    outline: 3px solid rgba(23, 107, 58, .15);
    border-color: var(--brand);
}

.pos-discount-control input:disabled {
    color: var(--muted);
    background: #f1f4f2;
}

.pos-reward-card-capture {
    display: grid;
    gap: 8px;
    margin: 8px 0;
    padding: 11px;
    background: #f6fbf7;
    border: 1px solid #c8ddce;
    border-radius: 11px;
}

.pos-reward-card-capture__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.pos-reward-card-capture__heading strong {
    color: var(--brand-dark);
    font-size: 14px;
}

.pos-reward-card-capture__heading strong span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

.pos-reward-card-capture__heading p,
.pos-reward-card-capture__status {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.pos-reward-card-capture__input {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
}

.pos-reward-card-capture__input .button {
    min-height: 40px;
}

.pos-reward-card-capture__input input {
    min-width: 0;
    min-height: 40px;
    padding: 8px 10px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #aebfb3;
    border-radius: 9px;
    font: 650 12px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.pos-reward-card-capture__input input:focus {
    outline: 3px solid rgba(23, 107, 58, .15);
    border-color: var(--brand);
}

.pos-reward-card-capture__status {
    min-height: 1.4em;
}

.pos-reward-card-capture__status.is-success {
    color: var(--success-ink);
    font-weight: 750;
}

.pos-reward-card-capture__status.is-error {
    color: var(--danger-ink);
    font-weight: 750;
}

.pos-kiosk-page .pos-reward-card-capture {
    gap: 5px;
    margin-block: 6px;
    padding: 8px;
}

.pos-kiosk-page .pos-payable-hero {
    min-height: 52px;
    padding: 8px 10px;
}

.pos-kiosk-page .pos-payable-hero strong {
    font-size: 30px;
    font-variant-numeric: tabular-nums;
}

.pos-kiosk-page .pos-reward-card-capture__heading strong {
    font-size: 13px;
}

.pos-kiosk-page .pos-reward-card-capture__input input,
.pos-kiosk-page .pos-reward-card-capture__input .button {
    min-height: 36px;
    padding: 6px 8px;
}

.pos-kiosk-page .pos-reward-card-capture__status {
    min-height: 0;
    margin: 0;
    font-size: 11px;
    line-height: 1.3;
}

.pos-reward-card-capture__status:empty {
    display: none;
}

.pos-cart__heading {
    align-items: center;
}

.pos-kiosk-page .pos-cart__heading {
    gap: 8px;
    margin-bottom: 8px;
}

.pos-kiosk-page .pos-cart__heading h2 {
    font-size: 18px;
}

.pos-kiosk-page .pos-cart__heading .table-actions {
    gap: 6px;
}

.pos-kiosk-page .pos-cart__heading .button--small,
.pos-kiosk-page .pos-cart__heading .count-badge {
    min-height: 30px;
    padding: 5px 8px;
    font-size: 11px;
}

.pos-catalog__heading {
    align-items: flex-start;
}

.pos-catalog__title {
    display: flex;
    min-width: 0;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 3px 10px;
}

.pos-catalog__title h2 {
    margin: 0;
}

.pos-catalog__title .cell-secondary {
    overflow-wrap: anywhere;
}

.pos-kiosk-page .pos-catalog__heading {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.pos-kiosk-page .pos-catalog__heading .table-actions {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    gap: 6px;
    white-space: normal;
}

.pos-kiosk-page .pos-catalog__heading .button--small,
.pos-kiosk-page .pos-catalog__heading .status-pill,
.pos-kiosk-page .pos-catalog__heading .count-badge {
    min-height: 30px;
    padding: 5px 8px;
    font-size: 11px;
}

.pos-search,
.pos-branch-form {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.pos-kiosk-page .pos-search {
    gap: 6px;
    margin-bottom: 12px;
}

.pos-search label,
.pos-branch-form label,
.pos-notes label {
    font-size: 14px;
    font-weight: 750;
}

.pos-search input,
.pos-branch-form select,
.pos-notes textarea,
.pos-cart-line input {
    min-height: 44px;
    padding: 9px 12px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #bcc9c0;
    border-radius: 9px;
    font: inherit;
}

.pos-search input {
    min-width: 0;
    flex: 1;
}

.pos-branch-form select {
    min-width: 0;
    flex: 1;
}

.pos-search input:focus,
.pos-branch-form select:focus,
.pos-notes textarea:focus,
.pos-cart-line input:focus {
    outline: 3px solid rgba(23, 107, 58, .15);
    border-color: var(--brand);
}

.pos-keyboard-help {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    margin: -2px 0 2px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
}

.pos-keyboard-help strong {
    color: var(--brand-dark);
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.pos-keyboard-help span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.pos-keyboard-help kbd {
    min-width: 20px;
    padding: 1px 5px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #bcc9c0;
    border-bottom-width: 2px;
    border-radius: 5px;
    font: inherit;
    font-weight: 800;
    text-align: center;
}

.pos-keypad-help {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 9px;
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
}

.pos-keypad-help > span { display: inline-flex; align-items: center; gap: 3px; }
.pos-keypad-help kbd { font: inherit; font-weight: 800; color: var(--brand-dark); }
.pos-keypad-help__note { font-size: 10px; }
#pos-keypad-mode {
    padding: 3px 8px;
    border: 1px solid #bfcec5;
    border-radius: 6px;
    background: #f2f5f3;
    color: var(--muted);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}
#pos-keypad-mode[aria-pressed="true"] { color: #0d5731; border-color: #a0ceae; background: #e8f5ec; }
#pos-keypad-mode:focus-visible { outline: 3px solid #8cc8a1; outline-offset: 2px; }

body.pos-feedback-open { overflow: hidden; }
.pos-feedback-modal {
    box-sizing: border-box;
    width: min(440px, calc(100vw - 32px));
    max-height: calc(100dvh - 40px);
    margin: auto;
    padding: 26px;
    overflow: auto;
    border: 1px solid #dbe6de;
    border-radius: 22px;
    color: #182b21;
    background: #fff;
    box-shadow: 0 24px 90px rgba(4, 35, 19, .25);
    font-family: inherit;
}
.pos-feedback-modal::backdrop { background: rgba(9, 30, 20, .52); backdrop-filter: blur(4px); }
.pos-feedback-modal__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    border: 1px solid #f2d5bc;
    border-radius: 14px;
    background: #fff3e8;
    color: #a85320;
    font-size: 25px;
    font-weight: 800;
}
.pos-feedback-modal[data-mode="confirm"] .pos-feedback-modal__icon { color: #146139; background: #edf7f0; border-color: #c7e1d0; }
.pos-feedback-modal__eyebrow { margin: 0 0 6px; color: #64806e; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.pos-feedback-modal__title { margin: 0 0 12px; font-size: 23px; line-height: 1.2; letter-spacing: -.025em; }
.pos-feedback-modal__messages { color: #596b60; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.pos-feedback-modal__messages p { margin: 0; }
.pos-feedback-modal__messages ul { margin: 0; padding-left: 19px; }
.pos-feedback-modal__messages li + li { margin-top: 6px; }
.pos-feedback-modal__hint { margin: 16px 0 0; color: #718378; font-size: 11px; line-height: 1.4; }
.pos-feedback-modal__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.pos-feedback-modal__okay, .pos-feedback-modal__secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    min-height: 42px;
    padding: 9px 17px;
    border: 1px solid transparent;
    border-radius: 10px;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.pos-feedback-modal__okay { color: white; background: #176b3a; border-color: #176b3a; }
.pos-feedback-modal__secondary { color: #24553a; background: #eef5f0; border-color: #dae7df; }
.pos-feedback-modal__okay:hover { background: #10572e; }
.pos-feedback-modal__okay:focus-visible, .pos-feedback-modal__secondary:focus-visible { outline: 3px solid #87c99e; outline-offset: 3px; }
.pos-feedback-modal [hidden], .pos-feedback-backdrop[hidden] { display: none !important; }

/* Keep cashier action controls on the same visual baseline without changing admin forms. */
.cashier-shell-page .button {
    line-height: 1.25;
}

.cashier-shell-page .page-heading > .button-row {
    margin-top: 0;
}

.cashier-shell-page .page-heading > .button,
.cashier-shell-page .page-heading > .button-row .button {
    min-height: 44px;
}

.cashier-shell-page [data-picking-filter-form] > .field-group > input,
.cashier-shell-page [data-picking-filter-form] > .field-group > select,
.cashier-shell-page [data-picking-filter-form] > .button,
.cashier-shell-page [data-picking-scan-form] > .field-group > input,
.cashier-shell-page [data-picking-scan-form] > .field-group > select,
.cashier-shell-page [data-picking-scan-form] > .button {
    height: 44px;
    min-height: 44px;
}

.cashier-shell-page [data-recent-sale-row] .button-row {
    align-items: stretch;
    gap: 6px;
    margin-top: 0;
}

@media (min-width: 701px) {
    .cashier-shell-page [data-picking-filter-form],
    .cashier-shell-page [data-picking-scan-form] {
        align-items: flex-end;
    }
}

.pos-camera {
    margin-bottom: 18px;
}

.pos-camera .form-help {
    margin: 8px 0 0;
    color: #d6e1d9;
}

.pos-js-error {
    margin: 0 0 18px;
}

.pos-draft-status {
    margin: 0 0 18px;
}

.pos-sale-scroll {
    min-height: 0;
    max-height: min(56dvh, 560px);
    padding: 2px 6px 2px 1px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-padding-block-end: 10px;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
}

.pos-sale-scroll:focus-visible {
    outline: 3px solid rgba(23, 107, 58, .18);
    outline-offset: 2px;
}

.pos-kiosk-page .pos-sale-scroll {
    flex: 1 1 auto;
}

.pos-sale-list {
    display: grid;
    gap: 10px;
    margin: 0 0 14px;
}

.pos-sale-list__actions {
    justify-content: flex-end;
}

.pos-sale-list__empty {
    margin: 8px 0 4px;
}

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

.pos-product-card {
    display: flex;
    min-width: 0;
    gap: 12px;
    padding: 13px;
    background: #fbfdfb;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.pos-product-card--keyboard-selected,
.pos-product-card:focus-visible {
    outline: 0;
    background: #f1fbf4;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(23, 107, 58, .16);
}

.pos-product-card__image {
    display: grid;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    place-items: center;
    object-fit: cover;
    background: #edf3ee;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.pos-product-card__image--empty {
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 850;
}

.pos-product-card__body {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.pos-product-card__body > strong {
    overflow-wrap: anywhere;
}

.pos-product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 10px;
}

.pos-price {
    color: var(--brand-dark);
    font-size: 17px;
}

.pos-cart-lines {
    display: grid;
    gap: 10px;
    max-height: none;
    overflow: visible;
}

.pos-cart-line {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 6px 12px;
    align-items: center;
    padding: 11px;
    background: #fbfdfb;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.pos-cart-line--keyboard-selected,
.pos-cart-line:focus-visible {
    outline: 0;
    background: #f1fbf4;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(23, 107, 58, .16);
}

.pos-cart-line__image {
    display: grid;
    width: 58px;
    height: 58px;
    grid-column: 1;
    grid-row: 1 / span 2;
    place-items: center;
    object-fit: cover;
    color: var(--brand-dark);
    background: #edf3ee;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 850;
}

.pos-cart-line__info {
    min-width: 0;
    grid-column: 2;
    grid-row: 1;
}

.pos-cart-line__info .cell-secondary {
    display: block;
    margin-top: 2px;
    font-size: 11px;
}

.pos-cart-line__info > strong {
    display: block;
    overflow-wrap: anywhere;
}

.pos-cart-line__controls {
    display: flex;
    grid-column: 2 / 4;
    grid-row: 2;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.pos-cart-line__controls input {
    width: 52px;
    min-height: 30px;
    padding: 4px 6px;
    font-size: 13px;
    text-align: center;
}

.pos-cart-line__unit {
    min-width: 20px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.pos-cart-line__step {
    min-width: 30px;
    min-height: 30px;
    padding: 4px 8px;
}

.pos-cart-line__controls .button--danger-soft {
    min-height: 30px;
    padding: 4px 8px;
    font-size: 11px;
}

.pos-cart-line__amount {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    font-size: 14px;
    text-align: right;
}

body.pos-weight-dialog-open { overflow: hidden; }

.pos-weight-dialog {
    box-sizing: border-box;
    width: min(460px, calc(100vw - 28px));
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    overflow: auto;
    color: var(--ink);
    background: #fff;
    border: 1px solid #d8e6dc;
    border-radius: 22px;
    box-shadow: 0 24px 90px rgba(4, 35, 19, .28);
}

.pos-weight-dialog::backdrop {
    background: rgba(8, 31, 19, .58);
    backdrop-filter: blur(4px);
}

.pos-weight-dialog__form {
    display: grid;
    gap: 18px;
    padding: 26px;
}

.pos-weight-dialog__form > .eyebrow { margin: 0; }

.pos-weight-dialog__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.pos-weight-dialog__heading h2,
.pos-weight-dialog__heading p { margin: 0; }

.pos-weight-dialog__heading p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
}

.pos-weight-dialog .field-group { gap: 7px; }

.pos-weight-dialog .field-group input {
    min-height: 58px;
    font-size: 22px;
    font-weight: 850;
}

.pos-weight-dialog__total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    background: #edf7f0;
    border: 1px solid #cfe5d6;
    border-radius: 14px;
}

.pos-weight-dialog__total span { color: var(--muted); font-size: 12px; font-weight: 800; }
.pos-weight-dialog__total strong { color: var(--brand-dark); font-size: 24px; }
.pos-weight-dialog .form-help { margin: -8px 0 0; }

.pos-weight-dialog__actions {
    display: grid;
    grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
    gap: 10px;
}

.pos-weight-dialog__actions .button { min-height: 48px; }

.pos-payment {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.pos-cart-summary {
    display: grid;
    width: 100%;
    min-width: 0;
    align-items: stretch;
    gap: 0;
    margin-top: 18px;
    padding: 15px 0 10px;
    border-top: 2px solid var(--ink);
    font-size: 18px;
}

.pos-kiosk-page .pos-cart-summary {
    margin-top: 5px;
    padding: 5px 0 4px;
    border-top-width: 1px;
    font-size: 15px;
    line-height: 1.25;
}

.pos-kiosk-page .pos-cart-summary .receipt__grand-total {
    margin-top: 3px;
    padding-top: 4px;
    border-top: 1px solid var(--line);
    font-size: 16px;
}

.pos-cart-summary.receipt__totals > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 12px;
    min-width: 0;
}

.pos-cart-summary dt,
.pos-cart-summary dd {
    min-width: 0;
    margin: 0;
}

.pos-cart-summary dt {
    overflow-wrap: anywhere;
}

.pos-cart-summary dd {
    text-align: right;
    white-space: nowrap;
}

.pos-cart-summary strong {
    font-size: 23px;
}

.pos-notes {
    margin-top: 15px;
}

.pos-notes textarea {
    width: 100%;
    resize: vertical;
}

.pos-payment {
    margin-top: 16px;
    padding: 12px 14px;
    color: var(--success-ink);
    background: var(--success-bg);
    border-radius: 9px;
}

.receipt-page {
    width: min(100%, 760px);
    margin-inline: auto;
}

.receipt-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.receipt-actions a:focus-visible,
.receipt-actions button:focus-visible {
    outline: 4px solid rgba(23, 107, 58, .24);
    outline-offset: 3px;
}

.receipt-keyboard-help {
    justify-content: center;
    margin: -12px 0 18px;
}

.return-keyboard-help {
    margin: 0 0 12px;
    padding: 8px 10px;
    background: #f5faf6;
    border: 1px solid #d9e8dd;
    border-radius: 9px;
}

.return-page-heading {
    align-items: end;
    margin-bottom: 12px;
}

.return-page-heading h1 {
    margin: 1px 0 3px;
    font-size: clamp(27px, 3vw, 36px);
    line-height: 1.05;
}

.return-page-heading .eyebrow {
    margin-bottom: 4px;
}

.return-page-heading .button-row {
    justify-content: flex-end;
}

.return-page .button:focus-visible,
.return-page [data-return-line]:focus-visible,
.return-page input:focus-visible,
.return-page select:focus-visible,
.return-page textarea:focus-visible,
.return-page button:focus-visible {
    outline: 4px solid rgba(23, 107, 58, .24);
    outline-offset: 2px;
}

.return-lookup-panel,
.return-sale-result {
    width: min(100%, 900px);
    margin-inline: auto;
}

.return-lookup-panel {
    display: grid;
    gap: 18px;
    padding: clamp(20px, 3vw, 30px);
    box-shadow: 0 14px 38px rgba(23, 60, 37, .06);
}

.return-lookup-panel__intro,
.return-sale-result__heading {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 13px;
}

.return-lookup-panel__intro h2,
.return-sale-result__heading h2 {
    margin: 0;
}

.return-lookup-panel__intro p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.return-step-number {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    color: #fff;
    background: var(--brand);
    border-radius: 50%;
    font-size: 17px;
    font-weight: 850;
}

.return-step-number--verified {
    color: var(--success-ink);
    background: var(--success-bg);
    border: 1px solid #b8dfc5;
}

.return-lookup-form {
    display: block;
}

.return-lookup-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 12px;
}

.return-lookup-form label,
.return-details-panel label {
    font-size: 13px;
    font-weight: 800;
}

.return-lookup-form input,
.return-details-panel select,
.return-details-panel textarea,
.return-items-table input,
.return-items-table select {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #b8c8bd;
    border-radius: 9px;
    font: inherit;
}

.return-receipt-field input {
    min-height: 52px;
    font-size: 17px;
    font-weight: 650;
}

.return-receipt-field small,
.return-details-panel .field-group small {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
}

.return-receipt-field kbd,
.return-items-hint kbd,
.return-complete-button kbd {
    padding: 2px 5px;
    background: rgba(255, 255, 255, .82);
    border: 1px solid #c8d8cd;
    border-radius: 5px;
    font: inherit;
    font-weight: 850;
}

.return-find-button {
    min-width: 152px;
    min-height: 52px;
}

.return-sale-result {
    margin-top: 14px;
    padding: 20px 24px;
    border-color: #b9ddc5;
    box-shadow: 0 14px 38px rgba(23, 60, 37, .06);
}

.return-sale-result__heading > div {
    min-width: 0;
    flex: 1 1 auto;
}

.return-sale-result__heading .eyebrow {
    margin-bottom: 2px;
}

.return-sale-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 16px 0;
}

.return-sale-facts div {
    display: grid;
    gap: 3px;
    padding: 10px 12px;
    background: #f6faf7;
    border-radius: 9px;
}

.return-sale-facts dt {
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
}

.return-sale-facts dd {
    margin: 0;
    font-weight: 750;
}

.return-sale-result__actions {
    justify-content: flex-end;
}

.return-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(330px, .72fr);
    align-items: start;
    gap: 12px;
}

.return-items-panel,
.return-details-panel {
    min-width: 0;
    padding: 17px;
}

.return-details-panel {
    position: sticky;
    top: 10px;
    display: grid;
    gap: 11px;
    box-shadow: 0 12px 34px rgba(23, 60, 37, .05);
}

.return-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.return-section-heading h2 {
    margin: 2px 0 0;
    font-size: 20px;
}

.return-section-heading p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.return-section-heading--compact {
    margin-bottom: 0;
}

.return-step-label {
    color: var(--brand);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .1em;
}

.return-selection-count {
    display: grid;
    min-width: 78px;
    padding: 8px 10px;
    color: var(--success-ink);
    background: var(--success-bg);
    border: 1px solid #c6e3cf;
    border-radius: 10px;
    text-align: center;
    line-height: 1.05;
}

.return-selection-count strong {
    font-size: 19px;
}

.return-selection-count span,
.return-selection-count small {
    font-size: 10px;
}

.return-selection-count small {
    margin-top: 4px;
    color: var(--muted);
}

.return-items-table-wrap {
    max-height: calc(100dvh - 270px);
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
    scrollbar-gutter: stable;
}

.return-items-table {
    min-width: 720px;
}

.return-items-table thead {
    position: sticky;
    top: 0;
    z-index: 2;
}

.return-items-table th,
.return-items-table td {
    padding: 10px 9px;
}

.return-items-table th:first-child,
.return-items-table td:first-child {
    width: 54px;
    text-align: center;
}

.return-items-table th:nth-child(2) {
    width: 26%;
}

.return-items-table th:nth-child(3) {
    width: 21%;
}

.return-items-table th:nth-child(4) {
    width: 166px;
}

.return-items-table th:last-child {
    width: 190px;
}

.return-items-table tr[aria-disabled="true"] {
    opacity: .58;
}

.return-select-cell {
    position: relative;
}

.return-select-cell input {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    padding: 0;
    opacity: 0;
}

.return-select-indicator {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    color: transparent;
    background: #fff;
    border: 2px solid #b7c6bc;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 900;
}

[data-return-line][aria-selected="true"] .return-select-indicator {
    color: #fff;
    background: var(--brand);
    border-color: var(--brand);
}

.return-product-cell strong {
    display: block;
    overflow-wrap: anywhere;
}

.return-balance {
    display: grid;
    gap: 2px;
    font-size: 12px;
}

.return-balance strong {
    color: var(--brand-dark);
    font-size: 15px;
}

.return-balance small {
    color: var(--muted);
    font-size: 10px;
}

.return-quantity-stepper {
    display: grid;
    grid-template-columns: 34px minmax(62px, 1fr) 34px;
    gap: 5px;
}

.return-quantity-stepper button {
    min-height: 40px;
    padding: 0;
    color: var(--brand-dark);
    background: #edf6f0;
    border: 1px solid #d4e5d9;
    border-radius: 8px;
    font: inherit;
    font-size: 18px;
    font-weight: 850;
    cursor: pointer;
}

.return-quantity-stepper input,
.return-items-table select {
    min-height: 40px;
    padding: 7px 8px;
    font-size: 13px;
}

.return-quantity-stepper input {
    text-align: center;
}

.return-quantity-stepper button:disabled,
.return-items-table input:disabled,
.return-items-table select:disabled {
    color: #8a938d;
    background: #f2f4f2;
    cursor: not-allowed;
}

.return-items-hint {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 11px;
    text-align: center;
}

.return-details-fields {
    display: grid;
    gap: 9px;
}

.return-details-panel .field-group {
    gap: 5px;
}

.return-details-panel select,
.return-details-panel textarea {
    min-height: 42px;
    padding: 8px 10px;
    font-size: 13px;
}

.return-details-panel textarea {
    min-height: 72px;
    resize: vertical;
}

.return-refund-note,
.return-verification-check,
.return-receipt-verification {
    border-radius: 9px;
}

.return-refund-note {
    display: grid;
    gap: 3px;
    padding: 9px 10px;
    color: var(--warning-ink);
    background: var(--warning-bg);
    border-left: 4px solid #dda90c;
    font-size: 11px;
    line-height: 1.4;
}

.return-verification-check {
    display: grid !important;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 9px !important;
    padding: 10px;
    background: #f5faf6;
    border: 1px solid #d3e4d8;
    cursor: pointer;
}

.return-verification-check input {
    width: 19px;
    height: 19px;
    margin: 1px 0 0;
    accent-color: var(--brand);
}

.return-verification-check span {
    display: grid;
    gap: 2px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
}

.return-verification-check strong {
    color: var(--ink);
    font-size: 13px;
}

.return-receipt-verification {
    padding: 8px 10px;
    color: var(--success-ink);
    background: var(--success-bg);
    font-size: 11px;
    overflow-wrap: anywhere;
}

.return-complete-button {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 1px;
    padding-inline: 15px;
}

.return-complete-button kbd {
    color: var(--brand-dark);
    font-size: 11px;
}

.return-complete-button:disabled {
    opacity: .58;
    cursor: not-allowed;
}

@media (max-width: 1100px) {
    .return-workspace {
        grid-template-columns: minmax(0, 1fr);
    }

    .return-details-panel {
        position: static;
    }

    .return-items-table-wrap {
        max-height: 430px;
    }
}

@media (min-width: 701px) and (max-width: 820px) {
    .body--admin-shell .topbar__inner {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 8px;
        padding-block: 10px;
    }

    .body--admin-shell .account {
        width: 100%;
        justify-content: flex-end;
        gap: 8px;
    }

    .body--admin-shell .account__identity {
        margin-right: auto;
    }
}

@media (max-width: 700px) {
    .return-lookup-controls,
    .return-sale-facts {
        grid-template-columns: minmax(0, 1fr);
    }

    .return-find-button,
    .return-sale-result__actions,
    .return-sale-result__actions .button {
        width: 100%;
    }

    .return-sale-result__heading {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .return-sale-result__heading .status-pill {
        margin-left: 51px;
    }

    .return-items-panel,
    .return-details-panel,
    .return-sale-result {
        padding: 14px;
    }
}

.cashier-login-keyboard-help {
    margin: 2px 0 10px;
}

.shift-keyboard-help,
.recent-sales-keyboard-help {
    margin: -14px 0 16px;
    padding: 8px 10px;
    background: #f5faf6;
    border: 1px solid #d9e8dd;
    border-radius: 9px;
}

/* Cash shift workspace */
.cash-shift-page {
    display: grid;
    gap: 0;
}

.cash-shift-heading {
    margin-bottom: 18px;
}

.cash-shift-heading h1 {
    letter-spacing: -.025em;
}

.cash-shift-page > .alert {
    margin-bottom: 16px;
}

.cash-shift-branch-panel {
    margin: 0 0 16px;
    padding: 14px 16px;
}

.cash-shift-grid {
    align-items: start;
}

.cash-shift-grid--single {
    grid-template-columns: minmax(0, 1fr);
}

.cash-shift-card,
.cash-shift-ledger,
.cash-shift-history,
.cash-shift-registers {
    box-shadow: 0 10px 28px rgba(23, 33, 27, .045);
}

.cash-shift-card {
    min-width: 0;
    padding: 20px;
}

.cash-shift-card__heading,
.cash-shift-section-heading,
.cash-shift-ledger__heading {
    align-items: flex-start;
    margin-bottom: 12px;
}

.cash-shift-card__eyebrow {
    margin: 0 0 3px;
    color: var(--brand);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .09em;
    line-height: 1.2;
    text-transform: uppercase;
}

.cash-shift-card__intro {
    margin: 0 0 14px;
    line-height: 1.55;
}

.cash-shift-current-layout {
    display: grid;
    min-width: 0;
    gap: 18px;
}

.cash-shift-grid--single .cash-shift-current-layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr);
    align-items: start;
}

.cash-shift-overview {
    min-width: 0;
}

.cash-shift-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 14px;
}

.cash-shift-metrics p {
    display: grid;
    justify-content: stretch;
    gap: 5px;
    min-width: 0;
    padding: 12px 14px;
    background: #f7faf8;
    border: 1px solid #e3ebe5;
    border-radius: 10px;
}

.cash-shift-metrics span {
    font-size: 12px;
    font-weight: 700;
}

.cash-shift-metrics strong {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 15px;
    line-height: 1.35;
}

.cash-shift-metric--protected {
    color: var(--warning-ink);
    background: var(--warning-bg) !important;
    border-color: #f0d999 !important;
}

.cash-shift-primary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cash-shift-blind-note {
    margin-top: 14px;
    padding: 10px 12px;
    font-size: 13px;
}

.cash-shift-close-zone {
    min-width: 0;
    padding: 16px;
    background: #fbfcfb;
    border: 1px solid #dce6df;
    border-top: 4px solid var(--danger-ink);
    border-radius: 12px;
}

.cash-shift-close-zone__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 13px;
}

.cash-shift-close-zone__heading h3,
.cash-shift-manager-action h3 {
    margin: 0;
}

.cash-shift-step {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-align: right;
}

.cash-shift-form {
    gap: 12px;
}

.cash-shift-open-form {
    width: min(100%, 680px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
}

.cash-shift-open-form .button {
    grid-column: 1 / -1;
}

.cash-close-form.cash-shift-form {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.cash-shift-optional {
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

.cash-shift-submit {
    min-height: 46px;
}

.cash-shift-submit kbd {
    margin-left: 4px;
    padding: 1px 5px;
    color: inherit;
    background: rgba(255, 255, 255, .18);
    border: 1px solid currentColor;
    border-radius: 4px;
    font: inherit;
    font-size: 11px;
}

.cash-shift-manager-grid {
    margin-top: 16px;
}

.cash-shift-manager-action {
    min-width: 0;
    padding: 16px;
    background: #f7faf8;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.cash-shift-manager-action--danger {
    background: #fffafa;
    border-color: #f0dada;
}

.cash-shift-reconcile-form {
    margin-top: 14px;
    padding: 16px;
    background: var(--warning-bg);
    border: 1px solid #f0d999;
    border-radius: 12px;
}

.cash-shift-history,
.cash-shift-registers,
.cash-shift-ledger {
    scroll-margin-top: 14px;
}

[data-shift-workflow] {
    transition: border-color .14s ease, box-shadow .14s ease;
}

[data-shift-workflow][data-keyboard-selected="true"] {
    border-color: rgba(23, 107, 58, .62);
    box-shadow: 0 0 0 3px rgba(23, 107, 58, .12), 0 10px 28px rgba(23, 33, 27, .055);
}

[data-shift-keyboard-action]:focus-visible,
[data-recent-back-pos]:focus-visible,
[data-recent-view]:focus-visible,
[data-recent-reprint]:focus-visible,
[data-recent-return]:focus-visible {
    outline: 4px solid rgba(23, 107, 58, .24);
    outline-offset: 3px;
}

[data-recent-sale-row] > td {
    transition: background-color .12s ease, box-shadow .12s ease;
}

[data-recent-sale-row].recent-sale-row--keyboard-selected > td {
    background: #eef8f1;
    box-shadow: inset 0 2px 0 rgba(23, 107, 58, .32),
        inset 0 -2px 0 rgba(23, 107, 58, .32);
}

[data-recent-sale-row].recent-sale-row--keyboard-selected > td:first-child {
    box-shadow: inset 4px 0 0 var(--brand),
        inset 0 2px 0 rgba(23, 107, 58, .32),
        inset 0 -2px 0 rgba(23, 107, 58, .32);
}

[data-recent-sale-row].recent-sale-row--keyboard-selected > td:last-child {
    box-shadow: inset -2px 0 0 rgba(23, 107, 58, .32),
        inset 0 2px 0 rgba(23, 107, 58, .32),
        inset 0 -2px 0 rgba(23, 107, 58, .32);
}

[data-return-line] {
    outline: 0;
}

[data-return-line] > td {
    transition: background-color .12s ease, box-shadow .12s ease;
}

[data-return-line].counter-return-line--keyboard-selected > td,
[data-return-line]:focus-visible > td {
    background: #eef8f1;
    box-shadow: inset 0 2px 0 rgba(23, 107, 58, .42),
        inset 0 -2px 0 rgba(23, 107, 58, .42);
}

[data-return-line].counter-return-line--keyboard-selected > td:first-child,
[data-return-line]:focus-visible > td:first-child {
    box-shadow: inset 4px 0 0 var(--brand),
        inset 0 2px 0 rgba(23, 107, 58, .42),
        inset 0 -2px 0 rgba(23, 107, 58, .42);
}

[data-return-line].counter-return-line--keyboard-selected > td:last-child,
[data-return-line]:focus-visible > td:last-child {
    box-shadow: inset -2px 0 0 rgba(23, 107, 58, .42),
        inset 0 2px 0 rgba(23, 107, 58, .42),
        inset 0 -2px 0 rgba(23, 107, 58, .42);
}

.receipt {
    width: min(100%, 80mm);
    margin-inline: auto;
    padding: 9mm 7mm;
    color: #111;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 16px 40px rgba(23, 33, 27, .08);
    font-family: "Courier New", ui-monospace, monospace;
    font-size: 12px;
}

.receipt,
.receipt * {
    box-sizing: border-box;
}

.receipt__header {
    text-align: center;
}

.receipt__brand-logo {
    display: block;
    width: 48px;
    height: 48px;
    margin: 0 auto 8px;
    object-fit: contain;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
}

.receipt__header h1 {
    margin-bottom: 5px;
    font: 900 24px/1.1 ui-sans-serif, system-ui, sans-serif;
}

.receipt__header p {
    margin-bottom: 3px;
    line-height: 1.35;
}

.receipt__header p,
.receipt__header strong,
.receipt__meta dt,
.receipt__meta dd,
.receipt__items th,
.receipt__items td,
.receipt__payment span,
.receipt__payment strong,
.receipt__footer,
.receipt__status {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
}

.receipt__meta,
.receipt__totals {
    margin: 16px 0;
    padding-block: 10px;
    border-block: 1px dashed #555;
}

.receipt__meta div,
.receipt__totals div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 5px;
}

.receipt__meta div:last-child,
.receipt__totals div:last-child {
    margin-bottom: 0;
}

.receipt dt,
.receipt dd {
    margin: 0;
}

.receipt dd {
    flex: 1 1 auto;
    min-width: 0;
    text-align: right;
}

.receipt dt {
    flex: 0 0 34%;
}

.receipt__items {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.receipt__items col.receipt__item-col {
    width: 43%;
}

.receipt__items col.receipt__detail-col {
    width: 34%;
}

.receipt__items col.receipt__amount-col {
    width: 23%;
}

.receipt__items th,
.receipt__items td {
    padding: 7px 3px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px dotted #aaa;
}

.receipt__items th:nth-child(2),
.receipt__items td:nth-child(2),
.receipt__items th:last-child,
.receipt__items td:last-child {
    text-align: right;
}

.receipt__items th:nth-child(n + 2),
.receipt__items td:nth-child(n + 2),
.receipt__totals dd,
.receipt__payment strong {
    font-variant-numeric: tabular-nums;
}

.receipt__items td:first-child span {
    display: block;
    margin-top: 3px;
    color: #555;
    font-size: 10px;
}

.receipt__totals {
    border-top: 0;
}

.receipt__grand-total {
    padding-top: 7px;
    border-top: 1px solid #111;
    font-size: 15px;
    font-weight: 900;
}

.receipt__payments {
    display: grid;
    gap: 8px;
}

.receipt__payment {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 10px;
    padding-bottom: 8px;
    border-bottom: 1px dotted #aaa;
}

.receipt__payment:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.receipt__payment-detail {
    grid-column: 1 / -1;
    overflow-wrap: anywhere;
}

.receipt__lookup-code {
    display: grid;
    justify-items: center;
    gap: 4px;
    margin-top: 16px;
    padding-top: 12px;
    text-align: center;
    border-top: 1px dashed #555;
}

.receipt__lookup-code [data-receipt-qr] {
    width: 28mm;
    min-height: 28mm;
}

.receipt__lookup-code svg {
    display: block;
    width: 100%;
    height: auto;
}

.receipt__lookup-code span {
    overflow-wrap: anywhere;
    font-size: 10px;
}

.receipt__note {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px dashed #555;
    overflow-wrap: anywhere;
}

.receipt__status {
    margin: 12px 0 0;
    padding: 7px 8px;
    border: 1px solid #555;
    text-align: center;
    font-weight: 700;
}

.receipt__footer {
    display: grid;
    gap: 7px;
    margin-top: 18px;
    padding-top: 14px;
    text-align: center;
    border-top: 1px dashed #555;
}

.receipt__footer span {
    color: #555;
    font-size: 10px;
}

.store-body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.store-page {
    flex: 1;
}

.store-topbar {
    border-top: 4px solid var(--brand);
}

.brand__suffix {
    display: inline-flex;
    align-items: center;
    padding: 4px 7px;
    color: var(--brand-dark);
    background: #eef5f0;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.store-nav {
    padding-bottom: 10px;
}

.store-footer {
    padding-block: 22px;
    color: var(--muted);
    background: var(--surface);
    border-top: 1px solid var(--line);
    font-size: 13px;
    line-height: 1.6;
}

.store-footer a {
    color: var(--brand-dark);
    font-weight: 700;
}

.store-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, .34fr);
    gap: clamp(28px, 7vw, 80px);
    align-items: center;
    min-height: 430px;
    padding: clamp(34px, 7vw, 76px);
    color: #fff;
    background:
        radial-gradient(circle at 90% 10%, rgba(255, 255, 255, .16), transparent 32%),
        linear-gradient(135deg, var(--brand-dark), var(--brand));
    border-radius: 26px;
    box-shadow: 0 24px 70px rgba(15, 77, 41, .22);
}

.store-hero h1 {
    max-width: 720px;
    font-size: clamp(36px, 7vw, 68px);
}

.store-hero p {
    max-width: 680px;
    color: rgba(255, 255, 255, .84);
    font-size: 17px;
    line-height: 1.75;
}

.store-hero .eyebrow {
    color: #bfe9cc;
}

.store-hero .button--primary {
    color: var(--brand-dark);
    background: #fff;
}

.store-hero .button--quiet {
    color: #fff;
    border-color: rgba(255, 255, 255, .5);
}

.store-hero__card {
    display: grid;
    gap: 5px;
    padding: 30px;
    text-align: center;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 20px;
    backdrop-filter: blur(8px);
}

.store-hero__card strong {
    font-size: 64px;
    line-height: 1;
}

.store-hero__card span {
    font-size: 16px;
    font-weight: 800;
}

.store-hero__card small {
    color: rgba(255, 255, 255, .76);
}

.store-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.store-feature-grid article {
    padding: 26px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.store-feature-grid article > span {
    display: grid;
    width: 34px;
    height: 34px;
    margin-bottom: 20px;
    place-items: center;
    color: #fff;
    background: var(--brand);
    border-radius: 50%;
    font-weight: 900;
}

.store-feature-grid p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.6;
}

.store-form-panel {
    max-width: 820px;
}

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

.form--grid .field-group {
    align-content: start;
}

.location-fields,
.form-actions--full {
    grid-column: 1 / -1;
}

.location-fields {
    display: grid;
    gap: 14px;
    margin: 8px 0 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.location-fields legend {
    padding-inline: 8px;
    font-weight: 800;
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.store-catalog-filter {
    grid-template-columns: minmax(220px, 1fr) minmax(190px, .45fr) auto;
}

.store-area-panel {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.store-area-panel h2 {
    margin: 0 0 6px;
}

.store-area-panel p {
    margin: 0;
}

.store-area-panel form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.store-area-panel select {
    min-width: 180px;
}

.store-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.store-product-card {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(23, 33, 27, .06);
}

.store-product-card--added {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(23, 107, 58, .13), 0 10px 28px rgba(23, 33, 27, .06);
}

.store-product-card:target {
    scroll-margin-top: 18px;
}

.store-cart-notice a {
    font-weight: 800;
}

.store-product-card__media {
    position: relative;
    display: flex;
    height: 180px;
    max-height: 180px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--brand);
    background: linear-gradient(145deg, #edf6f0, #f8faf8);
    font-size: 56px;
    font-weight: 900;
}

.store-product-card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.store-product-card__body {
    display: grid;
    gap: 8px;
    padding: 20px;
}

.store-product-card__body h2,
.store-product-card__body p {
    margin-bottom: 0;
}

.store-product-card__price {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
}

.store-product-card__price strong {
    color: var(--brand-dark);
    font-size: 24px;
}

.store-product-card__price small {
    color: var(--muted);
}

.store-product-card__hint {
    color: var(--brand-dark);
    font-weight: 700;
}

.store-add-form {
    display: grid;
    grid-template-columns: minmax(70px, 1fr) auto;
    gap: 8px;
    margin-top: 8px;
}

.store-add-form input,
.cart-quantity {
    width: 100%;
    height: 42px;
    padding-inline: 10px;
    border: 1px solid #bcc9c0;
    border-radius: 9px;
    font: inherit;
}

.cart-update-actions {
    padding: 16px 20px 20px;
    text-align: right;
}

.checkout-grid,
.order-detail-grid {
    display: grid;
    grid-template-columns: minmax(240px, .38fr) minmax(0, 1fr);
    gap: 20px;
    margin-top: 20px;
    align-items: start;
}

.checkout-summary {
    display: grid;
    gap: 6px;
}

.checkout-summary span {
    color: var(--muted);
    font-weight: 700;
}

.checkout-summary strong {
    color: var(--brand-dark);
    font-size: clamp(32px, 5vw, 48px);
}

.checkout-summary small {
    color: var(--muted);
    line-height: 1.55;
}

.checkout-form {
    margin-top: 0;
}

.checkout-form textarea {
    min-height: 110px;
}

.detail-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.detail-list div {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 12px;
}

.detail-list dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.detail-list dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.order-filter {
    grid-template-columns: minmax(220px, 1.4fr) minmax(170px, .7fr) minmax(190px, .9fr) auto;
}

.order-table {
    min-width: 980px;
}

/* Cashier online-order packing keyboard workflow. */
.picking-keyboard-help {
    margin: -8px 0 14px;
}

[data-picking-order-row],
[data-picking-item-row] {
    scroll-margin-block: 12px;
}

[data-picking-order-row].picking-row--keyboard-selected > td,
[data-picking-order-row]:focus-visible > td,
[data-picking-item-row].picking-row--keyboard-selected > td,
[data-picking-item-row]:focus-visible > td {
    background: #eef8f1;
    box-shadow: inset 0 2px 0 rgba(23, 107, 58, .4), inset 0 -2px 0 rgba(23, 107, 58, .4);
}

[data-picking-order-row].picking-row--keyboard-selected > td:first-child,
[data-picking-order-row]:focus-visible > td:first-child,
[data-picking-item-row].picking-row--keyboard-selected > td:first-child,
[data-picking-item-row]:focus-visible > td:first-child {
    box-shadow: inset 3px 2px 0 rgba(23, 107, 58, .55), inset 0 -2px 0 rgba(23, 107, 58, .4);
}

[data-picking-order-row].picking-row--keyboard-selected > td:last-child,
[data-picking-order-row]:focus-visible > td:last-child,
[data-picking-item-row].picking-row--keyboard-selected > td:last-child,
[data-picking-item-row]:focus-visible > td:last-child {
    box-shadow: inset -3px 2px 0 rgba(23, 107, 58, .55), inset 0 -2px 0 rgba(23, 107, 58, .4);
}

[data-picking-order-row]:focus,
[data-picking-item-row]:focus {
    outline: 0;
}

.order-admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
    gap: 20px;
    margin-top: 20px;
    align-items: start;
}

.order-admin-grid--lower {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.order-contact-actions {
    margin-top: 20px;
}

.order-sale-number {
    display: block;
    font-size: 18px;
}

.order-actions-panel {
    margin-top: 20px;
}

.notification-health-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 20px;
    margin-top: 20px;
}

.notification-filter {
    grid-template-columns: minmax(260px, 1.5fr) minmax(160px, .65fr) minmax(190px, .85fr) auto;
}

.notification-table {
    min-width: 1180px;
}

.notification-table td:nth-child(7) {
    min-width: 220px;
    max-width: 340px;
    overflow-wrap: anywhere;
}

.notification-health-message {
    margin-top: 0;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.form .checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex: 0 0 auto;
}

.checkbox-row span {
    flex: 1;
}

.form-section {
    min-width: 0;
    margin: 18px 0 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.form-section legend {
    max-width: 100%;
    padding: 0 6px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.pos-payment-panel {
    display: grid;
    gap: 14px;
    background: linear-gradient(180deg, #fbfdfb 0%, #f4f8f5 100%);
}

.pos-kiosk-page .pos-payment-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 6px;
    margin: 4px 0 0;
    padding: 0;
    background: transparent;
    border: 0;
}

.pos-kiosk-page .pos-payment-panel .field-group {
    gap: 3px;
}

.pos-kiosk-page .pos-payment-panel label {
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.pos-payment-panel[aria-disabled="true"] {
    opacity: .68;
}

.pos-payment-panel__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.pos-payment-panel__heading h3,
.pos-payment-panel__heading p {
    margin: 0;
}

.pos-payment-panel__payable {
    color: var(--brand-dark);
    font-size: 25px;
    white-space: nowrap;
}

.pos-payment-panel select,
.pos-payment-panel input[type="number"],
.pos-payment-panel input[type="text"],
.pos-payment-panel input[type="password"] {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 11px 12px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #bcc9c0;
    border-radius: 10px;
    font: inherit;
    font-size: 16px;
}

.pos-kiosk-page .pos-payment-panel select,
.pos-kiosk-page .pos-payment-panel input[type="number"],
.pos-kiosk-page .pos-payment-panel input[type="text"],
.pos-kiosk-page .pos-payment-panel input[type="password"] {
    min-height: 40px;
    padding: 8px;
    font-size: 16px;
}

.pos-kiosk-page .pos-payment-field--method select {
    min-height: 40px;
    padding-inline: 8px;
    font-size: 14px;
    font-weight: 780;
}

.pos-kiosk-page .pos-payment-field--received input,
.pos-kiosk-page .pos-payment-field--paid input,
.pos-kiosk-page .pos-payment-field--reference input {
    min-height: 40px;
    font-size: 16px;
    font-weight: 750;
}

.pos-kiosk-page .pos-payment-field--paid label,
.pos-kiosk-page .pos-payment-field--reference label {
    font-size: 12px;
}

.pos-kiosk-page #pos-wallet-amount,
.pos-kiosk-page #pos-wallet-reference {
    font-size: 16px;
}

.pos-kiosk-page #pos-wallet-amount {
    font-weight: 800;
}

.pos-kiosk-page .pos-payment-field input::placeholder {
    font-size: 12px;
    font-weight: 500;
}

.pos-kiosk-page #pos-cash-tendered:not(:disabled) {
    min-height: 40px;
    color: var(--brand-dark);
    background: #f4fff7;
    border: 2px solid var(--brand);
    box-shadow: 0 0 0 3px rgba(23, 107, 58, .1);
    font-size: 16px;
    font-weight: 800;
}

.pos-kiosk-page #pos-cash-tendered:not(:disabled)::placeholder {
    color: #4e6857;
    opacity: 1;
    font-weight: 650;
}

.pos-kiosk-page #pos-cash-tendered:not(:disabled):focus {
    outline: 0;
    border-color: var(--brand-dark);
    box-shadow: 0 0 0 4px rgba(23, 107, 58, .2);
}

.pos-payment-panel select:focus,
.pos-payment-panel input[type="number"]:focus,
.pos-payment-panel input[type="text"]:focus,
.pos-payment-panel input[type="password"]:focus {
    outline: 3px solid rgba(23, 107, 58, .15);
    border-color: var(--brand);
}

.pos-payment-panel select:disabled,
.pos-payment-panel input[type="number"]:disabled,
.pos-payment-panel input[type="text"]:disabled,
.pos-payment-panel input[type="password"]:disabled {
    color: var(--muted);
    background: #f1f4f2;
    cursor: not-allowed;
}

.pos-payment-fields {
    display: grid;
    gap: 12px;
}

.pos-kiosk-page .pos-payment-fields {
    display: contents;
}

.pos-payment-fields[hidden] {
    display: none;
}

.pos-kiosk-page .pos-payment-field--reference,
.pos-kiosk-page .pos-change-card {
    grid-column: 1 / -1;
}

.pos-kiosk-page .pos-payment-field--reference .form-help {
    margin: 0;
    font-size: 11px;
    line-height: 1.3;
}

.pos-kiosk-page #pos-card-authorize {
    min-height: 34px;
    padding: 6px 10px;
}

.pos-change-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    color: var(--success-ink);
    background: var(--success-bg);
    border: 1px solid #a9d8b9;
    border-radius: 12px;
}

.pos-kiosk-page .pos-change-card {
    padding: 7px 10px;
    border-radius: 9px;
}

.pos-change-card span {
    font-weight: 750;
}

.pos-change-card strong {
    font-size: 27px;
    white-space: nowrap;
}

.pos-kiosk-page .pos-change-card strong {
    font-size: 23px;
}

.pos-kiosk-page .pos-change-card span {
    font-size: 14px;
    font-weight: 800;
}

.pos-kiosk-page #pos-checkout-button {
    min-height: 40px;
    margin-top: 2px;
}

.pos-payment-status {
    min-height: 1.4em;
    margin: 0;
}

.pos-method-picker {
    position: relative;
    min-width: 0;
    width: 100%;
}

.pos-method-picker > select.pos-method-picker__native {
    position: absolute;
    width: 1px;
    height: 1px;
    min-width: 0;
    min-height: 0;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.pos-method-picker__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 8px 10px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #bcc9c0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.25;
    text-align: left;
    cursor: pointer;
}

.pos-method-picker__trigger:focus-visible,
.pos-method-picker__trigger[aria-expanded="true"] {
    outline: 3px solid rgba(23, 107, 58, .13);
    border-color: var(--brand);
}

.pos-method-picker__trigger:disabled {
    color: var(--muted);
    background: #f1f4f2;
    cursor: not-allowed;
}

.pos-method-picker__value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pos-method-picker__chevron {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    margin: -3px 2px 0 0;
    border-right: 1.8px solid currentColor;
    border-bottom: 1.8px solid currentColor;
    transform: rotate(45deg);
}

.pos-method-picker.is-open .pos-method-picker__chevron {
    margin-top: 3px;
    transform: rotate(225deg);
}

.pos-method-picker__list {
    position: absolute;
    z-index: 80;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    display: grid;
    gap: 3px;
    max-height: min(280px, 65dvh);
    overflow-y: auto;
    padding: 5px;
    background: #fff;
    border: 1px solid #d4e2d8;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(16, 60, 36, .16), 0 2px 6px rgba(16, 60, 36, .06);
}

.pos-method-picker__list[hidden] {
    display: none;
}

.pos-method-picker.opens-above .pos-method-picker__list {
    top: auto;
    bottom: calc(100% + 6px);
}

.pos-method-picker__option {
    display: grid;
    grid-template-columns: 25px minmax(0, 1fr) 12px;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 5px 6px;
    color: var(--ink);
    background: #fff;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.pos-method-picker__option:hover,
.pos-method-picker__option.is-active {
    background: #f1f7f3;
    border-color: #c6dccd;
}

.pos-method-picker__option[aria-selected="true"] {
    color: var(--brand-dark);
    background: #eaf6ee;
    border-color: #badbc4;
}

.pos-method-picker__option[aria-disabled="true"] {
    opacity: .5;
    cursor: not-allowed;
}

.pos-method-picker__badge {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    color: #146238;
    background: #e4f3e9;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 850;
}

.pos-method-picker__badge[data-method="BKASH"] {
    color: #bb165a;
    background: #fceaf1;
}

.pos-method-picker__badge[data-method="NAGAD"] {
    color: #bd480b;
    background: #fff0e5;
}

.pos-method-picker__badge[data-method="ZAW_CARD"] {
    color: #fff;
    background: #176b3a;
}

.pos-method-picker__name {
    min-width: 0;
    overflow-wrap: anywhere;
}

.pos-method-picker__check {
    color: var(--brand);
    opacity: 0;
    font-weight: 850;
}

.pos-method-picker__option[aria-selected="true"] .pos-method-picker__check {
    opacity: 1;
}

.order-transition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.order-transition-card {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfdfb;
}

.order-transition-card--danger {
    border-color: #efc9c9;
    background: #fffafa;
}

.order-transition-card p {
    margin: 0;
    line-height: 1.5;
}

.order-transition-card input,
.order-transition-card textarea {
    width: 100%;
    padding: 10px 11px;
    border: 1px solid #bcc9c0;
    border-radius: 9px;
    font: inherit;
}

.order-transition-card textarea {
    min-height: 90px;
    resize: vertical;
}

.order-timeline {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.order-timeline li {
    position: relative;
    display: grid;
    gap: 4px;
    padding: 0 0 18px 24px;
    border-left: 2px solid #c9d8ce;
}

.order-timeline li::before {
    position: absolute;
    top: 2px;
    left: -7px;
    width: 12px;
    height: 12px;
    border: 2px solid var(--brand);
    border-radius: 50%;
    background: #fff;
    content: '';
}

.order-timeline li:last-child {
    padding-bottom: 0;
    border-left-color: transparent;
}

.order-timeline span,
.order-timeline p {
    color: var(--muted);
    font-size: 13px;
}

.order-timeline p {
    margin: 2px 0 0;
}

/* Admin and manager workspace polish. Keep these rules scoped so the store and
   cashier kiosk retain their purpose-built layouts. */
.body--admin-shell .shell {
    width: min(100% - 32px, 1280px);
}

.admin-shell-page {
    padding-block: 30px 44px;
}

.admin-shell-page .page-heading {
    align-items: center;
    margin-bottom: 20px;
}

.admin-shell-page .page-heading > div:first-child {
    min-width: 0;
}

.admin-shell-page .page-heading h1 {
    margin-bottom: 6px;
    font-size: clamp(30px, 3.4vw, 40px);
}

.admin-shell-page .page-heading .muted {
    max-width: 850px;
    line-height: 1.55;
}

.admin-shell-page .page-heading > .button,
.admin-shell-page .page-heading > .button-row .button,
.body--admin-shell .account .button {
    min-height: 42px;
}

.body--admin-shell .admin-keyboard-help > summary {
    min-height: 42px;
}

.admin-shell-page .page-heading > .button-row,
.admin-shell-page .page-heading > .form-actions,
.admin-shell-page .dashboard-heading__actions,
.admin-shell-page .order-contact-actions,
.admin-shell-page .data-table .button-row {
    align-items: center;
    margin-top: 0;
}

.admin-shell-page > .panel,
.admin-shell-page > .alert + .panel,
.admin-shell-page > .order-detail-grid + .panel,
.admin-shell-page > .order-admin-grid + .panel {
    margin-top: 18px;
}

.admin-shell-page .panel {
    padding: 21px;
}

.admin-shell-page .panel-heading {
    align-items: center;
    margin-bottom: 14px;
}

.admin-shell-page .panel-heading > div {
    min-width: 0;
}

.admin-shell-page .panel-heading .cell-secondary {
    max-width: 760px;
    line-height: 1.5;
}

.admin-shell-page .count-badge,
.admin-shell-page .status-pill {
    flex: 0 0 auto;
    white-space: nowrap;
}

.admin-shell-page .filter-form {
    align-items: end;
    gap: 12px;
}

.admin-shell-page .filter-form > .field-group {
    min-width: min(100%, 180px);
    flex: 1 1 210px;
}

.admin-shell-page .filter-form > .button,
.admin-shell-page .catalog-filter__actions .button,
.admin-shell-page .report-filter__actions .button {
    min-height: 44px;
    margin: 0;
}

.admin-shell-page .catalog-filter,
.admin-shell-page .report-filter {
    align-items: end;
}

.admin-shell-page .filter-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto;
    align-items: end;
    gap: 14px;
}

.admin-shell-page .filter-grid input,
.admin-shell-page .filter-grid select {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #bcc9c0;
    border-radius: 10px;
    font: inherit;
}

.admin-shell-page .filter-grid input:focus,
.admin-shell-page .filter-grid select:focus {
    outline: 3px solid rgba(23, 107, 58, .15);
    border-color: var(--brand);
}

.admin-shell-page .filter-grid .form-actions {
    margin: 0;
}

.admin-shell-page .filter-grid .button {
    min-height: 44px;
}

.admin-shell-page .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 390px), 1fr));
    align-items: start;
    gap: 18px;
    margin-top: 18px;
}

.admin-shell-page .card-grid > .panel {
    margin: 0;
}

.admin-shell-page .report-filter--settlement {
    grid-template-columns: repeat(5, minmax(130px, 1fr)) auto;
}

.admin-shell-page .report-filter--accounting {
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
}

.admin-shell-page .catalog-filter__actions,
.admin-shell-page .report-filter__actions {
    align-items: stretch;
    padding-bottom: 0;
}

.admin-shell-page .form input,
.admin-shell-page .form select,
.admin-shell-page .form textarea,
.admin-shell-page .form-stack input,
.admin-shell-page .form-stack select,
.admin-shell-page .form-stack textarea,
.admin-shell-page .form-grid input,
.admin-shell-page .form-grid select,
.admin-shell-page .form-grid textarea,
.admin-shell-page .register-create-form input,
.admin-shell-page .filter-form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.admin-shell-page .filter-form select,
.admin-shell-page .catalog-filter input,
.admin-shell-page .catalog-filter select,
.admin-shell-page .report-filter input,
.admin-shell-page .report-filter select {
    min-height: 44px;
}

.admin-shell-page .form-actions,
.admin-shell-page .field-group.form-actions,
.admin-shell-page .field-group.button-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-shell-page .form-actions .button,
.admin-shell-page .field-group.button-row .button {
    min-height: 42px;
}

.admin-shell-page input[type="checkbox"],
.admin-shell-page input[type="radio"] {
    width: 18px;
    min-width: 18px;
    height: 18px;
    min-height: 18px;
    padding: 0;
    flex: 0 0 18px;
}

.admin-shell-page .data-table th,
.admin-shell-page .data-table td {
    padding: 12px 11px;
}

.admin-shell-page .data-table td.table-actions {
    align-items: center;
    gap: 6px;
}

.admin-shell-page .data-table td.table-actions form {
    display: inline-flex;
    align-items: center;
}

.admin-shell-page .data-table .button--small {
    min-height: 34px;
    line-height: 1.2;
    white-space: nowrap;
}

.admin-shell-page .order-transition-card .button,
.admin-shell-page .order-actions-panel > .button {
    min-height: 42px;
    align-self: end;
}

.admin-shell-page .detail-list div {
    align-items: start;
}

.admin-shell-page .metric-card {
    min-height: 132px;
}

.body--admin-shell .admin-nav {
    scrollbar-width: thin;
    scrollbar-color: #bfd3c4 transparent;
}

@media (max-width: 1100px) {
    .admin-shell-page .catalog-filter,
    .admin-shell-page .report-filter--sales,
    .admin-shell-page .report-filter--inventory,
    .admin-shell-page .report-filter--settlement,
    .admin-shell-page .report-filter--accounting,
    .admin-shell-page .order-filter,
    .admin-shell-page .notification-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-shell-page .catalog-filter__actions,
    .admin-shell-page .report-filter__actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}

@media (max-width: 700px) {
    .body--admin-shell .shell {
        width: min(100% - 20px, 1280px);
    }

    .admin-shell-page {
        padding-block: 22px 32px;
    }

    .admin-shell-page .page-heading {
        gap: 14px;
        margin-bottom: 16px;
    }

    .admin-shell-page .page-heading > .button-row,
    .admin-shell-page .page-heading > .button-row .button,
    .admin-shell-page .page-heading > .form-actions,
    .admin-shell-page .page-heading > .form-actions .button,
    .admin-shell-page .page-heading > .button {
        width: 100%;
    }

    .admin-shell-page .panel {
        padding: 17px;
    }

    .admin-shell-page .panel-heading {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .admin-shell-page .catalog-filter,
    .admin-shell-page .report-filter--sales,
    .admin-shell-page .report-filter--inventory,
    .admin-shell-page .report-filter--settlement,
    .admin-shell-page .report-filter--accounting,
    .admin-shell-page .order-filter,
    .admin-shell-page .notification-filter {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-shell-page .filter-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-shell-page .filter-grid .form-actions,
    .admin-shell-page .filter-grid .button {
        width: 100%;
    }

    .admin-shell-page .catalog-filter__actions,
    .admin-shell-page .report-filter__actions {
        grid-column: auto;
        justify-content: stretch;
    }

    .admin-shell-page .catalog-filter__actions .button,
    .admin-shell-page .report-filter__actions .button,
    .admin-shell-page .form-actions .button,
    .admin-shell-page .field-group.button-row .button {
        flex: 1 1 140px;
    }

    .admin-shell-page .data-table td.table-actions {
        flex-wrap: wrap;
        white-space: normal;
    }
}

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

@media (min-width: 701px) and (max-width: 1100px) {
    .pos-workspace {
        grid-template-columns: minmax(0, 1.45fr) minmax(320px, .85fr);
        gap: 14px;
    }

    .pos-kiosk-page .pos-workspace {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 320px);
    }

    .pos-product-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 950px) {
    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .report-filter--sales,
    .report-filter--inventory {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .pos-page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .pos-page-heading .table-actions {
        display: flex;
        width: 100%;
        flex-wrap: wrap;
        gap: 10px;
        white-space: normal;
    }

    .pos-page-heading .table-actions .button {
        flex: 1 1 180px;
    }

    .pos-heading-tools {
        width: 100%;
        flex-basis: auto;
        justify-content: flex-start;
        margin-left: 0;
    }

    .pos-heading-tools__management,
    .pos-heading-tools__actions {
        justify-content: flex-start;
    }

    .cash-shift-grid--single .cash-shift-current-layout {
        grid-template-columns: minmax(0, 1fr);
    }

}

@media (max-width: 900px) {
    .pos-kiosk-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .pos-kiosk-nav {
        position: static;
        display: grid;
        min-height: 0;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
        padding: 9px;
    }

    .pos-kiosk-shortcuts {
        display: none;
    }

    .pos-kiosk-nav__heading {
        padding: 0;
    }

    .pos-kiosk-nav__heading .eyebrow,
    .pos-kiosk-brand > span:last-child {
        display: none;
    }

    .pos-kiosk-nav__links {
        display: flex;
        gap: 6px;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .pos-kiosk-nav__links a {
        min-height: 40px;
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .pos-kiosk-account {
        display: flex;
        align-items: center;
        gap: 6px;
        margin: 0;
        padding: 0;
        border: 0;
    }

    .pos-kiosk-account__identity {
        display: none;
    }

    .pos-kiosk-account .button {
        min-height: 36px;
        padding: 6px 9px;
    }

    .pos-kiosk-page .pos-catalog,
    .pos-kiosk-page .pos-cart {
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 700px) {
    .topbar__inner {
        align-items: flex-start;
        flex-wrap: wrap;
        padding-block: 10px;
    }

    .account {
        width: 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 8px;
    }

    .account__identity {
        max-width: min(52vw, 220px);
        margin-right: auto;
    }

    .account__name,
    .account__context {
        max-width: min(52vw, 220px);
    }

    .page {
        padding-block: 28px;
    }

    .cashier-shell-page {
        width: min(100% - 20px, 1320px);
        padding-block: 10px 20px;
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-heading > .button {
        width: 100%;
        text-align: center;
    }

    .pos-heading-tools {
        grid-template-columns: minmax(0, 1fr);
    }

    .pos-heading-tools__management {
        grid-column: auto;
        justify-self: stretch;
    }

    .pos-heading-tools__actions {
        justify-content: flex-start;
    }

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

    .dashboard-grid,
    .cash-shift-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .cash-shift-card {
        padding: 16px;
    }

    .cash-shift-metrics,
    .cash-shift-open-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .cash-shift-open-form .button {
        grid-column: auto;
    }

    .cash-shift-close-zone__heading {
        display: grid;
    }

    .cash-shift-step {
        text-align: left;
    }

    .field-span-2 {
        grid-column: auto;
    }

    .qr-result-grid {
        grid-template-columns: 1fr;
    }

    .input-action {
        flex-direction: column;
    }

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

    .field-group--full {
        grid-column: auto;
    }

    .filter-form {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
    .filter-form select,
    .filter-form .button {
        width: 100%;
    }

    .catalog-filter {
        grid-template-columns: 1fr;
    }

    .catalog-filter__actions,
    .catalog-filter__actions .button {
        width: 100%;
    }

    .catalog-filter__actions .button {
        text-align: center;
    }

    .facts div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .dashboard-heading__actions,
    .dashboard-heading__actions .button,
    .report-filter__actions,
    .report-filter__actions .button {
        width: 100%;
    }

    .dashboard-heading__actions .button,
    .report-filter__actions .button {
        text-align: center;
    }

    .metric-grid,
    .report-filter--sales,
    .report-filter--inventory,
    .store-catalog-filter,
    .form--grid,
    .location-grid,
    .store-product-grid,
    .checkout-grid,
    .order-detail-grid,
    .order-admin-grid,
    .notification-health-grid,
    .store-feature-grid,
    .store-hero {
        grid-template-columns: 1fr;
    }

    .order-filter {
        grid-template-columns: 1fr;
    }

    .notification-filter {
        grid-template-columns: 1fr;
    }

    .store-hero {
        min-height: auto;
        padding: 32px 22px;
    }

    .store-hero__card {
        text-align: left;
    }

    .store-product-card__media {
        height: 150px;
        max-height: 150px;
    }

    .store-area-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .store-area-panel form,
    .store-area-panel select,
    .store-area-panel button {
        width: 100%;
    }

    .store-add-form .button,
    .store-add-form input,
    .cart-quantity {
        min-height: 48px;
    }

    .store-cart-table-wrap {
        overflow: visible;
    }

    .store-cart-table,
    .store-cart-table tbody,
    .store-cart-table tr,
    .store-cart-table td {
        display: block;
        width: 100%;
    }

    .store-cart-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .store-cart-table tbody tr {
        padding: 12px 0;
        border-bottom: 1px solid var(--line);
    }

    .store-cart-table tbody tr:last-child {
        border-bottom: 0;
    }

    .store-cart-table td,
    .store-cart-table tbody tr:last-child td {
        display: grid;
        grid-template-columns: minmax(92px, .38fr) minmax(0, 1fr);
        gap: 12px;
        align-items: center;
        padding: 8px 0;
        border-bottom: 0;
    }

    .store-cart-table td::before {
        color: var(--muted);
        content: attr(data-label);
        font-size: 12px;
        font-weight: 800;
        letter-spacing: .04em;
        text-transform: uppercase;
    }

    .store-cart-table .button {
        width: 100%;
        min-height: 44px;
    }

    .form-actions--full,
    .location-fields {
        grid-column: auto;
    }

    .pos-workspace,
    .pos-kiosk-page .pos-workspace {
        grid-template-columns: 1fr;
    }

    .pos-cart {
        position: static;
        max-height: none;
        overflow: visible;
    }

    .pos-kiosk-page .pos-catalog,
    .pos-kiosk-page .pos-cart {
        max-height: none;
        overflow: visible;
    }

    .pos-cart-line__controls {
        grid-column: 2 / 4;
        grid-row: 2;
        flex-wrap: wrap;
    }

    .pos-cart-line__step,
    .pos-cart-line__controls input,
    .pos-cart-line__controls .button--danger-soft {
        min-height: 40px;
    }

    .pos-product-grid {
        grid-template-columns: 1fr;
    }

    .pos-page-heading .button {
        width: 100%;
        text-align: center;
    }

    .pos-page-heading .table-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .body--pos-kiosk .pos-heading-tools .button {
        width: auto;
        flex: 0 0 auto;
        text-align: center;
    }
}

@media print {
    @page {
        size: auto;
        margin: 0;
    }

    html,
    body {
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0;
        background: #fff;
    }

    .topbar,
    .skip-link,
    .pos-kiosk-nav,
    .one-time-secret > .alert,
    .one-time-secret .panel,
    .one-time-secret .back-link,
    .qr-card .form-help {
        display: none !important;
    }

    .pos-kiosk-shell {
        display: block;
    }

    .pos-kiosk-main {
        width: 100%;
    }

    .page,
    .shell {
        width: 100%;
        padding: 0;
    }

    .qr-result-grid {
        display: block;
        margin: 0;
    }

    .qr-card {
        width: 70mm;
        margin: 0 auto;
        padding: 4mm;
        border: 0;
        break-inside: avoid;
    }

    .cashier-qr-print-identity,
    .vip-qr-print-identity {
        display: grid;
        gap: 4px;
        margin-bottom: 5mm;
        text-align: center;
    }

    .cashier-qr-print-identity strong,
    .vip-qr-print-identity strong {
        font-size: 18px;
    }

    .cashier-qr-print-identity span,
    .cashier-qr-print-identity small,
    .vip-qr-print-identity small {
        overflow-wrap: anywhere;
    }

    .qr-card__brand-logo {
        width: 14mm;
        height: 14mm;
        margin-bottom: 2mm;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .receipt-page {
        width: min(80mm, 100%);
        margin-inline: auto;
    }

    .receipt-actions,
    .no-print {
        display: none !important;
    }

    .receipt {
        width: 100%;
        max-width: 80mm;
        margin-inline: auto;
        padding: 5mm;
        border: 0;
        box-shadow: none;
    }

    .receipt__brand-logo {
        width: 14mm;
        height: 14mm;
    }

    .receipt__header,
    .receipt__meta,
    .receipt__totals,
    .receipt__payment,
    .receipt__lookup-code,
    .receipt__note,
    .receipt__status,
    .receipt__footer,
    .receipt__items tr {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .receipt__items thead {
        display: table-header-group;
    }

    .receipt__items tfoot {
        display: table-footer-group;
    }
}
