/* Hide scrollbar but allow scrolling */
    .custom-scroll {
        -ms-overflow-style: none; /* IE 10+ */
        scrollbar-width: none; /* Firefox */
    }

        .custom-scroll::-webkit-scrollbar {
            display: none; /* Safari and Chrome */
        }

    .xqbh {
        height: 4.06rem;
        border-radius: 10px;
    }

    .qbh {
        height: 75px;
    }

    .qbc {
        color: blue;
    }

    .qbh2 {
        height: 55px;
    }

    .qbh3 {
        height: 92px;
    }

    .qbh4 {
        height: 25px;
    }

    .qpad {
        padding-left: 2px;
        padding-right: 2px;
        padding-top: 2px;
        padding-bottom: 2px;
    }

    .qpad2 {
        padding-left: 0px;
        padding-right: 0px;
        padding-top: 0px;
        padding-bottom: 0px;
    }

    .qpad3 {
        padding-left: 2px;
        padding-right: 2px;
        padding-top: 0px;
        padding-bottom: 2px;
    }

    .qmarg {
        margin-top: 2px;
        margin-bottom: 2px;
        margin-left: 2px;
        margin-right: 2px;
    }

    .qmarg2 {
        margin-top: 0px;
        margin-bottom: 0px;
        margin-left: 0px;
        margin-right: 0px;
    }

    .rz-datatable td {
        padding: 2px;
    }

    .xbtn {
        height: 71px;
        padding-right: 1px;
        padding-left: 1px;
        padding-top: 1px;
        padding-bottom: 1px;
    }

    .xcol {
        padding-right: 1px;
        padding-left: 1px;
        padding-top: 1px;
        padding-bottom: 1px;
    }

    .selected-button {
        background-color: dodgerblue !important;
    }

    /* Keep the desktop checkout screen within the viewport. The line-item
       list retains its own scroll area for longer sales. */

    /* assets/css/style.css forces "body { overflow-y: scroll }", which
       permanently reserves an empty scrollbar gutter on the right edge.
       The POS screen manages its own scrolling, so let the scrollbar
       appear only when actually needed. */
    html body {
        overflow-y: auto;
    }

    .pos-page {
        --pos-border: #d8e0ea;
        --pos-surface: #ffffff;
        --pos-muted: #64748b;
        --pos-purple: #4f2da8;
        --pos-purple-dark: #281454;
        --pos-primary: #2563eb;
        --pos-primary-dark: #1d4ed8;
        display: grid;
        width: 100%;
        /* Keep the financial summary compact so the cart and catalog receive
           the reclaimed vertical space. */
        grid-template-rows: 58px minmax(0, 1fr) 72px;
        row-gap: 4px;
        column-gap: 10px;
        height: calc(100vh - 1rem);
        max-height: calc(100vh - 1rem);
        overflow: hidden;
        color: #1f2937;
    }

    .pos-page > .row {
        --bs-gutter-x: 0;
        --bs-gutter-y: 0;
        width: 100%;
        margin: 0;
    }

    .pos-page .rz-button {
        font-size: 0.74rem;
        letter-spacing: 0.03em;
        text-transform: uppercase;
    }

    .pos-page .pos-toolbar {
        height: auto !important;
        width: 100%;
        margin: 0 !important;
        padding: 0;
    }

    .pos-page .pos-toolbar > [class*="col-"] {
        padding: 0;
    }

    .pos-page .pos-toolbar .pos-toolbar-row > [class*="col-"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .pos-toolbar-row {
        --bs-gutter-x: 0;
        --bs-gutter-y: 0;
        position: relative;
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: stretch;
        height: 100%;
        width: 100%;
        margin: 0;
        padding: 0 0 0 2px;
        gap: 2px;
    }

    .pos-toolbar-item {
        padding: 0;
    }

    .pos-company-badge {
        align-items: center;
        align-self: center;
        background: #fff;
        border: 1px solid #5330b5;
        border-radius: 6px;
        color: #5330b5;
        display: flex;
        flex: 0 1 240px;
        font-size: .72rem;
        font-weight: 700;
        gap: .4rem;
        justify-content: center;
        margin-left: auto;
        max-width: 240px;
        min-width: 120px;
        overflow: hidden;
        padding: .65rem .85rem;
        text-overflow: ellipsis;
        white-space: nowrap;
        order: 2;
    }

    .pos-company-badge .rz-icon { color: #5330b5; font-size: 17px !important; }

    .pos-toolbar-item:not(.pos-toolbar-payment) {
        flex: 0 0 145px;
        width: 145px;
        max-width: none;
    }

    .pos-toolbar-payment {
        flex: 0 0 215px;
        width: 215px;
        min-width: 215px;
        max-width: none;
        height: 42px;
        margin-left: 0;
        order: 1;
        margin-right: 0;
    }

    .pos-page .pos-toolbar .qbh {
        height: 42px;
        border-radius: 4px;
        box-shadow: none;
    }

    .pos-page .pos-toolbar .rz-button {
        border: 1px solid #e5e9f0;
        background: #fafbfc !important;
        color: #26324a !important;
        min-width: 0;
        padding: 0 12px;
        line-height: 1.2;
    }

    .pos-toolbar-content {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-width: 0;
        height: 100%;
        gap: 7px;
    }

    .pos-toolbar-label {
        min-width: 0;
        margin: 0 !important;
        overflow: hidden;
        color: inherit;
        font-size: 0.7rem;
        font-weight: 600;
        line-height: 1.2;
        text-align: center;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .pos-page .pos-toolbar .pos-toolbar-payment .rz-button {
        border-color: #e5e9f0;
        background: #fafbfc !important;
        color: #26324a !important;
        height: 42px !important;
        margin: 0;
        padding: 0 10px;
    }

    .pos-toolbar-payment .pos-toolbar-label {
        overflow: visible;
        font-size: 0.7rem;
        line-height: 1.05;
        text-overflow: clip;
        white-space: nowrap;
    }

    .pos-page .pos-toolbar .rz-icon {
        font-size: 19px !important;
    }

    .pos-page .pos-body {
        display: flex;
        flex-wrap: nowrap;
        width: 100%;
        min-height: 0;
        height: auto !important;
        margin: 0;
    }

    .pos-page .pos-cart-column,
    .pos-page .pos-catalog-column {
        height: 100%;
        min-height: 0;
    }

    .pos-page .pos-cart-column {
        --pos-left-panel-font-scale: 0.85;
        display: flex;
        flex-direction: column;
        gap: 5px;
        padding: 14px !important;
        border: 1px solid var(--pos-border);
        border-radius: 0px;
        background: var(--pos-surface);
    }

    .pos-page .pos-cart-column h4 {
        margin-bottom: 0;
        font-size: calc(0.82rem * var(--pos-left-panel-font-scale));
        font-weight: 700;
        letter-spacing: 0.02em;
        text-transform: uppercase;
    }

    .pos-panel-header {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        min-height: 24px;
        gap: 5px;
    }

    .pos-panel-header h4:last-child {
        text-align: right;
    }

    .pos-cart-controls {
        display: grid;
        gap: 4px;
        align-items: stretch;
    }

    .pos-cart-controls-top {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .pos-cart-controls-actions {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .pos-action-btn-content {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        width: 100%;
        gap: 6px;
    }

    .pos-action-btn-stack {
        flex-direction: column;
        gap: 2px;
    }

    .pos-barcode-field {
        display: flex;
        align-items: center;
        gap: 8px;
        height: 40px;
        padding: 0 10px;
        box-sizing: border-box;
        border: 1px solid #93c5fd;
        border-radius: 4px;
        background: var(--pos-surface);
        color: var(--pos-muted);
    }

    .pos-barcode-field .rz-icon {
        font-size: 20px !important;
    }

    .pos-page .pos-barcode-field .rz-textbox {
        flex: 1 1 auto;
        min-width: 0;
        height: 100%;
        padding: 0;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        color: #1f2937;
        font-size: calc(0.85rem * var(--pos-left-panel-font-scale));
    }

    .pos-page .pos-barcode-field .rz-textbox::placeholder {
        color: var(--pos-muted);
        font-size: calc(0.7rem * var(--pos-left-panel-font-scale));
        font-weight: 600;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }

    .pos-page .pos-cart-column .qbh2 {
        height: 52px;
        border-radius: 4px;
    }

    .pos-page .pos-cart-column .rz-button {
        border: 1px solid var(--pos-border);
        border-radius: 4px;
        background: #f8fafc !important;
        color: #334155 !important;
        box-shadow: none;
        font-size: calc(0.72rem * var(--pos-left-panel-font-scale));
    }

    .pos-page .pos-cart-column {
        flex: 0 0 40%;
        max-width: 40%;
    }

    .pos-page .pos-cart-column .qbc {
        color: #334155 !important;
    }

    .pos-page .pos-cart-column .qbh4 {
        height: 38px;
    }

    .pos-page .pos-cart-list,
    .pos-page .pos-catalog-panel {
        min-height: 0;
        overflow-y: auto;
    }

    .pos-page .pos-cart-list {
        flex: 1 1 auto;
        min-height: 0;
        margin: 0;
        border: 1px solid var(--pos-border);
        border-radius: 5px;
        background: var(--pos-surface);
        overflow: hidden;
        font-size: calc(0.92rem * var(--pos-left-panel-font-scale));
    }

    .pos-page .pos-cart-list > div {
        background: var(--pos-surface) !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .pos-page .pos-cart-list > div {
        height: 100% !important;
        overflow-y: auto;
    }

    .pos-cart-table-wrap {
        display: flex;
        height: 100%;
        min-height: 0;
        margin: 0;
        max-width: 100%;
        overflow-x: hidden;
        overflow-y: auto;
        padding: 0;
        width: 100%;
    }

    .pos-cart-quickgrid {
        box-sizing: border-box;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        border-collapse: collapse;
        table-layout: fixed;
        font-family: Helvetica, Roboto, Arial, sans-serif;
        font-size: calc(0.72rem * var(--pos-left-panel-font-scale));
    }

    .pos-cart-quickgrid thead th {
        padding: 6px 5px;
        border-right: 1px solid var(--pos-border);
        border-bottom: 1px solid var(--pos-border);
        background: #f1f5f9;
        color: #334155;
        font-size: 0.58rem;
        font-weight: 700;
        letter-spacing: 0.02em;
        line-height: 1.1;
        text-align: center;
        text-transform: uppercase;
    }

    .pos-cart-quickgrid tbody td {
        padding: 5px;
        border-right: 1px solid #e2e8f0;
        border-bottom: 1px solid var(--pos-border);
        color: #1f2937;
        line-height: 1.15;
        vertical-align: middle;
    }

    .pos-cart-quickgrid tbody tr:hover > td {
        background: #f8fafc;
    }

    .pos-cart-quickgrid th:last-child,
    .pos-cart-quickgrid td:last-child {
        border-right: 0;
    }

    .pos-cart-quickgrid .pos-cart-edit-column,
    .pos-cart-quickgrid .pos-cart-add-column,
    .pos-cart-quickgrid .pos-cart-remove-column {
        width: 10%;
        padding: 3px !important;
        text-align: center;
    }

    .pos-cart-quickgrid .pos-cart-description-column {
        width: 24%;
    }

    .pos-cart-quickgrid .pos-cart-quantity-column {
        width: 17%;
        text-align: center;
    }

    .pos-cart-quickgrid .pos-cart-tax-column {
        width: 14%;
        text-align: center;
    }

    .pos-cart-quickgrid .pos-cart-extended-column {
        width: 15%;
        text-align: right;
    }

    /* QuickGrid does not consistently carry TemplateColumn alignment classes
       onto generated body cells, so pin the value alignment by column order. */
    .pos-cart-quickgrid tbody td:nth-child(3) {
        text-align: center !important;
    }

    .pos-cart-quickgrid tbody td:nth-child(4) {
        text-align: center !important;
    }

    .pos-cart-quickgrid tbody td:nth-child(5) {
        text-align: right !important;
    }

    .pos-cart-line-description {
        display: block;
        max-width: 100%;
        overflow: hidden;
        overflow-wrap: anywhere;
        word-break: break-word;
        white-space: pre-wrap;
    }

    .pos-cart-quickgrid .rz-button {
        align-items: center;
        box-sizing: border-box;
        display: inline-flex;
        justify-content: center;
        min-width: 0;
        min-height: 32px;
        padding: 2px;
        width: 100% !important;
        max-width: none !important;
    }

    .pos-cart-quickgrid td.pos-cart-edit-column .rz-button,
    .pos-cart-quickgrid td.pos-cart-add-column .rz-button,
    .pos-cart-quickgrid td.pos-cart-remove-column .rz-button {
        display: flex;
        width: 100% !important;
    }

    .pos-page .pos-cart-list > div > div {
        height: 100% !important;
    }

    .pos-page .pos-cart-content {
        position: relative;
        min-height: 0;
        height: 100%;
    }

    .pos-page .pos-cart-update-status {
        position: absolute;
        inset: 0;
        z-index: 4;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background: rgba(255, 255, 255, .78);
        color: #4f2da8;
        font-size: .82rem;
        font-weight: 700;
        pointer-events: all;
    }

    .pos-page .pos-cart-update-status .rz-progressbar-circular {
        color: #4f2da8;
    }

    .pos-page .pos-catalog-column {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-width: 0;
        max-width: none;
        padding-left: 0;
        padding-right: 0;
    }

    .pos-page .pos-catalog-panel {
        flex: 1 1 auto;
        height: auto !important;
        padding-left: 0 !important;
        margin: 0;
    }

    .pos-page .pos-catalog-surface {
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: 0;
        padding: 8px;
        overflow: hidden;
        border: 1px solid var(--pos-border);
        border-radius: 0;
        background: var(--pos-surface);
    }

    .pos-catalog-tabs {
        display: flex;
        align-items: center;
        flex: 0 0 auto;
        gap: 10px;
        min-height: 40px;
        padding: 2px 2px 8px;
    }

    .pos-brand-pill {
        flex: 0 0 auto;
        padding: 8px 18px;
        border-radius: 6px;
        background: var(--pos-purple);
        color: #ffffff;
        font-size: 0.8rem;
        font-weight: 700;
        line-height: 1;
    }

    .pos-category-tabs {
        display: flex;
        flex: 1 1 auto;
        align-items: center;
        gap: 6px;
        min-width: 0;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .pos-category-tabs::-webkit-scrollbar {
        display: none;
    }

    .pos-category-tab {
        flex: 0 0 auto;
        padding: 7px 14px;
        border: 1px solid transparent;
        border-radius: 6px;
        background: transparent;
        color: #334155;
        font-size: 0.78rem;
        font-weight: 600;
        line-height: 1;
        white-space: nowrap;
        cursor: pointer;
    }

    .pos-category-tab:hover {
        background: #f1f5f9;
    }

    .pos-category-tab.active {
        border-color: var(--pos-primary);
        background: #eff6ff;
        color: var(--pos-primary);
    }

    .pos-catalog-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 34px;
        padding: 0 4px 6px;
        color: #334155;
    }

    .pos-catalog-header small {
        display: block;
        margin-top: 2px;
        color: var(--pos-muted);
    }

    .pos-catalog-header .rz-button {
        min-height: 32px;
        padding: 4px 10px;
        border: 1px solid var(--pos-border);
        border-radius: 6px;
        background: #f8fafc;
        color: #334155;
    }

    .pos-page .pos-catalog-grid {
        flex: 0 1 auto;
        height: auto;
        min-height: 0;
        max-height: calc(100% - 116px);
        overflow-y: auto;
        padding: 2px;
    }

    .pos-page .pos-category-grid {
        flex: 0 0 auto;
        padding: 8px;
        border: 1px solid #e2e8f0;
        border-radius: 9px;
        background: #f8fafc;
    }

    .pos-page .pos-category-grid .xbtn {
        height: 68px;
    }

    .pos-page .pos-product-grid {
        flex: 1 1 auto;
        max-height: none;
        min-height: 0;
        overflow-y: auto;
        padding: 6px;
        border: 1px solid var(--pos-border);
        border-radius: 9px;
        background: #f8fafc;
    }

    .pos-page .pos-product-grid .xbtn {
        height: 112px;
    }

    .pos-catalog-guidance {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 120px;
        margin: 10px 2px 2px;
        padding: 20px;
        gap: 6px;
        border: 1px dashed #cbd5e1;
        border-radius: 10px;
        color: var(--pos-muted);
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
        text-align: center;
    }

    .pos-catalog-guidance strong {
        color: #334155;
        font-size: 0.95rem;
    }

    .pos-catalog-guidance > span:last-child {
        max-width: 360px;
        line-height: 1.45;
    }

    .pos-catalog-guidance-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        margin-bottom: 4px;
        border-radius: 50%;
        color: var(--pos-primary);
        background: #eff6ff;
    }

    .pos-catalog-guidance-icon .rz-icon {
        font-size: 24px !important;
    }

    .pos-page .pos-catalog-grid .row {
        display: flex;
        flex-wrap: wrap;
        margin: 0;
    }

    .pos-page .xcol {
        flex: 0 0 25%;
        max-width: 25%;
        padding: 4px;
    }

    .pos-page .xbtn {
        height: 86px;
        border-radius: 8px;
        box-shadow: none;
    }

    .pos-product-cards {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-template-rows: repeat(4, minmax(0, 1fr));
        gap: 6px;
        min-height: 100%;
        padding: 2px;
        align-content: stretch;
    }

    .pos-product-card {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        min-width: 0;
        min-height: 0;
        padding: 7px;
        border: 1px solid var(--pos-border);
        border-radius: 8px;
        background: var(--pos-surface);
        color: #1f2937;
        text-align: left;
        cursor: pointer;
        transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }

    .pos-product-card:hover {
        border-color: var(--pos-primary);
        box-shadow: 0 2px 6px rgb(37 99 235 / 15%);
    }

    .pos-product-card .pos-product-thumb {
        width: 100%;
        height: 38px;
        margin-bottom: 5px;
        border-radius: 6px;
    }

    .pos-product-name {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        font-size: 0.74rem;
        font-weight: 600;
        line-height: 1.2;
    }

    .pos-product-price {
        margin-top: auto;
        padding-top: 4px;
        font-size: 0.8rem;
        font-weight: 700;
    }

    .pos-product-code {
        margin-top: 3px;
        color: var(--pos-muted);
        font-size: 0.64rem;
    }

    .pos-product-thumb {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        margin-bottom: 4px;
        border-radius: 6px;
        color: var(--pos-muted);
        background: #eef2f6;
    }

    .pos-product-thumb .rz-icon {
        font-size: 18px !important;
    }

    .pos-product-card--placeholder {
        align-items: center;
        justify-content: center;
        border-style: dashed;
        background: #f8fafc;
        color: var(--pos-muted);
        cursor: default;
        opacity: 0.8;
    }

    .pos-product-placeholder-label {
        font-size: 0.66rem;
        font-weight: 600;
        letter-spacing: 0.02em;
        text-transform: uppercase;
    }

    .pos-product-thumb--photo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: inherit;
    }

    .pos-catalog-empty,
    .pos-cart-empty {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        padding: 24px;
        color: #334155;
        text-align: center;
    }

    .pos-catalog-empty {
        flex-direction: column;
        gap: 4px;
    }

    .pos-empty-cart-shell {
        display: grid;
        grid-template-rows: 46px minmax(0, 1fr);
        height: 100%;
    }

    .pos-empty-cart-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 64px 44px 100px;
        align-items: center;
        padding: 0 14px;
        border-bottom: 1px solid var(--pos-border);
        color: #334155;
        font-size: calc(0.72rem * var(--pos-left-panel-font-scale));
        font-weight: 700;
        letter-spacing: 0.03em;
        text-transform: uppercase;
    }

    .pos-empty-cart-header span:not(:first-child) {
        text-align: center;
    }

    .pos-cart-empty > div {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        font-size: calc(0.95rem * var(--pos-left-panel-font-scale));
    }

    .pos-page .pos-cart-column .rz-datatable,
    .pos-page .pos-cart-column .rz-datatable-table,
    .pos-page .pos-cart-column .rz-cell-data,
    .pos-page .pos-cart-column .rz-column-title {
        font-size: inherit;
    }

    .pos-cart-empty-icon {
        color: #a8b0bd;
        font-size: 54px !important;
    }

    .pos-page .pos-checkout-actions {
        flex: 0 0 auto;
        display: flex;
        flex-wrap: nowrap;
        gap: 4px;
        margin-top: 8px;
        padding-top: 6px;
        padding-bottom: 6px;
        border-top: 1px solid var(--pos-border);
        box-sizing: border-box;
        height: 83px;
        margin-bottom: 0;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
    }

    .pos-page .pos-checkout-actions .pos-checkout-action-col {
        flex: 1 1 0;
        max-width: none;
        min-width: 0;
        padding: 0;
    }

    .pos-page .pos-checkout-actions .qbh3 {
        height: 70px;
        min-height: 0;
        border-radius: 4px;
    }

    .pos-page .pos-checkout-actions .pos-checkout-btn-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

    .pos-page .pos-checkout-actions .pos-checkout-btn-icon {
        font-size: 16px !important;
    }

    .pos-page .pos-checkout-actions .pos-tender {
        background: var(--pos-purple) !important;
        color: #fff !important;
        box-shadow: 0 2px 6px rgb(79 45 168 / 25%);
    }

    .pos-page .pos-checkout-actions .pos-tender:hover {
        background: var(--pos-purple-dark) !important;
    }

    .pos-page .pos-checkout-actions .pos-secondary-action {
        background: #eef2f6 !important;
        color: #334155 !important;
    }

    .pos-page .pos-checkout-actions .pos-action-placeholder {
        align-items: center;
        background: #f8fafc;
        border: 1px dashed var(--pos-border);
        border-radius: 4px;
        box-sizing: border-box;
        color: var(--pos-muted);
        display: flex;
        flex-direction: column;
        gap: 5px;
        height: 70px;
        justify-content: center;
        text-transform: uppercase;
    }

    .pos-page .pos-checkout-actions .pos-action-placeholder .rz-icon {
        font-size: 16px !important;
    }

    .pos-page .pos-checkout-actions .pos-action-placeholder span {
        font-size: 0.62rem;
        font-weight: 700;
        letter-spacing: 0.03em;
    }

    .pos-page .pos-checkout-actions .rz-button .qbc,
    .pos-page .pos-checkout-actions .rz-button span {
        color: inherit !important;
    }

    .pos-page .pos-checkout-actions .rz-button {
        font-weight: 700;
    }

    .pos-page .pos-summary {
        grid-row: 3;
        height: 100% !important;
        margin: 0;
        padding-top: 2px;
        box-sizing: border-box;
    }

    .pos-page .pos-summary > [class*="col-"] {
        height: 100%;
    }

    .pos-page .pos-summary-card {
        height: 100% !important;
        padding: 6px 12px !important;
        border: 1px solid var(--pos-border) !important;
        border-radius: 5px !important;
        background: #eef2f6 !important;
    }

    .pos-page .pos-summary-card label {
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.03em;
        text-transform: uppercase;
    }

.pos-page .pos-summary-value-standard {
    display: block;
    padding: 0;
    color: #1f2937;
    font-family: "Helvetica Neue", Roboto, sans-serif;
    font-size: clamp(1.2rem, 1.9vw, 1.55rem);
    font-weight: 500;
    line-height: 1.05;
    text-align: right;
}

    .pos-page .pos-summary-card.pos-amount-due {
        border-color: var(--pos-primary) !important;
        background: var(--pos-primary) !important;
    }

    .pos-page .pos-summary-value-due,
    .pos-page .pos-summary-card.pos-amount-due label {
        color: #ffffff !important;
    }

    .pos-page .pos-summary-value-due {
        display: block;
        padding: 0;
        font-family: "Helvetica Neue", Roboto, sans-serif;
        font-size: clamp(1.8rem, 2.9vw, 2.45rem);
        font-weight: 500;
        line-height: 1.05;
        text-align: right;
    }

    .pos-page .pos-function-bar {
        margin: 0 !important;
        color: var(--pos-muted);
        font-size: 0.72rem;
        letter-spacing: 0.02em;
    }

    .pos-page .pos-function-bar a {
        color: var(--pos-muted);
    }

    .pos-page .rz-button:focus-visible,
    .pos-page input:focus-visible {
        outline: 3px solid rgb(37 99 235 / 35%);
        outline-offset: 2px;
    }

.hamburger-btn {
        font-size: 24px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
    }

    .menubutton {
        height: 50px;
    }

    .nav-drawer {
        position: fixed;
        z-index: 9999;
        top: 0;
        left: -250px;
        width: 250px;
        height: 100%;
        background: #1e90ff;
        color: white;
        transition: left 0.3s ease;
        padding: 20px;
    }

        .nav-drawer.open {
            left: 0;
        }

    .fixed-bottom {
        z-index: 1000 !important; /* Ensure it's below modal */
    }

    .close-btn {
        font-size: 24px;
        background: none;
        border: none;
        color: white;
        cursor: pointer;
        margin-bottom: 10px;
    }

    ul {
        list-style: none;
        padding: 0;
    }

    li {
        margin: 10px 0;
    }

    a {
        color: white;
        text-decoration: none;
    }

    .rz-dialog {
        z-index: 2100 !important;
    }

    .rz-overlay {
        z-index: 2090 !important;
    }

