:root {
    --bg: #f4f1ec;
    --surface: #ffffff;
    --surface-strong: #ffffff;
    --surface-alt: #faf8f5;
    --sidebar: #1f1f1f;
    --ink: #1f1f1f;
    --muted: #757575;
    --line: #e8e3dc;
    --shadow: 0 10px 24px rgba(23, 23, 23, 0.05);
    --shadow-soft: 0 4px 12px rgba(23, 23, 23, 0.04);
    --accent: #8a5a3c;
    --accent-deep: #6f4730;
    --accent-soft: #f3ebe6;
    --olive: #5e6c60;
    --teal: #5b7472;
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
}

.billing-item-row {
  cursor: pointer;
}

.billing-item-row:hover td {
  background-color: rgba(30, 64, 175, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    touch-action: manipulation;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: "Segoe UI", Tahoma, sans-serif;
    touch-action: manipulation;
}

button,
a,
input,
select,
textarea,
label {
    touch-action: manipulation;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-title,
.login-title,
.login-form-title,
.page-heading h1 {
    font-family: Georgia, "Times New Roman", serif;
}

a {
    text-decoration: none;
    color: inherit;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.7rem;
    font-weight: 700;
    color: #8a8178;
}

.app-shell {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    width: 284px;
    padding: 1rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    color: #f4f4f4;
    background: var(--sidebar);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.brand-panel {
    padding: 0 0.15rem 0.7rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: #ffffff;
}

.brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    box-shadow: none;
}

.brand-title {
    font-size: 1.05rem;
    font-weight: 700;
}

.brand-subtitle {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.66);
}

.sidebar-section-label {
    padding: 0 0.2rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.42);
    margin-bottom: 0.15rem;
}

.sidebar-nav {
    display: grid;
    gap: 0.18rem;
}

.sidebar-link,
.sidebar-sublink {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 42px;
    padding: 0.62rem 0.8rem;
    border-radius: 12px;
    transition: background-color 0.16s ease, color 0.16s ease;
}

.sidebar-link {
    color: rgba(255, 255, 255, 0.86);
}

.sidebar-link:hover,
.sidebar-link.is-active,
.sidebar-toggle.is-active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-pill {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #d5a98d;
}

.sidebar-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sidebar-copy strong {
    font-size: 0.92rem;
    font-weight: 600;
}

.sidebar-toggle {
    width: 100%;
    border: 0;
    text-align: left;
    background: transparent;
}

.sidebar-caret {
    margin-left: auto;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid rgba(255, 255, 255, 0.7);
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.7);
    transform: rotate(45deg);
    transition: transform 0.16s ease;
}

.sidebar-group.is-open .sidebar-caret {
    transform: rotate(225deg);
}

.sidebar-subnav {
    display: grid;
    gap: 0.15rem;
    padding: 0.15rem 0 0.2rem 1.55rem;
}

.sidebar-sublink {
    min-height: 34px;
    padding: 0.45rem 0.72rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.84rem;
}

.sidebar-sublink:hover,
.sidebar-sublink.is-active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 0.45rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-sidebar {
    background: #202020;
    color: #ffffff;
}

.main-panel {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1.2rem 0;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.topbar-toggle {
    border-radius: 12px;
    border-color: var(--line);
    background: #ffffff;
}

.topbar-date {
    font-size: 0.98rem;
    font-weight: 700;
}

.topbar-chip,
.user-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0.72rem 0.9rem;
    box-shadow: none;
}

.topbar-chip {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.chip-label {
    font-size: 0.72rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.user-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-weight: 800;
    background: var(--accent);
}

.user-name {
    font-weight: 700;
}

.user-role {
    font-size: 0.84rem;
    color: var(--muted);
}

.content-area {
    padding: 0.85rem 1.2rem 1rem;
}

.app-footer {
    margin-top: auto;
    padding: 0 1.2rem 0.9rem;
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.84rem;
}

.app-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.app-footer-logo {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.stack-grid {
    display: grid;
    gap: 0.7rem;
}

.subtle-stat {
    color: var(--muted);
    font-size: 0.88rem;
}

.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.page-heading h1 {
    margin: 0.2rem 0 0;
    font-size: clamp(1.9rem, 2.6vw, 2.5rem);
    font-weight: 700;
}

.page-heading p {
    margin: 0.3rem 0 0;
    max-width: 760px;
    color: var(--muted);
}

.app-alert {
    border-radius: 14px;
    border: 0;
    box-shadow: none;
}

.panel-card,
.metric-card,
.table-shell,
.form-shell {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: none;
}

.panel-card,
.table-shell,
.form-shell {
    padding: 1rem;
}

.metric-card {
    height: 100%;
    padding: 0.95rem;
    background: var(--surface);
}

.metric-topline {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 0.8rem;
}

.metric-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.metric-value {
    margin-top: 0.45rem;
    font-size: clamp(1.55rem, 2.4vw, 2rem);
    font-weight: 800;
}

.metric-note {
    color: var(--muted);
    font-size: 0.88rem;
}

.metric-accent {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--accent);
}

.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
    gap: 0.9rem;
    background: var(--surface);
}

.dashboard-hero h2 {
    margin: 0.32rem 0 0.45rem;
    font-size: clamp(1.7rem, 2.3vw, 2.2rem);
}

.dashboard-hero p {
    margin: 0;
    color: var(--muted);
    max-width: 42rem;
}

.hero-tiles {
    display: grid;
    gap: 0.5rem;
}

.hero-tile,
.queue-item,
.mini-kpi {
    padding: 0.8rem 0.9rem;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--surface-alt);
    box-shadow: none;
}

.hero-tile strong {
    display: block;
    margin-top: 0.55rem;
    font-size: 1.25rem;
}

.queue-stack {
    display: grid;
    gap: 0.45rem;
}

.queue-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.queue-item strong,
.mini-kpi strong {
    font-size: 1.05rem;
}

.chart-placeholder {
    min-height: 250px;
    display: grid;
    align-items: end;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.75rem;
    padding-bottom: 1.55rem;
}

.chart-bar {
    min-height: 72px;
    position: relative;
    border-radius: 14px 14px 8px 8px;
    background: #d7c1b3;
}

.chart-bar span {
    position: absolute;
    bottom: -1.55rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.76rem;
    color: var(--muted);
}

.quick-actions,
.page-actions,
.toolbar-actions,
.pill-filter-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-premium {
    border: 0;
    color: #ffffff;
    font-weight: 700;
    border-radius: 14px;
    padding: 0.78rem 1.05rem;
    background: var(--accent);
    box-shadow: none;
}

.btn-premium:hover,
.btn-premium:focus {
    color: #ffffff;
    background: var(--accent-deep);
}

.btn-quickpay {
    border: 0;
    color: #ffffff;
    font-weight: 700;
    border-radius: 14px;
    padding: 0.78rem 1.05rem;
    background: linear-gradient(135deg, #1ea66a, #158a56);
    box-shadow: none;
}

.btn-quickpay:hover,
.btn-quickpay:focus {
    color: #ffffff;
    background: linear-gradient(135deg, #19925d, #12764a);
}

.btn-outline-premium {
    font-weight: 700;
    border-radius: 14px;
    color: var(--accent-deep);
    background: transparent;
    border: 1px solid #d8c8bc;
}

.btn-outline-premium:hover,
.btn-outline-premium:focus {
    color: var(--accent-deep);
    background: var(--accent-soft);
}

.status-badge,
.chip-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0.34rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.badge-soft-info { background: #edf3f2; color: #47615e; }
.badge-soft-primary { background: #f3ebe6; color: #6f4730; }
.badge-soft-warning { background: #f7f0e5; color: #8b6b43; }
.badge-soft-success { background: #edf3ee; color: #4f6153; }
.badge-soft-emerald { background: #edf3ee; color: #4f6153; }
.badge-soft-danger { background: #f8e9e7; color: #8e4a42; }
.badge-soft-secondary { background: #f1efec; color: #6f6b67; }
.badge-soft-coral { background: #f5ece8; color: #8a5a3c; }
.badge-soft-aqua { background: #ecf2f2; color: #55706d; }
.badge-soft-olive { background: #eef2ee; color: #58685b; }

.table-clean {
    margin: 0;
    vertical-align: middle;
}

.table-clean th {
    border-bottom-color: var(--line);
    color: #7b756f;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.table-clean td {
    border-color: #f0ece7;
}

.table-compact td,
.table-compact th {
    padding-top: 0.72rem;
    padding-bottom: 0.72rem;
}

.filter-bar,
.form-grid,
.pos-toolbar {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.65rem;
}

.filter-bar > *,
.form-grid > * {
    grid-column: span 6;
}

.filter-bar .span-3,
.pos-toolbar .mid {
    grid-column: span 3;
}

.filter-bar .span-4,
.pos-toolbar .wide {
    grid-column: span 4;
}

.form-grid .col-12,
.pos-toolbar .col-12 {
    grid-column: span 12;
}

.input-shell,
.select-shell,
.textarea-shell {
    border-radius: 14px;
    border: 1px solid #d9d4cd;
    background: #ffffff;
    box-shadow: none;
}

.input-shell:focus,
.select-shell:focus,
.textarea-shell:focus {
    border-color: #c3aa99;
    box-shadow: 0 0 0 0.2rem rgba(138, 90, 60, 0.08);
}

.pos-layout,
.invoice-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(340px, 0.92fr);
    gap: 0.9rem;
    align-items: start;
}

.service-switch {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
}

.service-card,
.category-pill {
    border: 1px solid #ded8d1;
    background: #ffffff;
    padding: 0.78rem 0.95rem;
    border-radius: 14px;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.16s ease, border-color 0.16s ease;
}

.service-card.is-active,
.service-card:hover,
.category-pill.is-active,
.category-pill:hover {
    background: var(--accent-soft);
    border-color: #d5b9a8;
    color: var(--accent-deep);
}

.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
}

.menu-item-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #ffffff;
    box-shadow: none;
    transition: transform 0.14s ease, border-color 0.14s ease;
}

.menu-item-card:hover {
    transform: translateY(-1px);
    border-color: #d7c7bc;
}

.menu-item-media {
    height: 112px;
    display: flex;
    align-items: end;
    justify-content: start;
    padding: 0.9rem;
    color: #ffffff;
    font-size: 1.12rem;
    font-weight: 800;
}

.menu-item-body {
    padding: 0.9rem;
}

.menu-item-title {
    font-size: 0.98rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
}

.menu-item-meta {
    min-height: 40px;
    font-size: 0.88rem;
    color: var(--muted);
}

.menu-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.65rem;
}

.price-tag {
    font-size: 0.98rem;
    font-weight: 800;
}

.cart-panel {
    position: sticky;
    top: 1rem;
}

.cart-items {
    display: grid;
    gap: 0.55rem;
    max-height: 340px;
    overflow-y: auto;
    padding-right: 0.1rem;
}

.cart-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem;
    align-items: start;
    padding: 0.82rem;
    border-radius: 14px;
    background: var(--surface-alt);
}

.cart-qty {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: var(--accent-deep);
    background: var(--accent-soft);
}

.cart-meta h6 {
    margin: 0 0 0.15rem;
    font-weight: 800;
}

.cart-meta p {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.summary-list {
    display: grid;
    gap: 0.48rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted);
}

.summary-row.total {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px dashed #d8d1ca;
    color: var(--ink);
    font-size: 1.08rem;
    font-weight: 800;
}

.checkout-actions {
    display: grid;
    gap: 0.5rem;
}

.empty-state {
    text-align: center;
    padding: 1.8rem 1rem;
    color: var(--muted);
    border-radius: 16px;
    border: 1px dashed #d9d1c8;
    background: var(--surface-alt);
}

.receipt-preview {
    border: 1px dashed #ddd5ce;
    border-radius: 16px;
    padding: 0.95rem;
    background: #ffffff;
}

.modal-content,
.offcanvas {
    border: 0;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.modal-header,
.modal-footer {
    border-color: #f1ece7;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem;
    background: #ebe7e1;
}

.login-shell {
    width: min(1140px, 100%);
    display: grid;
    grid-template-columns: minmax(360px, 1.05fr) minmax(320px, 0.95fr);
    border-radius: 24px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.login-panel {
    padding: clamp(1.8rem, 4vw, 2.7rem);
}

.login-branding {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.4rem;
    color: #ffffff;
    background: #262321;
}

.login-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.9rem;
}

.login-logo {
    width: 74px;
    height: 74px;
    margin-bottom: 0.85rem;
}

.login-title {
    margin: 0.55rem 0 0.35rem;
    font-size: clamp(2rem, 3vw, 2.7rem);
    font-weight: 700;
}

.login-copy {
    margin: 0;
    max-width: 34rem;
    color: rgba(255, 255, 255, 0.72);
}

.login-form-title {
    margin: 0;
    font-size: clamp(1.7rem, 2.3vw, 2.1rem);
    font-weight: 700;
}

.login-form-copy {
    margin: 0.3rem 0 0;
    color: var(--muted);
}

.login-stat-grid {
    display: grid;
    gap: 0.6rem;
}

.login-stat-card {
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
}

.login-stat-card span {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.58);
}

.login-stat-card strong {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.98rem;
}

.login-stat-card p {
    margin: 0.38rem 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
}

.login-demo-box {
    display: grid;
    gap: 0.2rem;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    background: var(--surface-alt);
    border: 1px solid var(--line);
    color: var(--muted);
}

.login-demo-box strong {
    color: var(--ink);
}

.row.g-3 {
    --bs-gutter-y: 0.8rem;
    --bs-gutter-x: 0.8rem;
}

@media (min-width: 1200px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 1030;
        overflow: hidden;
    }

    .main-panel {
        margin-left: 284px;
        min-height: 100vh;
    }
}

@media (max-width: 1199.98px) {
    .content-area,
    .topbar,
    .app-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .pos-layout,
    .invoice-shell,
    .dashboard-hero {
        grid-template-columns: 1fr;
    }

    .cart-panel {
        position: static;
    }
}

@media (max-width: 991.98px) {
    .filter-bar > *,
    .form-grid > *,
    .filter-bar .span-3,
    .filter-bar .span-4,
    .pos-toolbar .wide,
    .pos-toolbar .mid {
        grid-column: span 12;
    }

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

@media (max-width: 767.98px) {
    .topbar,
    .page-heading,
    .app-footer {
        flex-direction: column;
        align-items: start;
    }

    .content-area {
        padding-bottom: 4rem;
    }

    .item-grid {
        grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    }

    .chart-placeholder {
        gap: 0.55rem;
    }

    .login-page {
        padding: 1rem;
    }

    .login-panel {
        padding: 1.5rem;
    }
}

/* Multi-business sign-in */
.pos-login-credentials {
    width: min(1040px, 100%);
    grid-template-columns: minmax(150px, .72fr) minmax(220px, 1fr) minmax(220px, 1fr) auto;
}

.pos-business-code-field input {
    text-transform: uppercase;
    font-weight: 750;
    letter-spacing: .04em;
}

@media (max-width: 991.98px) {
    .pos-login-credentials {
        grid-template-columns: minmax(150px, .7fr) 1fr 1fr;
    }

    .pos-login-submit {
        grid-column: 1 / -1;
        min-height: 44px;
    }
}

@media (max-width: 767.98px) {
    .pos-login-credentials {
        grid-template-columns: 1fr;
    }
}

/* Split-screen, device-keyboard login */
.auth-login-root,
.auth-login-page {
    min-height: 100%;
}

.auth-login-page {
    margin: 0;
    min-height: 100dvh;
    overflow-x: hidden;
    color: #17211b;
    background: #f5f7f5;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.auth-login-shell {
    min-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(360px, 39%) minmax(0, 61%);
}

.auth-login-panel {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 4vw, 4.5rem);
    background:
        radial-gradient(circle at 0 100%, rgba(38, 181, 90, .1), transparent 28%),
        #f3f5f3;
    box-shadow: 16px 0 45px rgba(30, 54, 39, .06);
}

.auth-login-panel-inner {
    width: min(100%, 410px);
}

.auth-login-panel,
.auth-login-panel-inner,
.auth-login-form,
.auth-field,
.auth-input-shell,
.auth-shift-fieldset,
.auth-shift-grid,
.auth-form-row,
.auth-login-submit {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.auth-login-brand {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    color: #17211b;
    text-decoration: none;
}

.auth-login-brand:hover {
    color: #17211b;
}

.auth-login-brand img {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    object-fit: cover;
    filter: drop-shadow(0 8px 12px rgba(25, 73, 41, .15));
}

.auth-login-brand span {
    display: grid;
    line-height: 1.1;
}

.auth-login-brand strong {
    font-size: 1rem;
    font-weight: 800;
}

.auth-login-brand small {
    margin-top: .3rem;
    color: #748078;
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.auth-login-heading {
    margin: clamp(2rem, 5vh, 3.5rem) 0 1.75rem;
}

.auth-login-eyebrow {
    display: block;
    margin-bottom: .65rem;
    color: #2fa84f;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.auth-login-heading h1 {
    margin: 0;
    color: #121914;
    font-size: clamp(2rem, 3.2vw, 3rem);
    font-weight: 820;
    letter-spacing: -.045em;
}

.auth-login-heading p {
    max-width: 340px;
    margin: .75rem 0 0;
    color: #68736c;
    font-size: .94rem;
    line-height: 1.65;
}

.auth-login-alert {
    margin: 0 0 1rem;
    border: 0;
    border-radius: 12px;
    font-size: .84rem;
}

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

.auth-field {
    display: grid;
    gap: .48rem;
    margin: 0;
}

.auth-field > span:first-child,
.auth-shift-fieldset legend {
    color: #27322b;
    font-size: .76rem;
    font-weight: 750;
}

.auth-input-shell {
    min-height: 50px;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 0 .95rem;
    border: 1px solid #dce3de;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(37, 61, 45, .035);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.auth-input-shell:focus-within {
    border-color: #35b85b;
    box-shadow: 0 0 0 4px rgba(53, 184, 91, .12), 0 8px 24px rgba(37, 61, 45, .06);
    transform: translateY(-1px);
}

.auth-input-shell svg {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    fill: none;
    stroke: #66736a;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.auth-input-shell input {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    height: 46px;
    padding: 0;
    border: 0;
    outline: 0;
    color: #17211b;
    background: transparent;
    font-size: .9rem;
}

.auth-input-shell input::placeholder {
    color: #a0aaa3;
}

.auth-shift-fieldset {
    min-width: 0;
    margin: .1rem 0 0;
    padding: 0;
    border: 0;
}

.auth-shift-fieldset legend {
    width: auto;
    margin: 0 0 .48rem;
}

.auth-shift-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .45rem;
    padding: .28rem;
    border: 1px solid #dce3de;
    border-radius: 11px;
    background: #e9eeea;
}

.auth-shift-choice {
    margin: 0;
    cursor: pointer;
}

.auth-shift-choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.auth-shift-choice span {
    min-height: 37px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #667269;
    font-size: .76rem;
    font-weight: 750;
    transition: .2s ease;
}

.auth-shift-choice input:checked + span {
    color: #207b3c;
    background: #fff;
    box-shadow: 0 4px 14px rgba(34, 65, 44, .1);
}

.auth-shift-choice input:focus-visible + span {
    outline: 3px solid rgba(53, 184, 91, .2);
}

.auth-form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: .9rem;
}

.auth-float-field .auth-input-shell {
    min-height: 46px;
}

.auth-float-field .auth-input-shell input {
    height: 42px;
}

.auth-currency {
    color: #2d8d49;
    font-size: .9rem;
    font-weight: 800;
}

.auth-remember {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0;
    color: #69746c;
    cursor: pointer;
    font-size: .75rem;
    white-space: nowrap;
}

.auth-remember input {
    width: 16px;
    height: 16px;
    accent-color: #2daf51;
}

.auth-login-submit {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    margin-top: .25rem;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, #30b653, #239b44);
    box-shadow: 0 13px 25px rgba(37, 159, 70, .2);
    font-size: .88rem;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.auth-login-submit:hover,
.auth-login-submit:focus-visible {
    color: #fff;
    filter: brightness(1.03);
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(37, 159, 70, .27);
}

.auth-login-submit svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.auth-login-support {
    margin: 1.2rem 0 0;
    color: #879089;
    font-size: .72rem;
    text-align: center;
}

.auth-login-showcase {
    position: relative;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2.2rem, 5vw, 5rem);
    background:
        radial-gradient(circle at 86% 10%, rgba(51, 188, 93, .13), transparent 28%),
        radial-gradient(circle at 12% 92%, rgba(255, 196, 62, .18), transparent 24%),
        #fff;
}

.auth-login-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .45;
    background-image: radial-gradient(#dce8df 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
}

.showcase-copy {
    position: relative;
    z-index: 2;
    max-width: 520px;
    margin: 0 auto clamp(1.5rem, 4vh, 3rem);
    text-align: center;
}

.showcase-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .42rem .7rem;
    border: 1px solid #d9eadf;
    border-radius: 999px;
    color: #367247;
    background: rgba(246, 252, 247, .9);
    font-size: .68rem;
    font-weight: 750;
}

.showcase-badge i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #31b956;
    box-shadow: 0 0 0 4px rgba(49, 185, 86, .12);
}

.showcase-copy h2 {
    margin: .9rem 0 .6rem;
    color: #162019;
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 850;
    letter-spacing: -.055em;
    line-height: .98;
}

.showcase-copy p {
    max-width: 430px;
    margin: 0 auto;
    color: #6d7870;
    font-size: clamp(.82rem, 1.2vw, 1rem);
    line-height: 1.6;
}

.showcase-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
}

.showcase-orb-one {
    width: 170px;
    height: 170px;
    top: -70px;
    right: -50px;
    background: rgba(50, 185, 88, .1);
}

.showcase-orb-two {
    width: 120px;
    height: 120px;
    bottom: -45px;
    left: 8%;
    background: rgba(255, 190, 46, .15);
}

.showcase-device {
    position: relative;
    z-index: 2;
    width: min(88%, 760px);
    margin: 0 auto;
    padding: 13px;
    border: 3px solid #222a24;
    border-radius: 28px;
    background: #111612;
    box-shadow: 0 35px 65px rgba(29, 52, 37, .2), 0 5px 12px rgba(29, 52, 37, .12);
    transform: perspective(1300px) rotateX(1.5deg);
}

.showcase-device-camera {
    position: absolute;
    top: 5px;
    left: 50%;
    width: 5px;
    height: 5px;
    z-index: 4;
    border-radius: 50%;
    background: #3b453e;
}

.showcase-screen {
    min-height: 330px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 52px 1fr;
    border-radius: 16px;
    background: #f5f7f5;
}

.showcase-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 14px 0;
    background: #17251b;
}

.showcase-sidebar img {
    width: 29px;
    height: 29px;
    border-radius: 8px;
    object-fit: cover;
}

.showcase-sidebar span {
    width: 17px;
    height: 17px;
    border-radius: 5px;
    background: #344338;
}

.showcase-sidebar span.is-active {
    background: #35bd5b;
    box-shadow: 0 0 0 5px rgba(53, 189, 91, .13);
}

.showcase-app {
    min-width: 0;
    padding: 17px;
}

.showcase-app header {
    display: grid;
    grid-template-columns: 1fr 140px 25px;
    align-items: center;
    gap: 12px;
}

.showcase-app header div {
    display: grid;
}

.showcase-app header small {
    color: #879188;
    font-size: 7px;
}

.showcase-app header strong {
    color: #1c2720;
    font-size: 12px;
}

.showcase-search {
    padding: 7px 10px;
    border-radius: 7px;
    color: #9aa39c;
    background: #fff;
    font-size: 7px;
}

.showcase-app header i {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #37b95b, #a5db63);
}

.showcase-tabs {
    display: flex;
    gap: 20px;
    margin: 17px 0 13px;
    color: #8a948d;
    font-size: 7px;
}

.showcase-tabs b {
    color: #279949;
}

.showcase-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 155px;
    gap: 12px;
}

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

.showcase-menu-grid article {
    position: relative;
    min-width: 0;
    min-height: 104px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-content: end;
    gap: 3px;
    padding: 10px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(32, 55, 40, .045);
}

.showcase-menu-grid img {
    position: absolute;
    top: 9px;
    left: 50%;
    width: 48px;
    height: 48px;
    transform: translateX(-50%);
}

.showcase-menu-grid strong {
    overflow: hidden;
    color: #273129;
    font-size: 8px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.showcase-menu-grid span {
    color: #2ba34d;
    font-size: 8px;
    font-weight: 800;
}

.showcase-menu-grid button {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: end;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    color: #fff;
    background: #31b755;
    font-size: 12px;
}

.showcase-order {
    padding: 12px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(32, 55, 40, .05);
}

.showcase-order > div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 17px;
}

.showcase-order strong {
    color: #263129;
    font-size: 9px;
}

.showcase-order small,
.showcase-order p {
    color: #89928b;
    font-size: 7px;
}

.showcase-order p {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 10px;
}

.showcase-order b {
    color: #2d3730;
}

.showcase-order hr {
    margin: 13px 0;
    border-color: #edf0ed;
}

.showcase-order .total {
    color: #29352d;
    font-size: 9px;
}

.showcase-order > button {
    width: 100%;
    margin-top: 7px;
    padding: 8px;
    border: 0;
    border-radius: 6px;
    color: #fff;
    background: #30ad50;
    font-size: 7px;
    font-weight: 750;
}

.showcase-stat {
    position: absolute;
    z-index: 3;
    min-width: 135px;
    display: grid;
    padding: 12px 14px;
    border: 1px solid rgba(217, 232, 221, .9);
    border-radius: 13px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 15px 35px rgba(29, 52, 37, .12);
    backdrop-filter: blur(12px);
}

.showcase-stat span {
    color: #7d8980;
    font-size: 8px;
}

.showcase-stat strong {
    margin: 2px 0;
    color: #1c2920;
    font-size: 21px;
}

.showcase-stat small {
    color: #2eaa50;
    font-size: 7px;
}

.showcase-stat-orders {
    right: 4%;
    bottom: 8%;
}

.showcase-stat-tables {
    left: 5%;
    bottom: 16%;
}

.showcase-stat-tables strong small {
    color: #8b958d;
    font-size: 10px;
}

@media (max-width: 1199.98px) {
    .auth-login-shell {
        grid-template-columns: minmax(350px, 44%) minmax(0, 56%);
    }

    .auth-login-panel {
        padding: 2rem clamp(1.6rem, 4vw, 3.25rem);
    }

    .showcase-copy h2 {
        font-size: clamp(2rem, 4.3vw, 3.2rem);
    }

    .showcase-device {
        width: 96%;
    }

    .showcase-content {
        grid-template-columns: minmax(0, 1fr) 125px;
    }
}

@media (max-width: 899.98px) and (orientation: portrait) {
    .auth-login-shell {
        grid-template-columns: 1fr;
    }

    .auth-login-panel {
        min-height: 100dvh;
        padding: max(2rem, env(safe-area-inset-top)) max(1.5rem, env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom)) max(1.5rem, env(safe-area-inset-left));
    }

    .auth-login-panel-inner {
        width: min(100%, 480px);
    }

    .auth-login-showcase {
        display: none;
    }
}

@media (max-width: 639.98px) {
    .auth-login-panel {
        align-items: flex-start;
        min-height: 100dvh;
        padding: max(1.25rem, env(safe-area-inset-top)) max(1.15rem, env(safe-area-inset-right)) max(1.5rem, env(safe-area-inset-bottom)) max(1.15rem, env(safe-area-inset-left));
    }

    .auth-login-brand img {
        width: 43px;
        height: 43px;
        border-radius: 12px;
    }

    .auth-login-heading {
        margin: 1.65rem 0 1.25rem;
    }

    .auth-login-heading h1 {
        font-size: 2rem;
    }

    .auth-login-heading p {
        margin-top: .5rem;
        font-size: .84rem;
    }

    .auth-login-form {
        gap: .8rem;
    }

    .auth-shift-choice {
        min-width: 0;
    }

    .auth-shift-choice span {
        padding: 0 .2rem;
        font-size: .7rem;
    }

    .auth-form-row {
        grid-template-columns: 1fr;
        gap: .3rem;
    }

    .auth-remember {
        min-height: 34px;
    }

    .auth-login-showcase {
        display: none;
    }

    .pwa-install-button {
        right: max(14px, env(safe-area-inset-right));
        bottom: max(14px, env(safe-area-inset-bottom));
    }
}

@media (max-height: 620px) and (orientation: landscape) {
    .auth-login-shell {
        grid-template-columns: minmax(340px, 48%) minmax(0, 52%);
    }

    .auth-login-panel {
        align-items: flex-start;
        min-height: 100dvh;
        overflow-y: auto;
        padding: 1.15rem 2rem;
    }

    .auth-login-brand img {
        width: 38px;
        height: 38px;
    }

    .auth-login-brand small,
    .auth-login-eyebrow,
    .auth-login-support {
        display: none;
    }

    .auth-login-heading {
        margin: .8rem 0 .65rem;
    }

    .auth-login-heading h1 {
        font-size: 1.75rem;
    }

    .auth-login-heading p {
        margin-top: .25rem;
        font-size: .76rem;
    }

    .auth-login-form {
        gap: .55rem;
    }

    .auth-field {
        gap: .25rem;
    }

    .auth-input-shell,
    .auth-login-submit {
        min-height: 42px;
    }

    .auth-input-shell input {
        height: 38px;
    }

    .auth-shift-fieldset legend {
        margin-bottom: .25rem;
    }

    .auth-shift-choice span {
        min-height: 31px;
    }

    .auth-form-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .auth-float-field .auth-input-shell {
        min-height: 40px;
    }

    .auth-float-field .auth-input-shell input {
        height: 36px;
    }

    .showcase-copy {
        margin-bottom: 1rem;
    }

    .showcase-copy p,
    .showcase-stat {
        display: none;
    }

    .showcase-copy h2 {
        margin-top: .55rem;
        font-size: 2rem;
    }

    .showcase-device {
        width: min(94%, 560px);
    }

    .showcase-screen {
        min-height: 250px;
    }

    .showcase-menu-grid article {
        min-height: 80px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-input-shell,
    .auth-login-submit,
    .auth-shift-choice span {
        transition: none;
    }
}

/* iPad Air / tablet landscape: consume the complete emulated viewport. */
@media (min-width: 768px) and (max-width: 1366px) and (orientation: landscape) {
    .pos-login-root,
    .pos-login-page,
    .pos-login-terminal,
    .pos-login-form,
    .pos-login-hero {
        width: 100vw;
        min-width: 100vw;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }

    .pos-login-terminal,
    .pos-login-form {
        height: 100dvh;
    }

    .pos-login-hero {
        flex-basis: clamp(300px, 40dvh, 360px);
        min-height: clamp(300px, 40dvh, 360px);
    }

    .pos-login-workspace {
        width: calc(100vw - clamp(24px, 3vw, 42px));
        max-width: none;
        grid-template-columns: minmax(0, 1fr) clamp(190px, 21vw, 260px);
        gap: clamp(.55rem, 1vw, .85rem);
    }

    .pos-login-options {
        grid-template-columns: minmax(0, 1.45fr) minmax(165px, .62fr) auto;
    }

    .pos-remember {
        grid-column: auto;
    }
}

@media (max-height: 860px) and (min-width: 1200px) {
    .sidebar {
        width: 258px;
        padding: 0.82rem 0.72rem;
        gap: 0.4rem;
    }

    .brand-panel {
        padding-bottom: 0.52rem;
    }

    .brand-logo {
        width: 40px;
        height: 40px;
    }

    .brand-title {
        font-size: 0.96rem;
    }

    .brand-subtitle {
        font-size: 0.72rem;
    }

    .sidebar-link,
    .sidebar-sublink {
        min-height: 36px;
        padding-top: 0.48rem;
        padding-bottom: 0.48rem;
    }

    .sidebar-copy strong {
        font-size: 0.86rem;
    }

    .sidebar-sublink {
        font-size: 0.78rem;
    }

    .main-panel {
        margin-left: 258px;
    }
}

:root {
    --bg: #eef3f8;
    --surface: #ffffff;
    --surface-strong: #ffffff;
    --surface-alt: #f7f9fc;
    --sidebar: rgba(255, 255, 255, 0.94);
    --ink: #182235;
    --muted: #7e8798;
    --line: #e3e9f1;
    --shadow: 0 18px 42px rgba(20, 33, 61, 0.08);
    --shadow-soft: 0 8px 24px rgba(20, 33, 61, 0.05);
    --accent: #3d74f3;
    --accent-deep: #2b5ed1;
    --accent-soft: #edf4ff;
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
.brand-title,
.login-title,
.login-form-title,
.page-heading h1 {
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.app-body {
    background:
        radial-gradient(circle at top left, rgba(61, 116, 243, 0.12), transparent 24%),
        radial-gradient(circle at top right, rgba(88, 169, 255, 0.1), transparent 22%),
        var(--bg);
}

.sidebar {
    color: var(--ink);
    background: var(--sidebar);
    border-right: 0;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.brand-panel {
    border-bottom-color: var(--line);
}

.brand-link,
.brand-subtitle {
    color: var(--ink);
}

.brand-subtitle,
.sidebar-section-label {
    color: var(--muted);
}

.sidebar-link {
    color: #465266;
}

.sidebar-link:hover,
.sidebar-link.is-active,
.sidebar-toggle.is-active {
    color: var(--accent-deep);
    background: var(--accent-soft);
}

.sidebar-pill {
    background: var(--accent);
}

.sidebar-caret {
    border-right-color: #66768f;
    border-bottom-color: #66768f;
}

.sidebar-sublink {
    color: #5a677b;
}

.sidebar-sublink:hover,
.sidebar-sublink.is-active {
    color: var(--accent-deep);
    background: var(--accent-soft);
}

.sidebar-footer {
    border-top-color: var(--line);
}

.mobile-sidebar {
    background: var(--surface);
    color: var(--ink);
}

.mobile-sidebar .offcanvas-header {
    border-bottom: 1px solid var(--line);
}

.topbar {
    padding-top: 1rem;
}

.topbar-chip,
.user-card,
.topbar-toggle {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--line);
    box-shadow: var(--shadow-soft);
}

.topbar-toggle {
    color: var(--ink);
}

.panel-card,
.metric-card,
.table-shell,
.form-shell,
.modal-content,
.offcanvas {
    box-shadow: var(--shadow-soft);
}

.metric-card,
.panel-card,
.table-shell,
.form-shell,
.empty-state,
.receipt-preview,
.hero-tile,
.queue-item,
.mini-kpi,
.cart-item {
    border-radius: 20px;
}

.metric-accent {
    background: linear-gradient(135deg, var(--accent), #7ba0ff);
}

.chart-bar {
    background: linear-gradient(180deg, #8fb0ff, var(--accent));
}

.btn-premium {
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
}

.btn-outline-premium {
    border-color: #cad8f6;
    color: var(--accent-deep);
    background: #ffffff;
}

.btn-outline-premium:hover,
.btn-outline-premium:focus {
    background: var(--accent-soft);
    color: var(--accent-deep);
}

.service-card,
.category-pill {
    border-radius: 999px;
    padding: 0.74rem 1rem;
    background: #ffffff;
}

.service-card.is-active,
.service-card:hover,
.category-pill.is-active,
.category-pill:hover {
    background: var(--accent-soft);
    border-color: #bfd1fb;
    color: var(--accent-deep);
}

.input-shell,
.select-shell,
.textarea-shell {
    border-radius: 16px;
    border-color: #d6deea;
    background: #ffffff;
    min-height: 48px;
}

.textarea-shell {
    min-height: 104px;
}

.input-shell:focus,
.select-shell:focus,
.textarea-shell:focus {
    border-color: #9ab7fb;
    box-shadow: 0 0 0 0.2rem rgba(61, 116, 243, 0.12);
}

.pos-strip-card {
    background: rgba(255, 255, 255, 0.86);
}

.orders-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.order-line-card {
    padding: 0.95rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface-alt);
}

.order-line-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.6rem;
}

.order-line-code {
    font-size: 0.78rem;
    font-weight: 800;
    color: #536175;
    letter-spacing: 0.04em;
}

.order-line-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.progress-track {
    height: 10px;
    margin-top: 0.8rem;
    border-radius: 999px;
    overflow: hidden;
    background: #e6ebf3;
}

.progress-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), #6d98ff);
}

.progress-fill.status-preparing {
    background: repeating-linear-gradient(135deg, #ff983f 0 10px, #ffb460 10px 20px);
}

.progress-fill.status-ready,
.progress-fill.status-served {
    background: linear-gradient(90deg, #19b86b, #57d88d);
}

.item-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 0.85rem;
}

.menu-item-card {
    display: grid;
    border-radius: 22px;
    border-color: #dfe6f0;
}

.menu-item-media {
    height: 148px;
    background-size: cover;
    background-position: center;
}

.menu-item-media.has-image {
    position: relative;
}

.menu-item-media.has-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(17, 24, 39, 0.12) 100%);
}

.menu-item-body {
    display: grid;
    gap: 0.2rem;
}

.menu-item-meta {
    min-height: 42px;
}

.menu-item-category {
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 700;
}

.menu-item-action {
    margin-top: 0.55rem;
    padding: 0.62rem 0.9rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-deep);
    font-weight: 700;
    text-align: center;
}

.cart-panel {
    top: 1rem;
}

.cart-items {
    max-height: 420px;
    gap: 0.7rem;
}

.cart-item {
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
    border: 1px solid var(--line);
    background: var(--surface-alt);
}

.cart-item-main {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 0.8rem;
}

.cart-item-main strong {
    font-size: 1rem;
    white-space: nowrap;
}

.cart-item-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.qty-stepper {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.24rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #ffffff;
}

.qty-stepper button {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 800;
    color: var(--accent-deep);
    background: var(--accent-soft);
}

.qty-stepper span {
    min-width: 24px;
    text-align: center;
    font-weight: 700;
    color: var(--ink);
}

.cart-item-links {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.cart-link {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--accent-deep);
    font-size: 0.88rem;
    font-weight: 700;
}

.cart-link.danger {
    color: #d04747;
}

.summary-row.total {
    border-top-color: #d8e0ed;
}

.empty-state {
    background: #f9fbfe;
    border-color: #d8e1ec;
}

.login-page {
    background:
        radial-gradient(circle at top left, rgba(61, 116, 243, 0.14), transparent 28%),
        #eef3f8;
}

.login-shell {
    box-shadow: var(--shadow);
}

.login-branding {
    background: linear-gradient(160deg, #1f2f4d, #3058ac);
}

@media (min-width: 1200px) {
    .sidebar {
        top: 16px;
        left: 16px;
        bottom: 16px;
        width: 252px;
        padding: 1rem 0.85rem;
        border-radius: 28px;
        overflow: hidden;
    }

    .main-panel {
        margin-left: 284px;
        padding: 0 16px 16px 0;
    }
}

@media (max-width: 1199.98px) {
    .topbar {
        padding-top: 0.9rem;
    }

    .orders-strip {
        grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    }
}

@media (max-width: 767.98px) {
    .orders-strip,
    .item-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .menu-item-media {
        height: 122px;
    }

    .cart-item-tools {
        flex-direction: column;
        align-items: stretch;
    }

    .cart-item-links {
        justify-content: space-between;
    }
}

@media (max-width: 575.98px) {
    .orders-strip,
    .item-grid {
        grid-template-columns: 1fr;
    }

    .page-heading h1 {
        font-size: 1.7rem;
    }
}

.sidebar.d-none.d-xl-flex {
    display: none !important;
}

.app-shell {
    display: block;
    padding: 16px;
    background: #eef0f4;
}

.main-panel {
    max-width: 1600px;
    margin: 0 auto !important;
    min-height: calc(100vh - 32px);
    background: #f8f8f9;
    border: 1px solid #d8dbdf;
    border-radius: 28px;
    box-shadow: 0 24px 44px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.topbar-trackoo {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 16px 24px 12px;
    background: #f8f8f9;
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e4e7ec;
    color: #161d2d;
    font-weight: 700;
}

.brand-chip-mark {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    color: #3c73f3;
}

.brand-chip-mark svg {
    width: 22px;
    height: 22px;
}

.brand-chip-name {
    font-size: 1rem;
    line-height: 1;
}

.brand-chip.brand-chip-logo {
    min-width: 58px;
    height: 46px;
    padding: 2px 6px;
    justify-content: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.topbar-business-logo {
    display: block;
    width: auto;
    max-width: 104px;
    height: auto;
    max-height: 44px;
    object-fit: contain;
}

.workspace-nav {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #e4e7ec;
}

.workspace-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    color: #4b5565;
    font-size: 0.86rem;
    font-weight: 600;
}

.workspace-link.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, #3f77f6, #2f63dc);
}

.workspace-link:hover {
    background: #eff4ff;
    color: #2f63dc;
}

.workspace-link.is-active:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #3f77f6, #2f63dc);
}

.workspace-icon {
    width: 15px;
    height: 15px;
    position: relative;
    border: 1.6px solid currentColor;
    border-radius: 4px;
    flex: 0 0 auto;
}

.workspace-icon-grid::before,
.workspace-icon-grid::after,
.workspace-icon-menu::before,
.workspace-icon-orders::before,
.workspace-icon-billing::before,
.workspace-icon-stats::before {
    content: "";
    position: absolute;
}

.workspace-icon-grid::before {
    inset: 2px;
    border-top: 1.4px solid currentColor;
    border-bottom: 1.4px solid currentColor;
}

.workspace-icon-grid::after {
    top: 2px;
    bottom: 2px;
    left: 50%;
    width: 1.4px;
    background: currentColor;
    transform: translateX(-50%);
}

.workspace-icon-menu::before {
    left: 2px;
    right: 2px;
    top: 3px;
    height: 1.4px;
    background: currentColor;
    box-shadow: 0 4px 0 currentColor, 0 8px 0 currentColor;
}

.workspace-icon-orders::before {
    inset: 2px 3px;
    border-top: 1.4px solid currentColor;
    border-bottom: 1.4px solid currentColor;
}

.workspace-icon-billing::before {
    left: 3px;
    right: 3px;
    top: 3px;
    height: 7px;
    border: 1.4px solid currentColor;
    border-radius: 2px;
}

.workspace-icon-stats::before {
    left: 3px;
    bottom: 2px;
    width: 2px;
    height: 5px;
    background: currentColor;
    box-shadow: 4px -2px 0 currentColor, 8px -5px 0 currentColor;
}

.topbar-account {
    justify-self: end;
}

.account-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px 6px 6px;
    border: 1px solid #e4e7ec;
    border-radius: 18px;
    background: #ffffff;
    color: #1b2333;
}

.account-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-weight: 700;
    background: linear-gradient(135deg, #a7cf9d, #5f9d5f);
}

.account-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}

.account-copy span {
    font-size: 0.68rem;
    color: #9aa2b2;
}

.account-copy strong {
    font-size: 0.94rem;
}

.account-caret {
    width: 8px;
    height: 8px;
    border-right: 1.6px solid #a4acba;
    border-bottom: 1.6px solid #a4acba;
    transform: rotate(45deg);
    margin-left: 4px;
}

.account-menu {
    min-width: 220px;
    margin-top: 10px;
    border: 1px solid #e2e5ea;
    border-radius: 18px;
    padding: 10px;
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.12);
}

.account-menu-header {
    display: grid;
    gap: 2px;
    padding: 8px 10px 10px;
}

.account-menu-header span {
    font-size: 0.78rem;
    color: #8b95a5;
}

.account-menu .dropdown-item {
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 600;
}

.kitchen-qr-modal-content {
    border: 0;
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(30, 41, 77, 0.28);
}

.kitchen-qr-code {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 240px;
    margin: 18px auto;
}

.kitchen-qr-code img,
.kitchen-qr-code canvas {
    max-width: 100%;
    height: auto !important;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
}

.kitchen-monitor-url {
    padding: 10px 12px;
    border-radius: 10px;
    color: #526078;
    background: #f4f7fb;
    font-size: 0.75rem;
    overflow-wrap: anywhere;
}

.content-area {
    padding: 12px 24px 24px;
}

.page-pos-terminal {
    padding-top: 4px;
}

.app-body.no-page-scroll-pos {
    overflow: hidden;
}

.app-body.no-page-scroll-pos .main-panel {
    height: calc(100vh - 32px);
    min-height: 0;
}

.main-panel:has(.page-pos-terminal) {
    height: calc(100vh - 32px);
    min-height: 0;
}

.content-area.page-pos-terminal {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.terminal-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
    gap: 16px;
    align-items: stretch;
    min-height: 0;
    height: 100%;
}

.pos-ready-notifications {
    position: fixed;
    z-index: 1090;
    top: 18px;
    right: 18px;
    display: grid;
    gap: 10px;
    width: min(390px, calc(100vw - 28px));
    pointer-events: none;
}

.pos-ready-notification {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 15px 16px;
    border: 1px solid #37b979;
    border-radius: 16px;
    color: #f7fff9;
    background: linear-gradient(145deg, #137647, #0d5936);
    box-shadow: 0 18px 48px rgba(10, 57, 35, 0.34);
    pointer-events: auto;
    animation: pos-ready-notification-in 180ms ease-out;
}

.pos-ready-notification-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #0b5d37;
    background: #c8f7da;
    font-size: 1.2rem;
    font-weight: 900;
}

.pos-ready-notification > div {
    display: grid;
    gap: 2px;
}

.pos-ready-notification strong {
    font-size: 0.96rem;
}

.pos-ready-notification > div span {
    color: #d5f7e3;
    font-size: 0.78rem;
}

.pos-ready-notification button {
    align-self: start;
    padding: 0;
    border: 0;
    color: #d5f7e3;
    background: transparent;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

@keyframes pos-ready-notification-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.terminal-workspace {
    min-width: 0;
    min-height: 0;
    height: 100%;
}

.terminal-shell {
    min-width: 0;
    min-height: 0;
    height: 100%;
}

.terminal-sidebar,
.terminal-sidebar-shell {
    display: flex;
    align-items: stretch;
    min-width: 0;
    min-height: 0;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
}

.terminal-layout {
    min-width: 0;
    min-height: 0;
    height: 100%;
}

.terminal-main-form {
    min-width: 0;
    min-height: 0;
    height: 100%;
}

.terminal-main {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 18px;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.terminal-section {
    min-height: 0;
}

.terminal-section-menu {
    min-height: 0;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: #c6cfdf transparent;
}

.terminal-section-menu::-webkit-scrollbar {
    width: 8px;
}

.terminal-section-menu::-webkit-scrollbar-thumb {
    background: #c6cfdf;
    border-radius: 999px;
}

.terminal-menu-sticky {
    position: sticky;
    top: 0;
    z-index: 7;
    background: #f8f8f9;
    padding-bottom: 10px;
    margin-bottom: 4px;
}

.terminal-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.terminal-section-title {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 600;
    color: #171f2f;
}

.terminal-section-title span {
    font-size: 0.92rem;
    font-weight: 500;
    color: #9aa2b2;
}

.terminal-pager {
    display: inline-flex;
    gap: 10px;
}

.terminal-pager-btn,
.terminal-filter-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #e0e4eb;
    border-radius: 50%;
    background: #ffffff;
    color: #9ba3b3;
    display: grid;
    place-items: center;
    box-shadow: none;
}

.terminal-filter-btn span,
.terminal-filter-btn span::before,
.terminal-filter-btn span::after {
    display: block;
    width: 14px;
    height: 1.6px;
    border-radius: 999px;
    background: currentColor;
    content: "";
}

.terminal-filter-btn span {
    position: relative;
}

.terminal-filter-btn span::before {
    position: absolute;
    top: -4px;
    width: 9px;
}

.terminal-filter-btn span::after {
    position: absolute;
    top: 4px;
    width: 11px;
    right: 0;
}

.orders-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    overflow: visible;
    padding-bottom: 0;
}

.terminal-categories::-webkit-scrollbar {
    display: none;
}

.order-line-card {
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #e0e4eb;
    border-radius: 12px;
    background: #ffffff;
}

.order-line-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.order-line-code {
    font-size: 0.7rem;
    font-weight: 700;
    color: #7f8797;
}

.order-line-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    border: 1px solid #8cb2ff;
    color: #356ef1;
    font-size: 0.7rem;
    font-weight: 700;
    background: #f4f8ff;
}

.order-line-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #202838;
}

.order-line-meta,
.order-line-status {
    margin-top: 2px;
    font-size: 0.74rem;
    color: #9ba4b3;
}

.progress-track {
    height: 16px;
    margin: 10px 0 6px;
    border-radius: 999px;
    background: #eceef2;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    display: block;
    border-radius: 999px;
    background: linear-gradient(90deg, #1fbe67, #18b567);
}

.progress-fill.status-preparing {
    background: repeating-linear-gradient(135deg, #ff9b35 0 7px, #f5bf74 7px 14px);
}

.progress-fill.status-ready {
    background: linear-gradient(90deg, #356ef1, #5c93ff);
}

.progress-fill.status-served {
    background: linear-gradient(90deg, #1fbe67, #18b567);
}

.terminal-menu-head {
    align-items: flex-end;
}

.terminal-searchbar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.terminal-search-field {
    position: relative;
    min-width: 250px;
}

.terminal-search-field .input-shell {
    padding-left: 42px;
    border-radius: 999px;
    min-height: 40px;
    background: #ffffff;
}

.terminal-search-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    width: 12px;
    height: 12px;
    border: 1.6px solid #adb5c3;
    border-radius: 50%;
    transform: translateY(-50%);
}

.terminal-search-icon::after {
    content: "";
    position: absolute;
    right: -4px;
    bottom: -3px;
    width: 6px;
    height: 1.5px;
    background: #adb5c3;
    transform: rotate(45deg);
    border-radius: 999px;
}

.terminal-categories {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-bottom: 14px;
    padding-bottom: 2px;
}

.terminal-menu-sections {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-bottom: 10px;
    padding-bottom: 2px;
}

.section-pill {
    min-height: 34px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid #d8dff0;
    background: #ffffff;
    color: #2a3345;
    font-size: 0.82rem;
    font-weight: 600;
}

.section-pill.is-active,
.section-pill:hover {
    background: #edf3ff;
    border-color: #8eb2ff;
    color: #1f5ce6;
}

.category-pill {
    min-height: 36px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: #202838;
    font-size: 0.88rem;
    font-weight: 500;
}

.category-pill.is-active,
.category-pill:hover {
    background: #3c74f3;
    border-color: #3c74f3;
    color: #ffffff;
}

.terminal-menu-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.trackoo-menu-card {
    border: 1.6px solid #8eb2ff;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: none;
}

.trackoo-menu-card:hover {
    transform: none;
    border-color: #5b8ef9;
}

.trackoo-menu-card .menu-item-media {
    height: 142px;
    margin: 8px 8px 0;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.trackoo-menu-card .menu-item-media.no-image {
    display: block;
    padding: 0;
}

.menu-item-fallback-initials {
    position: absolute;
    left: 12px;
    bottom: 10px;
    font-size: 34px;
    line-height: 1;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.02em;
    pointer-events: none;
}

.menu-item-fallback-icon {
    width: 68px;
    height: 68px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(28, 46, 92, 0.18));
}

.trackoo-menu-card .menu-item-body {
    padding: 10px 12px 12px;
}

.terminal-card-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.trackoo-menu-card .menu-item-title {
    font-size: 0.92rem;
    font-weight: 600;
}

.trackoo-menu-card .menu-item-meta {
    min-height: auto;
    margin-top: 6px;
    font-size: 0.84rem;
    color: #4f596b;
}

.trackoo-menu-card .price-tag {
    color: #3c74f3;
    font-size: 0.82rem;
    font-weight: 700;
}

.trackoo-menu-card .menu-item-action {
    min-height: 34px;
    margin-top: 10px;
    border: 1px solid #8eb2ff;
    background: #ffffff;
    color: #3c74f3;
    font-size: 0.83rem;
}

.terminal-sidebar,
.terminal-sidebar-shell {
    min-height: 0;
    height: 100%;
}

.terminal-order-card {
    width: 100%;
    padding: 18px;
    border: 1px solid #dddddf;
    border-radius: 22px;
    background: #fcfcfc;
    max-height: 100%;
    height: 100%;
    overflow-y: auto;
}

.terminal-order-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.terminal-order-head h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.terminal-order-meta {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.terminal-order-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.86rem;
    color: #697386;
}

.terminal-order-meta-row strong {
    color: #1b2333;
    font-weight: 600;
}

.terminal-service-switch {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.terminal-service-switch .service-card {
    min-height: 38px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 0.82rem;
    background: #ffffff;
}

.terminal-service-switch .service-card.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, #3f77f6, #2f63dc);
    border-color: #2f63dc;
}

.terminal-order-state {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.terminal-form-stack {
    display: grid;
    gap: 12px;
}

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

.terminal-field-row .terminal-field {
    min-width: 0;
}

.terminal-field .form-label {
    margin-bottom: 6px;
    font-size: 0.86rem;
}

.terminal-field .input-shell,
.terminal-field .select-shell,
.terminal-notes {
    min-height: 42px;
    border-radius: 10px;
}

.terminal-number-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(42px, 1fr));
    gap: 10px;
    max-height: 360px;
    padding: 8px;
    overflow-y: auto;
    border: 1px solid #dbe3f1;
    border-radius: 14px;
    background: #ffffff;
}

.terminal-number-trigger {
    width: 100%;
    min-height: 42px;
    padding-right: 34px;
    text-align: left;
    cursor: pointer;
}

.terminal-number-trigger.has-selection {
    color: #315fda;
    border-color: #7b9afa;
    background-color: #f7f9ff;
    font-weight: 700;
}

.terminal-number-modal-dialog {
    max-width: 410px;
}

.terminal-number-modal .modal-content {
    border: 0;
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(30, 41, 77, 0.28);
}

.terminal-number-modal .modal-body {
    padding: 16px 20px 22px;
}

.terminal-number-button {
    width: 44px;
    height: 44px;
    justify-self: center;
    padding: 0;
    border: 3px solid #4d72f4;
    border-radius: 50%;
    color: #4553c7;
    background: radial-gradient(circle at 35% 30%, #ffffff 0 48%, #eef1ff 49% 100%);
    box-shadow:
        0 0 0 2px #ddd8ff,
        0 3px 8px rgba(75, 91, 220, 0.22);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    transition: transform 120ms ease, color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.terminal-number-button:hover,
.terminal-number-button:focus-visible {
    color: #2e3cab;
    transform: translateY(-1px);
    box-shadow:
        0 0 0 3px #cbc2ff,
        0 5px 12px rgba(75, 91, 220, 0.3);
    outline: none;
}

.terminal-number-button.is-selected {
    color: #ffffff;
    border-color: #315fe3;
    background: linear-gradient(145deg, #7859f6, #316bea);
    box-shadow:
        0 0 0 3px #c9c0ff,
        0 5px 13px rgba(62, 87, 225, 0.4);
    transform: scale(1.05);
}

.terminal-number-empty {
    padding: 10px 12px;
    border-radius: 10px;
    color: #8a4b08;
    background: #fff7e6;
    font-size: 0.82rem;
}

@media (max-width: 420px) {
    .terminal-number-modal-dialog {
        margin: 12px;
    }

    .terminal-number-grid {
        grid-template-columns: repeat(4, minmax(42px, 1fr));
    }
}

.terminal-cart-list {
    max-height: 290px;
    margin: 10px 0;
    gap: 0;
}

.terminal-cart-card {
    padding: 8px 0;
    border: 0;
    border-bottom: 1px solid #edf0f4;
    border-radius: 0;
    background: transparent;
}

.terminal-cart-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.terminal-cart-copy h6 {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
}

.terminal-cart-copy {
    min-width: 0;
}

.terminal-cart-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.terminal-cart-line-total {
    color: #2f63dc;
    font-size: 0.86rem;
    font-weight: 700;
    min-width: 64px;
    text-align: right;
}

.qty-stepper {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
}

.qty-stepper button {
    width: 22px;
    height: 22px;
    border: 1px solid #dee2e8;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.82rem;
    color: #7c8595;
    background: #f1f3f7;
}

.qty-stepper button[data-cart-plus] {
    color: #ffffff;
    border-color: #3c74f3;
    background: #3c74f3;
}

.qty-stepper span {
    min-width: 12px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
}

.cart-note-chip {
    margin-top: 2px;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    color: #7a8496;
    font-size: 0.76rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 190px;
    text-align: left;
}

.cart-icon-remove {
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    color: #9da6b6;
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1;
    padding: 0;
}

.terminal-notes-block {
    margin-top: 8px;
}

.terminal-adjustments {
    margin-top: 14px;
}

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

.terminal-adjustment-grid .form-label {
    margin-bottom: 5px;
    font-size: 0.78rem;
}

.terminal-adjustment-grid .input-shell,
.terminal-adjustment-grid .select-shell {
    min-height: 38px;
    border-radius: 10px;
}

.terminal-summary {
    margin-top: 16px;
}

.terminal-summary .summary-row {
    color: #666f80;
    font-size: 0.9rem;
}

.terminal-summary .summary-row strong {
    color: #161d2d;
}

.terminal-summary .summary-row.total {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed #d9dde4;
    font-size: 1rem;
}

.terminal-actions {
    margin-top: 18px;
}

.terminal-actions .btn-premium {
    width: 100%;
    min-height: 46px;
    border-radius: 10px;
    font-size: 0.95rem;
    box-shadow: none;
}

.terminal-actions .btn-quickpay {
    width: 100%;
    min-height: 46px;
    border-radius: 10px;
    font-size: 0.95rem;
    box-shadow: none;
}

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

.terminal-secondary-actions .btn {
    min-height: 40px;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 600;
}

.terminal-quick-total {
    display: none;
}

.terminal-quickpay-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 18px;
    align-items: start;
}

.terminal-quickpay-payment,
.terminal-quickpay-preview {
    min-width: 0;
}

.terminal-receipt-preview {
    background: #fbfcfe;
}

.terminal-receipt-items {
    display: grid;
    gap: 10px;
}

.terminal-receipt-line {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #edf0f4;
}

.terminal-receipt-line:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.terminal-receipt-copy {
    min-width: 0;
}

.terminal-receipt-copy strong {
    display: block;
    font-size: 0.92rem;
    color: #1a2233;
}

.terminal-receipt-meta {
    display: grid;
    gap: 3px;
    text-align: right;
    white-space: nowrap;
    color: #556074;
    font-size: 0.84rem;
}

.terminal-receipt-meta strong {
    color: #1a2233;
}

.terminal-empty {
    padding: 20px 14px;
    margin-top: 14px;
}

@media (min-width: 1200px) {
    .main-panel {
        margin-left: auto !important;
    }
}

@media (max-width: 1199.98px) {
    .app-shell {
        padding: 10px;
    }

    .app-body.no-page-scroll-pos .main-panel {
        height: calc(100vh - 20px);
    }

    .main-panel:has(.page-pos-terminal) {
        height: calc(100vh - 20px);
    }

    .main-panel {
        min-height: calc(100vh - 20px);
        border-radius: 22px;
    }

    .terminal-stage {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
        min-height: 0;
        height: 100%;
    }

    .terminal-sidebar,
    .terminal-sidebar-shell {
        position: static;
    }

    .terminal-main {
        min-height: 0;
    }

    .terminal-order-card {
        max-height: 100%;
        height: 100%;
        overflow-y: auto;
    }

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

@media (max-width: 991.98px) {
    .topbar-trackoo {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 12px;
    }

    .content-area {
        padding: 10px 14px 18px;
    }

    .workspace-nav {
        justify-self: stretch;
        overflow-x: auto;
        padding: 6px;
    }

    .workspace-link {
        padding: 0 10px;
        font-size: 0.8rem;
    }

    .terminal-menu-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .terminal-search-field {
        min-width: 190px;
    }
}

@media (max-width: 767.98px) {
    .topbar-trackoo {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .topbar-account {
        justify-self: stretch;
    }

    .account-trigger {
        width: 100%;
        justify-content: space-between;
    }

    .terminal-section-head,
    .terminal-menu-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .terminal-searchbar {
        width: 100%;
    }

    .terminal-search-field {
        min-width: 0;
        flex: 1;
    }

    .terminal-menu-grid,
    .terminal-adjustment-grid,
    .terminal-secondary-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .orders-strip {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 575.98px) {
    .terminal-menu-grid,
    .terminal-adjustment-grid,
    .terminal-secondary-actions {
        grid-template-columns: 1fr;
    }
}
.shift-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.shift-choice {
  position: relative;
  margin: 0;
}

.shift-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.shift-choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.125rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 18px;
  background: #fff;
  color: #111827;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.shift-choice input:checked + span {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.2);
}

.shift-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.shift-reconcile-card {
  padding: 1.2rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 26px;
  background: #fff;
}

.shift-reconcile-card .table {
  margin-bottom: 0;
}

.shift-reconcile-card .input-shell {
  min-width: 8rem;
}

.print-page {
  min-height: 100vh;
  margin: 0;
  padding: 1.5rem;
  background: #f3f4f6;
}

.print-ticket {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  padding: 1.4rem 1.25rem;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  color: #111827;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.print-header {
  padding-bottom: 0.9rem;
  border-bottom: 1px dashed rgba(15, 23, 42, 0.16);
  text-align: center;
}

.print-brand {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.print-title {
  margin-top: 0.35rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.print-meta {
  margin-top: 0.45rem;
  color: #6b7280;
  font-size: 0.84rem;
  line-height: 1.55;
}

.print-section {
  padding: 1rem 0;
  border-bottom: 1px dashed rgba(15, 23, 42, 0.16);
}

.print-section-title {
  margin-bottom: 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
}

.print-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.22rem 0;
  font-size: 0.94rem;
}

.print-line span {
  color: #4b5563;
}

.print-line strong {
  color: #111827;
  text-align: right;
}

.print-line.total {
  margin-top: 0.25rem;
  padding-top: 0.6rem;
  border-top: 1px dashed rgba(15, 23, 42, 0.16);
}

.print-note {
  margin-top: 0.7rem;
  color: #4b5563;
  font-size: 0.86rem;
  line-height: 1.55;
}

.print-footer {
  padding-top: 1rem;
  color: #6b7280;
  font-size: 0.8rem;
  text-align: center;
}

.print-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.1rem;
}

.print-actions form {
  margin: 0;
}

.receipt-print-page {
  background: #eef2f7;
}

.receipt-page-shell {
  display: grid;
  justify-content: center;
  gap: 1rem;
}

.sales-receipt {
  width: 80mm;
  max-width: 100%;
  box-sizing: border-box;
  padding: 14px 12px 18px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #ffffff;
  color: #111827;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  font-family: "Consolas", "Courier New", monospace;
  font-size: 12px;
  line-height: 1.35;
}

.sales-receipt-header {
  padding-bottom: 10px;
  text-align: center;
  border-bottom: 3px double rgba(15, 23, 42, 0.3);
}

.settings-logo-preview {
  max-width: 180px;
  max-height: 90px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

.menu-image-preview-card {
  min-height: 170px;
  display: grid;
  place-items: center;
  padding: 0.9rem;
  border: 1px dashed rgba(15, 23, 42, 0.16);
  border-radius: 18px;
  background: #f8fafc;
}

.menu-image-preview {
  max-width: 100%;
  max-height: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
}

.check-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.check-chip {
  position: relative;
  margin: 0;
}

.check-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 16px;
  background: #fff;
  color: #1f2937;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.check-chip input:checked + span {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.16);
}

.sales-receipt-logo-wrap {
  margin-bottom: 8px;
}

.sales-receipt-logo {
  max-width: 150px;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) contrast(180%) brightness(92%);
}

.sales-receipt-brand {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.sales-receipt-subline {
  margin-top: 3px;
  white-space: pre-line;
}

.sales-receipt-section {
  padding: 10px 0;
  border-bottom: 3px double rgba(15, 23, 42, 0.26);
}

.sales-receipt-section:last-of-type {
  border-bottom: 0;
}

.sales-receipt-meta-row,
.sales-receipt-total-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  word-break: break-word;
}

.sales-receipt-total-line {
  grid-template-columns: minmax(0, 1fr) auto auto;
  margin-bottom: 4px;
}

.sales-receipt-change {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 3px double rgba(15, 23, 42, 0.26);
}

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

.sales-receipt-table th,
.sales-receipt-table td {
  padding: 4px 0;
  vertical-align: top;
  word-break: break-word;
}

.sales-receipt-table thead th {
  padding-bottom: 6px;
  border-bottom: 3px double rgba(15, 23, 42, 0.26);
  font-weight: 700;
}

.sales-receipt-double-rule {
  text-align: center;
  letter-spacing: 0.04em;
}

.sales-receipt-payment-line {
  margin-top: 2px;
}

.sales-receipt-table .col-item {
  width: 62%;
  text-align: left;
  padding-right: 8px;
}

.sales-receipt-table .col-qty {
  width: 12%;
  text-align: left;
}

.sales-receipt-table .col-amount {
  width: 26%;
  text-align: right;
}

.sales-receipt-item-name {
  line-height: 1.25;
}

.sales-receipt-item-rate {
  margin-top: 2px;
  margin-left: 0.85rem;
  color: #374151;
  font-size: 0.92em;
}

.sales-receipt-note {
  margin-top: 2px;
  margin-left: 0.85rem;
  color: #6b7280;
  font-size: 11px;
}

.sales-receipt-centered,
.sales-receipt-notice {
  text-align: center;
}

.sales-receipt-notice {
  margin: 12px 0;
  font-size: 15px;
  font-weight: 700;
}

.bill-print-page .sales-receipt-header {
  text-align: center;
}

.bill-print-page .sales-receipt-logo-wrap {
  margin-bottom: 6px;
}

.bill-print-page .sales-receipt-logo {
  max-width: 160px;
  max-height: 88px;
}

.bill-print-page .sales-receipt-brand {
  font-size: 19px;
  letter-spacing: 0.03em;
}

.bill-print-page .bill-slip-title {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.bill-print-page .bill-slip-meta-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.bill-print-page .bill-slip-meta-row-cashier {
  grid-template-columns: 1fr;
}

.bill-print-page .sales-receipt-table .col-qty {
  width: 12%;
}

.bill-print-page .sales-receipt-table .col-item {
  width: 62%;
}

.bill-print-page .sales-receipt-table .col-amount {
  width: 26%;
}

.bill-print-page .sales-receipt-table thead th {
  text-transform: none;
}

.bill-print-page .bill-slip-total-line {
  grid-template-columns: minmax(0, 1fr) auto;
  font-size: 20px;
  align-items: end;
}

.sales-invoice-print-page .sales-receipt-payment-line {
  font-size: 20px;
  align-items: end;
}

.bill-print-page .bill-slip-footer .sales-receipt-notice {
  font-size: 16px;
  margin: 10px 0 8px;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.bill-print-page .bill-slip-footer .sales-receipt-centered {
  font-size: 15px;
  line-height: 1.3;
}

.sales-invoice-print-page .invoice-reference {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.sales-invoice-print-page .invoice-party-line {
  font-size: 14px;
  line-height: 1.35;
  margin: 2px 0;
}

/* Misc Task modal: square touch tiles tuned for 11" Android tablets */
#miscTaskModal .modal-dialog {
  max-width: min(96vw, 1220px);
}

#miscTaskModal .modal-body {
  padding: 1rem;
}

#miscTaskModal .misc-task-grid > [class*="col-"] {
  display: flex;
  justify-content: center;
}

@media (min-width: 768px) {
  #miscTaskModal .misc-task-grid > [class*="col-"] {
    width: 14.285714%;
    flex: 0 0 auto;
  }
}

#miscTaskModal .misc-task-grid [data-misc-task] {
  width: min(100%, 112px);
  aspect-ratio: 1 / 1;
  min-height: 0;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  white-space: normal;
  text-align: center;
  line-height: 1.15;
  font-size: clamp(0.66rem, 0.72vw, 0.78rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.6rem 0.5rem 0.5rem;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.95);
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  background: linear-gradient(180deg, var(--tile-top, #de4ea6) 0%, var(--tile-mid, #b40866) 55%, var(--tile-bottom, #7f003d) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 0 rgba(0, 0, 0, 0.22),
    0 0 0 4px #d7dbe0,
    0 0 0 6px #f1f3f6,
    0 8px 14px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

#miscTaskModal .misc-task-grid [data-misc-task]::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 4px;
  height: 46%;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.08) 100%);
  pointer-events: none;
}

#miscTaskModal .misc-task-grid [data-misc-task]:hover,
#miscTaskModal .misc-task-grid [data-misc-task]:focus {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.98);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 0 rgba(0, 0, 0, 0.2),
    0 0 0 4px #d7dbe0,
    0 0 0 6px #f1f3f6,
    0 12px 20px rgba(0, 0, 0, 0.24);
}

#miscTaskModal .misc-task-grid [data-misc-task]:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(37, 77, 185, 0.12);
}

#miscTaskModal .misc-task-grid [data-misc-task] .misc-task-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: transparent;
  border: 0;
  box-shadow: none;
  z-index: 1;
}

#miscTaskModal .misc-task-grid [data-misc-task] .misc-task-icon svg {
  width: 34px;
  height: 34px;
  display: block;
}

#miscTaskModal .misc-task-grid [data-misc-task] .misc-task-label {
  display: block;
  z-index: 1;
}

/* 7 unique pastel column palettes */
#miscTaskModal .misc-task-grid > [class*="col-"]:nth-child(7n + 1) [data-misc-task] {
  --tile-top: #f5a9d7;
  --tile-mid: #d71c95;
  --tile-bottom: #8e0050;
}

#miscTaskModal .misc-task-grid > [class*="col-"]:nth-child(7n + 2) [data-misc-task] {
  --tile-top: #ffd08d;
  --tile-mid: #ff8a22;
  --tile-bottom: #cf4f00;
}

#miscTaskModal .misc-task-grid > [class*="col-"]:nth-child(7n + 3) [data-misc-task] {
  --tile-top: #9cdfff;
  --tile-mid: #2d9bec;
  --tile-bottom: #0f4caf;
}

#miscTaskModal .misc-task-grid > [class*="col-"]:nth-child(7n + 4) [data-misc-task] {
  --tile-top: #9de7c4;
  --tile-mid: #2bcf7a;
  --tile-bottom: #0d8f42;
}

#miscTaskModal .misc-task-grid > [class*="col-"]:nth-child(7n + 5) [data-misc-task] {
  --tile-top: #ccb7ff;
  --tile-mid: #8a5de7;
  --tile-bottom: #4b2ea9;
}

#miscTaskModal .misc-task-grid > [class*="col-"]:nth-child(7n + 6) [data-misc-task] {
  --tile-top: #9deef0;
  --tile-mid: #2dc7cf;
  --tile-bottom: #107f89;
}

#miscTaskModal .misc-task-grid > [class*="col-"]:nth-child(7n + 7) [data-misc-task] {
  --tile-top: #ffc4b8;
  --tile-mid: #ff7a6a;
  --tile-bottom: #c2382d;
}

/* 11" tablet portrait */
@media (min-width: 768px) and (max-width: 1366px) and (orientation: portrait) {
  #miscTaskModal .misc-task-grid [data-misc-task] {
    width: min(100%, 100px);
  }
}

/* 11" tablet landscape */
@media (min-width: 768px) and (max-width: 1366px) and (orientation: landscape) {
  #miscTaskModal .misc-task-grid [data-misc-task] {
    width: min(100%, 96px);
  }
}

/* Small phones */
@media (max-width: 575.98px) {
  #miscTaskModal .misc-task-grid [data-misc-task] {
    width: min(100%, 78px);
    font-size: 0.62rem;
    gap: 0.28rem;
  }

  #miscTaskModal .misc-task-grid [data-misc-task] .misc-task-icon {
    width: 42px;
    height: 42px;
  }

  #miscTaskModal .misc-task-grid [data-misc-task] .misc-task-icon svg {
    width: 28px;
    height: 28px;
  }
}

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

@media (max-width: 575.98px) {
  .shift-choice-grid,
  .shift-breakdown-grid {
    grid-template-columns: 1fr;
  }

  .print-page {
    padding: 0.75rem;
  }

  .print-ticket {
    border-radius: 18px;
  }
}

@media print {
  @page {
    size: 80mm auto;
    margin: 2mm;
  }

  html,
  body {
    width: 80mm;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff;
  }

  .print-page {
    padding: 0;
    background: #fff;
  }

  .print-ticket {
    max-width: none;
    padding: 0.4rem 0.7rem;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .receipt-page-shell {
    gap: 0;
    width: 100%;
  }

  .sales-receipt {
    width: 100%;
    max-width: 76mm;
    padding: 2mm 1.5mm 3mm;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: 13px;
    line-height: 1.35;
    margin: 0 auto;
  }

  .sales-receipt-brand {
    font-size: 18px;
  }

  .sales-receipt-subline,
  .sales-receipt-note {
    font-size: 12px;
  }

  .sales-receipt-section {
    padding: 6px 0;
  }

  .sales-receipt-meta-row,
  .sales-receipt-total-line {
    gap: 6px;
    font-size: 13px;
  }

  .sales-receipt-table th,
  .sales-receipt-table td {
    padding: 3px 0;
    font-size: 13px;
  }

  .sales-receipt-table .col-item {
    width: 62%;
    padding-right: 6px;
  }

  .sales-receipt-table .col-qty {
    width: 12%;
  }

  .sales-receipt-table .col-amount {
    width: 26%;
  }

  .sales-receipt-item-rate {
    margin-left: 0.7rem;
  }

  .sales-receipt-notice {
    margin: 8px 0;
    font-size: 14px;
  }

  .bill-print-page .sales-receipt {
    font-size: 14px;
    line-height: 1.38;
  }

  .bill-print-page .sales-receipt-brand {
    font-size: 20px;
  }

  .bill-print-page .sales-receipt-subline,
  .bill-print-page .sales-receipt-note,
  .bill-print-page .sales-receipt-meta-row,
  .bill-print-page .sales-receipt-table th,
  .bill-print-page .sales-receipt-table td {
    font-size: 14px;
  }

  .bill-print-page .bill-slip-title {
    font-size: 21px;
    margin-top: 7px;
  }

  .bill-print-page .sales-receipt-table .col-qty {
    width: 12%;
  }

  .bill-print-page .sales-receipt-table .col-item {
    width: 60%;
  }

  .bill-print-page .sales-receipt-table .col-amount {
    width: 28%;
  }

  .bill-print-page .bill-slip-total-line {
    font-size: 22px;
  }

  .sales-invoice-print-page .sales-receipt-payment-line {
    font-size: 22px;
  }

  .bill-print-page .bill-slip-footer .sales-receipt-notice {
    font-size: 17px;
    margin: 10px 0 8px;
    white-space: nowrap;
  }

  .bill-print-page .bill-slip-footer .sales-receipt-centered {
    font-size: 16px;
  }

  .sales-invoice-print-page .invoice-reference {
    font-size: 20px;
  }

  .sales-invoice-print-page .invoice-party-line {
    font-size: 15px;
  }

  .billing-item-row {
    cursor: pointer;
  }

  .billing-item-row:hover td {
    background-color: rgba(30, 64, 175, 0.08);
  }

  .no-print {
    display: none !important;
  }
}

/* Touch-first POS login */
.pos-login-page {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    min-height: 100vh;
    display: block;
    padding: 0;
    overflow-y: hidden;
    overflow-x: hidden;
    overscroll-behavior: none;
    background: #f4f7fb;
    color: #172033;
}

.pos-login-root {
    width: 100%;
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
}

.pos-login-terminal {
    height: 100%;
    min-height: 0;
    overflow: hidden;
    overscroll-behavior: none;
}

.pos-login-form {
    width: 100%;
    min-width: 0;
    max-width: 100vw;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.pos-login-hero {
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: 0;
    max-width: 100vw;
    min-height: 330px;
    padding: 1.25rem clamp(1rem, 4vw, 3.5rem) 5.5rem;
    overflow: hidden;
    text-align: center;
    color: #fff;
    background:
        linear-gradient(120deg, rgba(8, 103, 238, 0.96), rgba(32, 82, 224, 0.94) 52%, rgba(102, 35, 217, 0.94)),
        radial-gradient(circle at 20% 20%, #4bb9ff, transparent 36%);
    border-radius: 0 0 50% 50% / 0 0 18% 18%;
    box-shadow: 0 18px 44px rgba(36, 75, 190, 0.2);
}

.pos-login-hero::before,
.pos-login-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    transform: rotate(-8deg);
}

.pos-login-hero::before {
    width: 360px;
    height: 180px;
    left: 7%;
    bottom: 20px;
    border-radius: 30px;
}

.pos-login-hero::after {
    width: 420px;
    height: 190px;
    right: 5%;
    bottom: 10px;
    border-radius: 50%;
}

.pos-login-hero-glow {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 50% 0, rgba(255,255,255,.2), transparent 30%),
        repeating-linear-gradient(90deg, transparent 0 14%, rgba(255,255,255,.025) 14% 14.3%);
}

.pos-login-brand {
    position: absolute;
    top: 1.2rem;
    left: clamp(1rem, 4vw, 3.5rem);
    display: flex;
    align-items: center;
    gap: .65rem;
    font-weight: 700;
}

.pos-login-brand img {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}

.pos-login-kicker {
    margin: 1.55rem 0 0;
    font-size: clamp(1.25rem, 2.6vw, 2rem);
    font-weight: 300;
    letter-spacing: .03em;
}

.pos-login-hero h1 {
    margin: -.1rem 0 .15rem;
    font-family: "Segoe UI", Tahoma, sans-serif;
    font-size: clamp(2.6rem, 6vw, 4.8rem);
    font-weight: 800;
    letter-spacing: -.04em;
    text-shadow: 0 5px 18px rgba(24, 37, 119, .24);
}

.pos-login-subtitle {
    margin: 0 auto 1.1rem;
    color: rgba(255, 255, 255, .8);
    font-size: .95rem;
}

.pos-login-credentials {
    width: min(790px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: .65rem;
}

.pos-login-field {
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: 0 .95rem;
    border: 2px solid transparent;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(18, 36, 102, .16);
    transition: border-color .16s ease, box-shadow .16s ease;
}

.pos-login-field:focus-within {
    border-color: #6ee7d2;
    box-shadow: 0 0 0 4px rgba(110, 231, 210, .2), 0 12px 28px rgba(18, 36, 102, .16);
}

.pos-login-field-icon {
    width: 22px;
    color: #26364d;
}

.pos-login-field svg,
.pos-login-submit svg,
.pos-action-tile svg {
    width: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pos-login-field input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #182238;
    font-size: 1rem;
}

.pos-login-submit {
    min-width: 138px;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #0ebd9f, #15cf69);
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 14px 28px rgba(8, 191, 139, .3);
}

.pos-login-submit svg {
    width: 20px;
}

.pos-login-alert {
    width: min(790px, 100%);
    margin: .75rem auto 0;
    padding: .55rem .9rem;
    border: 0;
    border-radius: 14px;
    font-size: .9rem;
}

.pos-login-workspace {
    width: min(1180px, calc(100% - 2rem));
    min-width: 0;
    max-width: calc(100vw - 2rem);
    margin: -2.4rem auto 0;
    padding: 4.8rem 0 1rem;
    display: grid;
    grid-template-columns: 142px minmax(0, 1fr) 208px;
    gap: .9rem;
    align-items: start;
}

.pos-login-actions {
    display: grid;
    gap: .75rem;
}

.pos-action-tile {
    min-height: 112px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border: 0;
    border-radius: 16px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(40, 67, 120, .15);
}

.pos-action-tile svg {
    width: 38px;
}

.pos-action-tile.is-primary {
    background: linear-gradient(145deg, #0db5a7, #12cc6c);
}

.pos-action-tile.is-secondary {
    background: linear-gradient(145deg, #157ce8, #6f35dd);
}

.pos-login-center {
    min-width: 0;
}

.pos-keyboard {
    display: grid;
    gap: .48rem;
}

.pos-keyboard-row {
    display: flex;
    gap: .48rem;
}

.pos-key {
    min-width: 0;
    min-height: 49px;
    flex: 1 1 0;
    border: 0;
    border-radius: 9px;
    background: #fff;
    color: #172033;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(29, 48, 84, .11);
    transition: transform .1s ease, box-shadow .1s ease, background-color .1s ease;
}

.pos-key:hover,
.pos-key:focus-visible {
    background: #f8fbff;
    box-shadow: 0 6px 16px rgba(29, 48, 84, .16);
}

.pos-key:active {
    transform: translateY(2px);
}

.pos-key.is-wide {
    flex-grow: 1.35;
    font-size: 1.25rem;
}

.pos-key.is-enter {
    flex-grow: 1.8;
    font-size: .8rem;
}

.pos-key.is-shift {
    flex-grow: 1.2;
    font-size: .76rem;
}

.pos-key.is-space {
    flex-grow: 5;
    font-size: .76rem;
}

.pos-login-form.is-shifted .pos-keyboard [data-key]:not([data-key="SHIFT"]):not([data-key="SPACE"]):not([data-key="ENTER"]):not([data-key="BACKSPACE"]) {
    color: #1769df;
}

.pos-numpad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .48rem;
}

.pos-key.is-number {
    min-height: 49px;
    color: #fff;
    background: linear-gradient(145deg, #1581ef, #1666df);
    box-shadow: 0 5px 13px rgba(22, 102, 223, .24);
}

.pos-key.is-clear {
    grid-column: span 1;
    color: #fff;
    background: linear-gradient(145deg, #fa536e, #e83164);
}

.pos-login-options {
    margin-top: .85rem;
    padding: .85rem;
    display: grid;
    grid-template-columns: minmax(280px, 1.4fr) minmax(160px, .7fr) auto;
    gap: .75rem;
    align-items: end;
    border: 1px solid #e2e9f3;
    border-radius: 15px;
    background: rgba(255, 255, 255, .78);
    transition: box-shadow .2s ease, border-color .2s ease;
}

.pos-login-options.is-highlighted {
    border-color: #376fe4;
    box-shadow: 0 0 0 4px rgba(55, 111, 228, .12);
}

.pos-option-label,
.pos-float-field span {
    display: block;
    margin-bottom: .45rem;
    color: #607087;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.pos-login-options .shift-choice-grid {
    gap: .35rem;
}

.pos-login-options .shift-choice span {
    min-height: 42px;
    padding: .55rem;
    border-radius: 10px;
    font-size: .82rem;
}

.pos-float-field input {
    width: 100%;
    min-height: 42px;
    padding: .5rem .7rem;
    border: 1px solid #d8e1ed;
    border-radius: 10px;
    outline: 0;
    background: #fff;
    font-weight: 700;
}

.pos-remember {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: .5rem;
    color: #607087;
    font-size: .82rem;
    white-space: nowrap;
}

.pos-login-help {
    margin: auto 1rem 1rem;
    text-align: center;
    color: #78869b;
    font-size: .78rem;
}

@media (max-width: 991.98px) {
    .pos-login-hero {
        min-height: 390px;
        border-radius: 0 0 45% 45% / 0 0 10% 10%;
    }

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

    .pos-login-submit {
        grid-column: 1 / -1;
        width: min(240px, 100%);
        justify-self: center;
    }

    .pos-login-workspace {
        grid-template-columns: 116px minmax(0, 1fr);
        padding-top: 3.7rem;
    }

    .pos-numpad {
        grid-column: 2;
        grid-template-columns: repeat(6, 1fr);
    }

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

    .pos-remember {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767.98px) {
    .pos-login-page {
        padding: 0;
    }

    .pos-login-brand {
        position: static;
        justify-content: center;
        margin-bottom: .55rem;
    }

    .pos-login-kicker {
        margin-top: 0;
    }

    .pos-login-hero {
        min-height: 460px;
        padding: 1rem 1rem 4.8rem;
    }

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

    .pos-login-submit {
        grid-column: auto;
    }

    .pos-login-workspace {
        width: min(100% - 1rem, 560px);
        grid-template-columns: 1fr;
        padding-top: 3.3rem;
        overflow: hidden;
    }

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

    .pos-action-tile {
        min-height: 84px;
        flex-direction: row;
    }

    .pos-action-tile svg {
        width: 30px;
    }

    .pos-keyboard {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        padding-bottom: .3rem;
    }

    .pos-login-center {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .pos-keyboard-row {
        min-width: 620px;
    }

    .pos-numpad {
        grid-column: auto;
        grid-template-columns: repeat(6, 1fr);
    }

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

    .pos-remember {
        grid-column: auto;
    }
}

@media (max-width: 480px) {
    .pos-login-hero h1 {
        font-size: 2.55rem;
    }

    .pos-login-subtitle {
        max-width: 19rem;
    }

    .pos-numpad {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Installable web-app controls */
.pwa-install-button {
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 1085;
    width: 58px;
    min-width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(145deg, #176fe8, #6638df);
    box-shadow: 0 16px 35px rgba(39, 72, 173, .34);
    font: 800 .82rem/1 "Segoe UI", Tahoma, sans-serif;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.pwa-install-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.pwa-install-button svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pwa-install-button:hover,
.pwa-install-button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 19px 40px rgba(39, 72, 173, .4);
}

.pwa-install-button.is-install-ready {
    background: linear-gradient(145deg, #0ab59c, #10ca69);
    box-shadow: 0 16px 35px rgba(10, 181, 135, .34);
}

.pwa-install-dialog {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: end center;
    padding: 1rem;
    visibility: hidden;
    opacity: 0;
    transition: opacity .18s ease, visibility .18s ease;
}

.pwa-install-dialog.is-visible {
    visibility: visible;
    opacity: 1;
}

.pwa-install-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 21, 40, .58);
    backdrop-filter: blur(5px);
}

.pwa-install-sheet {
    position: relative;
    width: min(470px, 100%);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    padding: 1.35rem;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 25px;
    background: #fff;
    color: #172033;
    box-shadow: 0 28px 70px rgba(10, 22, 52, .3);
    transform: translateY(20px);
    transition: transform .2s ease;
}

.pwa-install-dialog.is-visible .pwa-install-sheet {
    transform: translateY(0);
}

.pwa-install-close {
    position: absolute;
    top: .85rem;
    right: .9rem;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #eef3fa;
    color: #46556d;
    font-size: 1.5rem;
    line-height: 1;
}

.pwa-install-brand {
    width: 62px;
    height: 62px;
    margin-bottom: .85rem;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(145deg, #e9f2ff, #eee9ff);
}

.pwa-install-brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.pwa-install-eyebrow {
    color: #176fe8;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.pwa-install-sheet h2 {
    margin: .3rem 2.4rem .45rem 0;
    font-family: "Segoe UI", Tahoma, sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
}

.pwa-install-intro,
.pwa-install-note {
    margin: 0;
    color: #66758a;
    font-size: .9rem;
    line-height: 1.5;
}

.pwa-install-steps {
    display: grid;
    gap: .7rem;
    margin: 1rem 0;
    padding: 0;
    list-style: none;
}

.pwa-install-steps li {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: .7rem;
    align-items: center;
    padding: .72rem;
    border: 1px solid #e3eaf4;
    border-radius: 14px;
    background: #f8faff;
    color: #405069;
    font-size: .88rem;
    line-height: 1.42;
}

.pwa-step-number,
.pwa-step-icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #fff;
    background: #176fe8;
    font-weight: 900;
}

.pwa-step-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pwa-install-note {
    padding: .7rem .8rem;
    border-radius: 12px;
    background: #fff8df;
    color: #745b10;
}

.pwa-install-done {
    width: 100%;
    min-height: 46px;
    margin-top: 1rem;
    border: 0;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(145deg, #176fe8, #6337df);
    font-weight: 800;
}

.pwa-dialog-open {
    overflow: hidden;
}

@media (max-width: 575.98px) {
    .pwa-install-button {
        width: 56px;
        min-width: 56px;
        height: 56px;
        padding: 0;
    }

    .pwa-install-button span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .pwa-install-dialog {
        padding: .55rem;
    }

    .pwa-install-sheet {
        max-height: calc(100vh - 1.1rem);
        padding: 1.1rem;
        border-radius: 22px;
    }
}

@media print {
    .pwa-install-button,
    .pwa-install-dialog {
        display: none !important;
    }
}

/* Full-screen login keyboard layout */
.pos-login-hero {
    flex: 0 0 clamp(310px, 38dvh, 560px);
    min-height: clamp(310px, 38dvh, 560px);
}

.pos-login-workspace {
    width: calc(100% - clamp(24px, 6vw, 120px));
    max-width: none;
    min-height: 0;
    flex: 1 1 auto;
    margin-top: -2.4rem;
    padding: clamp(3.35rem, 5.5dvh, 5.25rem) 0 clamp(.7rem, 1.7dvh, 1.5rem);
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(220px, 18vw, 330px);
    grid-template-rows: minmax(0, 1fr) auto;
    gap: clamp(.55rem, 1vw, 1rem);
    align-items: stretch;
    overflow: hidden;
}

.pos-keyboard {
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
    display: grid;
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: clamp(.45rem, .8dvh, .8rem);
    overflow: hidden;
}

.pos-keyboard-row {
    min-width: 0;
    min-height: 0;
    gap: clamp(.4rem, .65vw, .8rem);
}

.pos-key {
    height: 100%;
    min-height: 0;
    border-radius: clamp(9px, .9vw, 15px);
    font-size: clamp(.9rem, 1.15vw, 1.45rem);
}

.pos-key.is-enter,
.pos-key.is-shift,
.pos-key.is-space {
    font-size: clamp(.76rem, .9vw, 1.1rem);
}

.pos-numpad {
    grid-column: 2;
    grid-row: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: clamp(.45rem, .75vw, .85rem);
}

.pos-key.is-number,
.pos-key.is-clear {
    min-height: 0;
    font-size: clamp(1rem, 1.35vw, 1.7rem);
}

.pos-login-options {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: clamp(.7rem, 1.1dvh, 1rem);
    grid-template-columns: minmax(340px, 1.5fr) minmax(220px, .72fr) auto;
    gap: clamp(.65rem, 1vw, 1.1rem);
}

.pos-login-options .shift-choice span,
.pos-float-field input {
    min-height: clamp(42px, 5.4dvh, 66px);
}

.pos-login-help {
    display: none;
}

@media (max-width: 991.98px) {
    .pos-login-hero {
        flex-basis: clamp(300px, 42dvh, 390px);
        min-height: clamp(300px, 42dvh, 390px);
    }

    .pos-login-workspace {
        grid-template-columns: minmax(0, 1fr) clamp(170px, 22vw, 230px);
        grid-template-rows: minmax(0, 1fr) auto;
    }

    .pos-numpad {
        grid-column: 2;
        grid-row: 1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pos-login-options {
        grid-template-columns: minmax(280px, 1.3fr) minmax(170px, .7fr) auto;
    }

    .pos-remember {
        grid-column: auto;
    }
}

@media (max-width: 767.98px) {
    .pos-login-workspace {
        width: calc(100% - 1rem);
        max-width: calc(100vw - 1rem);
        grid-template-columns: minmax(0, 1fr) 96px;
        grid-template-rows: minmax(0, 1fr) auto;
        padding-top: 3.2rem;
    }

    .pos-keyboard {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .pos-keyboard-row {
        min-width: 0;
    }

    .pos-numpad {
        grid-column: 2;
        grid-row: 1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .pos-remember {
        grid-column: 1 / -1;
    }
}

/* Account-derived business sign-in */
.pos-login-credentials {
    width: min(790px, 100%);
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto;
}

@media (max-width: 991.98px) {
    .pos-login-credentials {
        grid-template-columns: minmax(190px, 1fr) minmax(190px, 1fr) auto;
    }
}

@media (max-width: 767.98px) {
    .pos-login-credentials {
        grid-template-columns: 1fr;
    }
}
