.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(15, 23, 42, .45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.sidebar-backdrop.show {
    display: block;
}

body.sidebar-open {
    overflow: hidden;
}

.main-content,
.content-area,
.pos-content-area,
.pos-main-column,
.pos-cart-column,
.pos-order-grid,
.grid-2,
.card {
    min-width: 0;
}

img, canvas, svg, video {
    max-width: 100%;
    height: auto;
}

@media (min-width: 769px) and (max-width: 1100px) {
    .content-area {
        padding: 1rem .9rem 1.25rem;
    }

    .dashboard-panels--compare,
    .reports-charts-grid,
    .customer-perf-best-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-cards,
    .dashboard-stat-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .login-shell {
        max-width: 460px;
        transform: none;
    }

    .pos-screen .grid-2,
    .pos-order-grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
        gap: .75rem;
    }

    .food-menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
        gap: .7rem;
    }

    .tables-grid,
    .tables-grid--pick {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: .55rem;
    }

    .pos-cart-column .pos-cart-card {
        max-height: calc(100dvh - 5rem);
    }
}

@media (max-width: 768px) {
    html[dir="rtl"] .sidebar {
        left: auto;
        right: 0;
        border-right: none;
        border-left: 1px solid var(--sidebar-border);
    }

    .content-area {
        padding: .85rem .75rem 1.25rem;
    }

    .content-area--dashboard {
        padding: .75rem .65rem 1rem;
    }

    .page-title {
        font-size: 1rem;
    }

    .card-header {
        flex-wrap: wrap;
        gap: .5rem;
        padding: .75rem 1rem;
    }

    .card .card-body {
        padding: .85rem 1rem;
    }

    .table-responsive,
    .orders-table-wrap,
    .card-body > .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .orders-page-card {
        overflow: hidden;
    }

    .orders-table-wrap {
        overflow-x: auto;
        margin: 0 -.25rem;
        padding: 0 .25rem;
    }

    table.data-table,
    .orders-table {
        min-width: 640px;
    }

    .orders-table thead th {
        top: 0;
    }

    .pay-page .pay-payment-card {
        position: static;
    }

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

    .modal-box,
    .confirm-modal-box {
        width: calc(100vw - 1.25rem);
        max-width: none;
        padding: 1.1rem 1rem;
        max-height: calc(100dvh - 2rem);
    }

    .payment-qr-modal {
        padding: 0;
        max-width: min(400px, calc(100vw - 1.25rem));
        margin-bottom: .35rem;
    }

    .payment-qr-canvas-wrap {
        width: min(252px, calc(100vw - 3.5rem));
        height: min(252px, calc(100vw - 3.5rem));
        padding: .65rem;
    }

    .payment-qr-canvas-wrap canvas,
    .payment-qr-fallback-img {
        width: 100%;
        height: 100%;
    }

    .modal-overlay {
        padding: .75rem;
        align-items: flex-end;
    }

    .dashboard-stat-cards,
    .dashboard-stat-cards:not(:has(.stat-card:nth-child(6))),
    .stat-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-panels,
    .dashboard-panels--compare,
    .reports-charts-grid,
    .reports-split-grid,
    .customer-perf-best-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-hero {
        flex-direction: column;
        align-items: stretch;
        gap: .75rem;
    }

    .dashboard-hero-actions {
        width: 100%;
    }

    .dashboard-hero-cta,
    .dashboard-hero-secondary {
        flex: 1 1 auto;
        justify-content: center;
    }

    .dashboard-quick-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .5rem;
    }

    .dashboard-quick-action {
        width: 100%;
        justify-content: center;
    }

    .form-row,
    .filter-bar,
    .toolbar-row {
        flex-direction: column;
        align-items: stretch;
    }

    .form-row > *,
    .filter-bar > * {
        width: 100%;
        min-width: 0;
    }

    .form-row > .btn,
    .form-row > button.btn {
        width: max-content;
        max-width: 100%;
    }

    .topbar-actions {
        gap: .35rem;
    }

    .topbar-lang-select {
        min-width: 5.5rem;
        max-width: 6.5rem;
        padding-left: .35rem;
        padding-right: .35rem;
        font-size: .72rem;
    }

    .flash-toast {
        left: .75rem;
        right: .75rem;
        max-width: none;
    }

    html[dir="rtl"] .flash-toast {
        left: .75rem;
        right: .75rem;
    }

    .btn,
    .order-action-btn {
        min-height: 40px;
    }

    .card-header-actions {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: .4rem;
    }

    .card-header-actions .btn {
        flex: 1 1 auto;
        justify-content: center;
    }

    .login-page {
        min-height: 100dvh;
        padding: 1rem .75rem 1.5rem;
        align-items: flex-start;
        padding-top: max(1rem, env(safe-area-inset-top));
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
        overflow-y: auto;
    }

    .login-shell {
        transform: none;
        max-width: 100%;
        flex-direction: column;
    }

    .login-hero {
        display: none;
    }

    .login-card {
        padding: 1.35rem 1.15rem 1.25rem;
        max-width: 100%;
        width: 100%;
    }

    .pin-key {
        min-height: 48px;
    }

    body.pos-screen {
        overflow: auto;
        overflow-x: hidden;
    }

    .pos-screen-wrap {
        min-height: 100dvh;
    }

    .pos-content-area {
        padding: .75rem .65rem max(1rem, env(safe-area-inset-bottom));
        overflow: visible;
    }

    .pos-topbar {
        flex-wrap: wrap;
        gap: .55rem;
        padding: .65rem max(.65rem, env(safe-area-inset-right)) .65rem max(.65rem, env(safe-area-inset-left));
        position: sticky;
        top: 0;
        z-index: 50;
    }

    .pos-topbar-brand-text strong {
        font-size: .85rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 120px;
        display: block;
    }

    .pos-topbar-brand-text span {
        display: none;
    }

    .pos-topbar-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: .35rem;
        padding-bottom: .1rem;
    }

    .pos-topbar-nav::-webkit-scrollbar {
        display: none;
    }

    .pos-topbar-nav-link {
        flex: 0 0 auto;
        min-height: 40px;
    }

    .pos-topbar-user-name {
        display: none;
    }

    .pos-screen .grid-2,
    .pos-order-grid {
        grid-template-columns: 1fr;
        gap: .85rem;
    }

    .pos-screen .grid-2 > div:last-child,
    .pos-cart-column {
        position: static;
    }

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

    .pos-cart-column .pos-cart-body {
        overflow: visible;
        display: block;
    }

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

    .pos-cart-actions {
        position: sticky;
        bottom: 0;
        z-index: 20;
        margin: .75rem -.85rem -.85rem;
        padding: .85rem;
        border-top: 1px solid var(--border);
        background: #ffffff;
        box-shadow: 0 -8px 24px rgba(15, 23, 42, .08);
        border-radius: 0 0 12px 12px;
    }

    [data-theme="dark"] .pos-cart-actions {
        background: var(--card);
    }

    .order-submit-btns {
        grid-template-columns: 1fr;
        gap: .5rem;
    }

    .order-submit-btns .btn {
        min-height: 48px;
        width: 100%;
    }

    .pos-selected-table-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .pos-selected-table-bar .btn {
        width: 100%;
        justify-content: center;
    }

    .food-menu-header {
        flex-direction: column;
        align-items: stretch;
    }

    .food-search-bar {
        margin-left: 0;
        max-width: none;
        flex: 1 1 auto;
    }

    .food-search-group {
        max-width: none;
    }

    .food-menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
        gap: .7rem;
    }

    .food-menu-scroll-wrap {
        min-height: 240px;
        max-height: none;
        overflow: visible;
    }

    body.pos-step-menu .food-menu-scroll-wrap {
        min-height: 240px;
    }

    .tables-grid,
    .tables-grid--pick {
        grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
        gap: .5rem;
    }

    .table-card {
        min-height: 72px;
    }

    .food-cat-tabs-wrap {
        margin-bottom: .65rem;
    }
}

@media (max-width: 480px) {
    .stat-cards,
    .dashboard-stat-cards,
    .dashboard-stat-cards:not(:has(.stat-card:nth-child(6))) {
        grid-template-columns: 1fr;
    }

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

    .dashboard-quick-actions .btn {
        flex: 1 1 100%;
    }

    .pin-key {
        min-height: 52px;
        font-size: 1.85rem;
    }

    .pin-key--action {
        font-size: 1.2rem;
    }

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

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

    .topbar {
        padding: 0 .65rem;
    }

    .menu-toggle {
        width: 42px;
        height: 42px;
    }

    .pos-topbar-tools .pos-topbar-offline,
    .pos-topbar-brand-text span {
        display: none;
    }

    .login-card {
        padding: 1.1rem .95rem 1rem;
    }

    .pos-cart-payable {
        font-size: .9rem;
    }
}

@media (max-width: 768px) and (hover: none) {
    .sidebar-nav .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .pos-topbar-nav-link,
    .food-menu-item,
    .table-card.available {
        min-height: 44px;
    }
}

@media (max-width: 768px) and (max-height: 820px) {
    .login-page {
        min-height: 100dvh;
        align-items: flex-start;
        overflow-y: auto;
        padding: .65rem .7rem max(.85rem, env(safe-area-inset-bottom));
    }

    .login-card {
        padding: 1rem 1rem 1.1rem;
    }

    .login-card--pin .brand-block--login .brand-block-logo,
    .login-card--pin .login-logo {
        max-width: 72px;
        max-height: 72px;
    }

    .pin-login-title-main {
        font-size: 1.05rem;
        margin-bottom: .45rem;
    }

    .pin-keypad {
        gap: .4rem;
        max-width: 280px;
        margin-inline: auto;
    }

    .pin-key {
        min-height: 46px;
        font-size: 1.45rem;
    }

    .login-action-btn {
        margin-top: .65rem;
    }
}

@media (max-width: 768px) and (max-height: 640px) {
    .login-hero,
    .login-hero-features,
    .login-hero-foot {
        display: none;
    }

    .pin-display {
        margin-bottom: .4rem;
    }
}

@media (min-width: 900px) and (max-height: 800px) {
    .pos-cart-column .pos-cart-card {
        max-height: calc(100dvh - 4.5rem);
    }

    .food-menu-scroll-wrap,
    body.pos-step-menu .food-menu-scroll-wrap {
        min-height: 200px;
        max-height: calc(100dvh - 220px);
    }

    .food-menu-img {
        height: 64px;
    }
}

@media (min-width: 1400px) {
    .content-area--dashboard {
        max-width: 1600px;
        margin-inline: auto;
    }

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

    .pos-screen .grid-2,
    .pos-order-grid {
        grid-template-columns: minmax(0, 1.35fr) minmax(340px, .75fr);
    }
}

@media (max-width: 640px) {
    .customer-perf-best-grid,
    .reports-split-grid,
    .business-compare-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body.page-dashboard,
    body.page-dashboard .app-wrapper,
    body.page-dashboard .main-content {
        height: auto;
        min-height: 100dvh;
        max-height: none;
        overflow: visible;
    }

    body.page-dashboard {
        overflow-y: auto;
        overflow-x: hidden;
    }

    body.page-dashboard .content-area--dashboard {
        display: flex;
        min-height: 0;
        overflow: visible;
        padding: .75rem .65rem max(1rem, env(safe-area-inset-bottom));
        gap: .8rem;
    }

    body.page-dashboard .dashboard-hero {
        padding: .95rem 1rem;
        gap: .85rem;
    }

    body.page-dashboard .dashboard-hero-title {
        font-size: 1rem;
        line-height: 1.3;
    }

    body.page-dashboard .dashboard-hero-date,
    body.page-dashboard .dashboard-hero-location {
        font-size: .72rem;
    }

    body.page-dashboard .dashboard-stat-cards,
    body.page-dashboard .dashboard-stat-cards:not(:has(.stat-card:nth-child(6))) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .55rem;
    }

    body.page-dashboard .dashboard-stat-cards .stat-card {
        min-height: 84px;
        padding: .75rem .8rem;
        gap: .45rem;
    }

    body.page-dashboard .dashboard-stat-cards .stat-icon {
        width: 28px;
        height: 28px;
        font-size: .8rem;
    }

    body.page-dashboard .dashboard-stat-cards .stat-value {
        font-size: 1.05rem;
    }

    body.page-dashboard .dashboard-stat-cards .stat-label {
        font-size: .65rem;
    }

    body.page-dashboard .dashboard-quick-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .5rem;
    }

    body.page-dashboard .dashboard-quick-action {
        min-height: 42px;
        padding: .5rem .55rem;
        font-size: .78rem;
        width: 100%;
    }

    body.page-dashboard .dashboard-panels,
    body.page-dashboard .dashboard-panels--compare {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: none;
        flex: 0 0 auto;
    }

    body.page-dashboard .dashboard-panels .card {
        height: auto;
        min-height: 0;
    }

    body.page-dashboard .dashboard-panel--chart .card-body {
        min-height: 250px;
    }

    body.page-dashboard .dashboard-chart,
    body.page-dashboard .dashboard-chart--lg {
        min-height: 220px;
        height: 220px;
    }
}

@media (max-width: 380px) {
    body.page-dashboard .dashboard-stat-cards .stat-card {
        padding: .65rem .7rem;
    }

    body.page-dashboard .dashboard-stat-cards .stat-icon {
        width: 26px;
        height: 26px;
    }

    body.page-dashboard .dashboard-quick-action {
        gap: .3rem;
        font-size: .73rem;
    }
}

@media (max-width: 768px) {
    body.pos-step-tables .pos-main-column {
        width: 100%;
    }

    body.pos-step-tables .tables-grid--pick {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 132px), 1fr));
        gap: .65rem;
    }

    body.pos-step-tables .table-card {
        min-height: 108px;
        padding: .7rem .4rem;
    }

    body.pos-step-tables .table-card .table-no {
        font-size: 1.35rem;
    }
}

@media (max-width: 380px) {
    body.pos-step-tables .tables-grid--pick {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

html {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
    max-width: 100%;
}

.app-wrapper,
.pos-screen-wrap,
.login-page,
.cds-screen,
.main-content {
    max-width: 100%;
    min-width: 0;
}

.page-title,
.brand-block-title,
.topbar-user-name,
.pos-topbar-brand-text strong,
.card-header h5,
.nav-link,
.nav-group-toggle span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-overlay {
    padding: max(.75rem, env(safe-area-inset-top)) max(.75rem, env(safe-area-inset-right)) max(.75rem, env(safe-area-inset-bottom)) max(.75rem, env(safe-area-inset-left));
    align-items: center;
    justify-content: center;
}

.modal-box,
.modal-overlay .modal-box {
    max-width: min(560px, 100%);
    max-height: min(92dvh, calc(100dvh - 1.5rem));
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive,
.orders-table-wrap,
.data-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 769px) {
    .orders-page-card .orders-table-wrap {
        overflow: visible;
    }
}

.content-area,
.pos-content-area {
    padding-left: max(.75rem, env(safe-area-inset-left));
    padding-right: max(.75rem, env(safe-area-inset-right));
}

@media (max-width: 1100px) {
    .stat-cards,
    .dashboard-stat-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .settings-grid,
    .settings-form-row,
    .settings-merchant-grid,
    .settings-fields-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .stat-cards,
    .dashboard-stat-cards,
    .settings-grid,
    .settings-form-row,
    .settings-merchant-grid,
    .settings-fields-grid,
    .settings-choice-btns,
    .dashboard-panels--compare,
    .business-compare-grid,
    .reports-charts-grid {
        grid-template-columns: 1fr;
    }

    .topbar-action-label {
        display: none;
    }

    .topbar-user-info {
        display: none;
    }

    .topbar-branch {
        max-width: min(148px, 42vw);
        padding: 0 .4rem 0 .45rem;
    }

    .topbar-branch-select {
        max-width: 110px;
        font-size: .75rem;
    }

    .food-menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    }

    .login-page {
        padding: .85rem .7rem max(1rem, env(safe-area-inset-bottom));
    }

    .pin-keypad {
        gap: .4rem;
    }

    .cds-ticket {
        min-width: 4.4rem;
        font-size: 1.45rem;
        padding: .65rem .7rem;
    }
}

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

    .order-submit-btns .btn {
        font-size: .88rem;
        padding: .8rem .65rem;
    }
}

.pos-cart-dock,
.pos-cart-sheet-close,
.pos-cart-backdrop {
    display: none;
}

@media (max-width: 900px) {
    body.pos-step-menu {
        height: 100dvh;
        max-height: 100dvh;
        overflow: hidden;
    }

    body.pos-step-menu .pos-screen-wrap {
        height: 100dvh;
        max-height: 100dvh;
        overflow: hidden;
    }

    body.pos-step-menu .pos-content-area {
        overflow: hidden;
        min-height: 0;
        padding-bottom: .65rem;
    }

    body.pos-step-menu .pos-order-grid,
    body.pos-step-menu .pos-main-column,
    body.pos-step-menu .pos-menu-step,
    body.pos-step-menu .food-menu-card,
    body.pos-step-menu .food-menu-body {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
    }

    body.pos-step-menu .pos-selected-table-bar,
    body.pos-step-menu .food-menu-header,
    body.pos-step-menu .food-cat-tabs-wrap {
        flex: 0 0 auto;
    }

    body.pos-step-menu .pos-selected-table-bar {
        flex-direction: row;
        align-items: center;
        padding: .55rem .7rem;
    }

    body.pos-step-menu .pos-selected-table-bar .btn {
        width: auto;
        flex: 0 0 auto;
    }

    body.pos-step-menu .food-menu-scroll-wrap {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: calc(4.75rem + env(safe-area-inset-bottom));
    }

    body.pos-step-menu .food-menu-grid {
        max-height: none;
        overflow: visible;
    }

    body.pos-step-menu .pos-cart-dock {
        display: flex;
        position: fixed;
        z-index: 230;
        inset-inline: .65rem;
        bottom: max(.5rem, env(safe-area-inset-bottom));
        align-items: center;
        gap: .7rem;
        width: auto;
        min-height: 58px;
        margin: 0;
        padding: .5rem .65rem .5rem .55rem;
        border: 0;
        border-radius: 16px;
        background: #0064fa;
        color: #fff;
        box-shadow: 0 10px 28px rgba(0, 100, 250, .38);
        cursor: pointer;
        text-align: start;
    }

    body.pos-step-menu .pos-cart-dock.is-bump {
        animation: posCartDockBump .35s ease;
    }

    body.pos-step-menu.pos-cart-open .pos-cart-dock {
        visibility: hidden;
        pointer-events: none;
    }

    body.pos-step-menu .pos-cart-dock-icon {
        position: relative;
        width: 40px;
        height: 40px;
        flex: 0 0 auto;
        border-radius: 12px;
        background: rgba(255, 255, 255, .18);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.15rem;
    }

    body.pos-step-menu .pos-cart-dock-count {
        position: absolute;
        top: -6px;
        inset-inline-end: -6px;
        min-width: 18px;
        height: 18px;
        padding: 0 4px;
        border-radius: 999px;
        background: #fff;
        color: #0050d4;
        font-size: .68rem;
        font-weight: 800;
        line-height: 18px;
        text-align: center;
    }

    body.pos-step-menu .pos-cart-dock-copy {
        display: flex;
        flex-direction: column;
        min-width: 0;
        flex: 1 1 auto;
        line-height: 1.15;
    }

    body.pos-step-menu .pos-cart-dock-label {
        font-size: .72rem;
        font-weight: 600;
        opacity: .9;
    }

    body.pos-step-menu .pos-cart-dock-total {
        font-size: 1.02rem;
        font-weight: 800;
    }

    body.pos-step-menu .pos-cart-dock-cta {
        flex: 0 0 auto;
        font-size: .8rem;
        font-weight: 700;
        background: rgba(255, 255, 255, .18);
        border-radius: 999px;
        padding: .4rem .7rem;
    }

    body.pos-step-menu .pos-cart-backdrop {
        display: none !important;
    }

    body.pos-step-menu.pos-cart-open .pos-cart-backdrop {
        display: block !important;
        position: fixed;
        inset: 0;
        z-index: 240;
        background: rgba(15, 23, 42, .45);
    }

    body.pos-step-menu .pos-cart-column:not(.is-hidden) {
        position: fixed;
        z-index: 250;
        inset-inline: 0;
        top: auto;
        bottom: 0;
        width: auto;
        height: min(86dvh, 720px);
        max-height: min(86dvh, 720px);
        margin: 0;
        display: flex;
        flex-direction: column;
        transform: translate3d(0, 105%, 0);
        visibility: hidden;
        pointer-events: none;
        transition: transform .28s ease, visibility .28s ease;
    }

    body.pos-step-menu.pos-cart-open .pos-cart-column:not(.is-hidden) {
        transform: translate3d(0, 0, 0);
        visibility: visible;
        pointer-events: auto;
    }

    body.pos-step-menu .pos-cart-column .pos-cart-card {
        flex: 1 1 auto;
        height: 100%;
        min-height: 0;
        max-height: 100%;
        margin: 0;
        display: flex;
        flex-direction: column;
        border-radius: 18px 18px 0 0;
        overflow: hidden;
        box-shadow: 0 -16px 40px rgba(15, 23, 42, .22);
    }

    body.pos-step-menu .pos-cart-column .pos-cart-card > .card-header {
        flex: 0 0 auto;
    }

    body.pos-step-menu .pos-cart-column .pos-cart-body {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
    }

    body.pos-step-menu .pos-cart-column .pos-cart-scroll {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    body.pos-step-menu .pos-cart-column .pos-cart-actions {
        position: static;
        flex: 0 0 auto;
        margin: 0;
        border-radius: 0;
    }

    body.pos-step-menu .pos-cart-sheet-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 36px;
    }
}

@media (max-width: 900px) and (max-height: 520px) {
    body.pos-step-menu .pos-content-area {
        padding-top: .4rem;
        padding-bottom: .35rem;
    }

    body.pos-step-menu .pos-selected-table-bar {
        padding: .3rem .55rem;
    }

    body.pos-step-menu .food-menu-header,
    body.pos-step-menu .food-menu-body {
        padding-top: .4rem;
        padding-bottom: .4rem;
    }

    body.pos-step-menu .food-cat-tabs-wrap {
        margin-bottom: .35rem;
    }

    body.pos-step-menu .food-menu-img {
        max-height: 72px;
        aspect-ratio: 16 / 9;
    }

    body.pos-step-menu .pos-cart-column:not(.is-hidden) {
        height: min(78dvh, 720px);
        max-height: min(78dvh, 720px);
    }
}

@keyframes posCartDockBump {
    0% { transform: translateY(0) scale(1); }
    40% { transform: translateY(-3px) scale(1.02); }
    100% { transform: translateY(0) scale(1); }
}

