@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');
@import url('../icons/bootstrap-icons/bootstrap-icons.min.css');

.alert-info {
    color: #000000;
    background-color: #e5f3fa;
    border-color: #0085ca;
}

.text-primary {
    color: #0085ca !important;
}

/*.e-btn.e-primary:disabled, .e-css.e-btn.e-primary:disabled {
    background-color: #0085ca;
    border-color: transparent;
    box-shadow: none;
    color: #fff;
}
*/
.e-btn.e-primary, .e-css.e-btn.e-primary {
    background-color: #0085ca;
    border-color: #0085ca;
    color: #fff;
}

.e-btn.e-secondary:not(:disabled), .e-css.e-btn.e-secondary:not(:disabled) {
    background-color: #2c6eb5;
    border-color: #2c6eb5;
    box-shadow: none;
    color: white;
}

.e-btn.e-secondary:hover:not(:disabled), .e-css.e-btn.e-secondary:hover:not(:disabled) {
    background-color: #1E468C;
    border-color: #1E468C;
    box-shadow: none;
    color: white;
}

.
.e-btn.e-primary:hover:not(:disabled), .e-css.e-btn.e-primary:hover:not(:disabled) {
    background-color: #1E468C;
    border-color: #1E468C;
    box-shadow: none;
    color: #fff;
}

.e-btn.e-flat.e-primary:hover, .e-css.e-btn.e-flat.e-primary:hover {
    background-color: #1E468C;
    border-color: #1E468C;
    color: #fff;
}

.btn-danger:disabled {
    background-color: #bfbbbb;
    border-color: #bfbbbb;
}

.e-btn:disabled {
    background-color: #bfbbbb;
    border-color: #bfbbbb;
}

.e-btn.e-info:disabled {
    background-color: #bfbbbb;
    border-color: #bfbbbb;
}

.e-btn.e-primary:disabled {
    background-color: #bfbbbb;
    border-color: #bfbbbb;
}

.e-btn.e-success:disabled {
    background-color: #bfbbbb;
    border-color: #bfbbbb;
}

.btn.btn-success:disabled {
    background-color: #bfbbbb;
    border-color: #bfbbbb;
}

.e-btn.e-danger:disabled {
    background-color: #bfbbbb;
    border-color: #bfbbbb;
}

.e-btn.e-flat.e-primary, .e-css.e-btn.e-flat.e-primary {
    background-color: #0085ca;
    border-color: #0085ca;
    color: #fff;
}


.e-pager .e-currentitem, .e-pager .e-currentitem:hover {
    background: #0085ca;
    color: #fff;
    opacity: 1;
}

.e-btn.e-primary:focus, .e-css.e-btn.e-primary:focus {
    background-color: #0085ca;
    border-color: #0085ca;
    color: #fff;
    outline: #6c757d 0 solid;
    box-shadow: 0 0 0 0.25em rgb(0 123 255 / 50%);
}



.e-pager .e-numericitem {
    background: #fff;
    border-right-color: #ddd;
    color: #0085ca;
}

.e-pager .e-spacing {
    color: #0085ca;
    opacity: 1;
}

.e-pager .e-numericitem {
    background: #fff;
    border-right-color: #ddd;
    color: #0085ca;
}

.e-pager div.e-icons.e-pager-default {
    color: #0085ca;
}

@font-face {
    font-family: barcode39;
    src: url('../fonts/idhc39m code 39 barcode.ttf') format('truetype');
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0077cc;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.productimage {
    position: relative;
    padding-top: 8px;
    padding-bottom: 8px;
    display: inline-block;
}

.groupimage {
    position: relative;
    padding-top: 0px;
    padding-bottom: 0px;
    margin-right: 16px;
    display: inline-block;
}

.xcode-badge {
    position: absolute;
    right: -9px;
    top: -3px;
    text-align: center;
    min-width: 16px !important;
    max-width: 16px !important;
    font-size: 8px;
    min-height: 16px !important;
    max-height: 16px !important;
}



#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolutesidebar right: 0.75rem;
        top: 0.5rem;
    }

.xpossavebar {
    background-color: #1E468C;
    padding: 8px;
    z-index: 900;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.e-btn.e-danger:disabled, .e-btn.e-danger.e-disabled, .e-css.e-btn.e-danger:disabled, .e-css.e-btn.e-danger.e-disabled {
    color: rgba(255,255,255,.65);
}

.e-btn.e-danger:hover:not([DISABLED]), .e-css.e-btn.e-danger:hover:not([DISABLED]) {
    background: #bb2d3b !important;
    border-color: #b02a37 !important;
    box-shadow: none !important;
    color: #fff !important;
}

.e-btn.e-danger:not([DISABLED]), .e-css.e-btn.e-danger:not([DISABLED]) {
    background: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #fff !important;
}

.e-btn.e-success:hover:not([DISABLED]), .e-css.e-btn.e-success:hover:not([DISABLED]) {
    background: #157347 !important;
    border-color: #146c43 !important;
    box-shadow: none !important;
    color: #fff !important;
}

.e-btn.e-success:not([DISABLED]), .e-css.e-btn.e-success:not([DISABLED]) {
    background: #198754 !important;
    border-color: #198754 !important;
    color: #fff !important;
}

.e-chip-list {
    padding: 4px;
}

@page {
    margin-top: 2cm;
    margin-bottom: 2cm;
    margin-left: 5cm;
    margin-right: 2cm;
}

.col, .col-1, .col-10, .col-11, .col-12, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-auto, .col-lg, .col-lg-1, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-auto, .col-md, .col-md-1, .col-md-10, .col-md-11, .col-md-12, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-auto, .col-sm, .col-sm-1, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-auto, .col-xl, .col-xl-1, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-auto {
    position: relative;
    padding-right: 15px;
    padding-left: 15px;
}

.print-start {
    page-break-before: always;
}

.print-end {
    page-break-after: always;
}

.helpbar {
    padding-top: 16px;
    overflow-x: clip;
    overflow-y: scroll;
    max-height: calc(100vh - 83px);
    min-height: calc(100vh - 83px);
    width: 265px;
    min-width: 265px;
    height: calc(100vh - 83px);
    background-color: white;
    border-left: 3px solid lightgrey;
    padding-top: 16px;
    padding-bottom: 16px;
    padding-right: 8px;
}

.show-help {
    width: 250px;
    min-width: 250px;
}

.e-ddl.e-input-group.e-control-wrapper .e-ddl-icon::before {
    content: "\e729" !important;
}

.e-input-group .e-input-group-icon, .e-input-group.e-control-wrapper .e-input-group-icon {
    border-color: #ced4da !important;
}

.e-input-group .e-input-group-icon:last-child, .e-input-group.e-control-wrapper .e-input-group-icon:last-child {
    border-bottom-right-radius: 3px !important;
    border-top-right-radius: 3px !important;
}

.selectshop > span.e-input-group-icon.e-ddl-icon.e-icons.e-ddl-disable-icon, .language > span.e-input-group-icon.e-ddl-icon.e-icons.e-ddl-disable-icon {
    border: 0 !important;
}

@media (max-width: 1960px) {
    .helpbar {
        position: fixed;
        right: 0;
        width: 290px;
        min-width: 290px;
        background-color: #fff;
    }
}

@media (max-width: 1960px) {
    .show-help {
        width: 273px;
        min-width: 273px;
    }
}

@media (max-width: 641px) {
    .helpbar {
        height: calc(100vh - 160px);
        min-height: calc(100vh - 160px);
    }
}

.swal2-popup {
    border-radius: 6px !important;
}

.xpos-dialog-btn-primary {
    background-color: #1976D2 !important;
    color: #ffffff !important;
}

.xpos-dialog-btn-primary:hover {
    background-color: #1565C0 !important;
}

.xpos-dialog-btn-secondary {
    background-color: #6e7d88 !important;
    color: #ffffff !important;
}

.xpos-dialog-btn-secondary:hover {
    background-color: #5a6770 !important;
}

.xpos-dialog-btn-danger {
    background-color: #dc3545 !important;
    color: #ffffff !important;
}

.xpos-dialog-btn-danger:hover {
    background-color: #c82333 !important;
}

@media only screen and (max-width: 1099.98px) {
    .discount-full {
        display: none !important;
    }
    .discount-short {
        display: inline !important;
    }
}

@media only screen and (min-width: 1100px) {
    .discount-full {
        display: inline !important;
    }
    .discount-short {
        display: none !important;
    }
}

.sidebar {
    height: calc(100vh - 60px) !important;
    height: calc(100dvh - 60px) !important;
    max-height: calc(100vh - 60px) !important;
    max-height: calc(100dvh - 60px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.sidebar::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.badge-new {
    --bs-border-opacity: 1;
    border-color: #FF1493 !important;
    background-color: #FF1493 !important;
    --bs-text-opacity: 1;
    color: white !important;
}

.badge-updated {
    --bs-border-opacity: 1;
    border-color: #673AB7 !important;
    background-color: #673AB7 !important;
    --bs-text-opacity: 1;
    color: white !important;
}
.badge-lookhere {
    --bs-border-opacity: 1;
    border-color: #F97316 !important;
    background-color: #F97316 !important;
    --bs-text-opacity: 1;
    color: white !important;
}

.badge-deprecated {
    --bs-border-opacity: 1;
    border-color: red !important;
    background-color: red !important;
    --bs-text-opacity: 1;
    color: white !important;
}
.badge-info {
    --bs-border-opacity: 1;
    border-color: blue !important;
    background-color: blue !important;
    --bs-text-opacity: 1;
    color: white !important;
}


.headerbarTest {
    width: calc(100% - 60px) !important;
}

.mobileheader {
}

.mobileheadershop {
    width: 200px;
    flex-grow: 0.5;
}

.xpos-listitem-price-space {
    width: 45px;
}

@media screen and ( max-width: 1024px ) {
    .xpos-listitem-price-space {
        width: 42px !important;
    }

    .mobileheader {
        width: 80%;
    }

    .sidebar {
        position: fixed;
        height: calc(100vh - 60px) !important;
        height: calc(100dvh - 60px) !important;
        max-height: calc(100vh - 60px) !important;
        max-height: calc(100dvh - 60px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        /* z-index: 100000; */
        /* width: 240px; */
    }

    .sidebar::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }


    .nav {
        max-width: 200px;
        min-width: 200px;
    }
}

.e-reportviewer-pageview {
    -webkit-box-shadow: none;
    box-shadow: none;
}

.swal2-container {
    z-index: 100000000000;
}

.e-viewer-verticalblock {
    background-color: #f9fafb
}

/*#region theme*/
:root {
    --xpos-header-background: #1175c1;
    --xpos-header-text-color: white;
    --xpos-content-background: #e0e0e0;
    --xpos-scrollable-background: #f0f0f0;
    --xpos-section-header-background-color: #1175c1;
    --xpos-section-header-text-color: white;
    --xpos-button-border: 2px solid #c0c0c0;
    --xpos-button-border-light: 2px solid #f0f0f0;
    --xpos-button-border-selected: 2px solid #1175c1;
    --xpos-button-background-color: #ffffff;
    --xpos-button-background-color-hover: white;
    --xpos-button-background-color-selected: #f0f8ff;
    --xpos-button-text-color: #757b87;
    --xpos-button-text-color-selected: black;
    --xpos-button-box-shadow: #eaeaea 2px 2px 1px 1px;
    --xpos-button-box-shadow-selected: #b4d5ee 2px 2px 1px 1px;
    --xpos-icon-color: #1175c1;
    --xpos-basket-text-color: black;
    --xpos-basket-subtext-color: #adb3bf;
    --xpos-basket-image-placeholder-color: #c7cdd9;
}

.e-grid th.e-headercell {
    height: 38px !important;
}

.e-currentitem {
    background: #0085ca !important;
    color: white !important;
}

/*#endregion */
.e-acrdn-header-content {
    text-decoration: none !important;
}

.e-acrdn-header-content:focus {
    text-decoration: none !important;
}

.e-acrdn-header-content:hover {
    text-decoration: none !important;
}

/*#region page elements*/
.xpos-page-header {
    background-color: var(--xpos-header-background);
    color: var(--xpos-header-text-color);
    margin-bottom: 0.75rem;
    padding: 0.5rem 1rem 0.5rem 1rem;
    border-radius: 2px;
    height: 65px;
    font-size: xx-large;
    /*    font-weight: 900;*/
    text-transform: uppercase !important;
}

.xpos-page-content {
    background-color: var(--xpos-content-background);
}


.xpos-section-header {
    background-color: var(--xpos-section-header-background-color);
    color: var(--xpos-section-header-text-color);
    border-radius: 2px;
    height: 40px;
    padding: 8px 16px 8px 16px;
    text-align: left;
    text-transform: uppercase !important;
    font-size: large;
    /* font-weight: 900;*/
}

.xpos-section-subheader {
    background-color: var(--xpos-section-header-background-color);
    color: var(--xpos-section-header-text-color);
    border-radius: 2px;
    height: 24px;
    padding: 4px 2px 2px 8px;
    text-align: left;
    text-transform: uppercase !important;
    font-size: small;
    /*border-color: var(--xpos-section-header-background-color);
    border-style: solid;
    border-width: 1px;*/
    /* font-weight: 900;*/
}

.xpos-section-header-detail {
    margin-top: 0.25rem;
    margin-left: auto;
    font-size: small;
}

.xpos-scrollable-area {
    background-color: var(--xpos-scrollable-background);
    border-radius: 4px;
    overflow-x: hidden;
    overflow-y: auto;
}

.xpos-scrollable-area::-webkit-scrollbar {
    width: 20px;
    height: 8px;
    background: var(--xpos-button-background-color);
    border: var(--xpos-button-border-light);
    border-radius: 4px !important;
}

.xpos-scrollable-area::-webkit-scrollbar-thumb {
    background: var(--xpos-button-background-color-selected);
    border: var(--xpos-button-border-selected);
    border-radius: 4px !important;
}

/* Phones: no 20px scrollbar beside the till's lists (customer search, product search, ...): the phone's own thin scrollbar, which
   only shows while the list is being scrolled. scrollbar-width makes Chrome use its own scrollbar in place of the styled one above;
   browsers that don't know it get no scrollbar at all */
@media (max-width: 767.98px), (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
    .xpos-scrollable-area {
        scrollbar-width: thin;
    }

        .xpos-scrollable-area::-webkit-scrollbar {
            width: 0;
            height: 0;
            border: none;
            background: transparent;
        }
}


.xpos-collapsible-wrapper {
    display: flex;
    overflow: hidden;
}

.xpos-collapsible-wrapper:after {
    content: '';
    height: 50px;
    transition: height 0.3s linear, max-height 0s 0.3s linear;
    max-height: 0px;
}

.xpos-collapsible-wrapper.xpos-collapsed > .xpos-collapsible-area {
    margin-bottom: -2000px;
    transition: margin-bottom 0.3s cubic-bezier(1, 0, 1, 1), visibility 0s 0.3s, max-height 0s 0.3s;
    visibility: hidden;
    max-height: 0;
}

.xpos-collapsible-wrapper.xpos-collapsed:after {
    height: 0;
    transition: height 0.3s linear;
    max-height: 50px;
}

.xpos-collapsible-area {
    transition: margin-bottom 0.3s cubic-bezier(0, 0, 0, 1);
    margin-bottom: 0;
    max-height: 1000000px;
}

/*#endregion */

/*#region dialogs */
.xpos-dialog-wrapper {
    z-index: 999;
    display: flex;
    position: fixed;
    align-items: center;
    justify-content: center;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.xpos-dialog-window {
    background-color: var(--xpos-content-background);
    border-radius: 4px;
    opacity: 1;
    z-index: 999;
    left: 0px;
    top: 0px;
    position: relative;
    display: inline-flex;
    border: var(--xpos-button-border-selected);
    padding: 12px;
}

.ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xpos-dialog-narrow {
    height: calc(100vh - 80px);
    width: calc(50vw);
}

.xpos-dialog-wide {
    height: calc(100vh - 80px);
    width: calc(76vw);
}

.xpos-dialog-block {
    z-index: 998;
    display: block;
    position: absolute;
    background-color: rgba(120, 120, 120, 0.75);
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    position: fixed;
}

.xpos-dialog-button {
    border: 1px solid black;
    color: black;
    height: 24px;
}

.xpos-dialog-button-disabled {
    border: 1px solid lightgrey;
    color: lightgrey;
}

/*#endregion */

/*#region icons and images */
.xpos-image {
    background-color: white;
    width: 60px;
    height: 60px;
    margin: 0.5rem auto 0.5rem auto;
    font-size: small;
    color: var(--xpos-basket-image-placeholder-color);
    text-align: center;
    text-transform: uppercase !important;
}

.xpos-icon {
    width: 60px;
    height: 60px;
    margin: auto;
    font-size: xx-large;
    color: var(--xpos-icon-color);
    text-align: center;
    text-transform: uppercase !important;
}

.xpos-no-icon {
    width: 60px;
    height: 60px;
    margin: auto;
    font-size: small;
    color: var(--xpos-basket-image-placeholder-color);
    text-align: center;
    text-transform: uppercase !important;
}

/*#endregion */

/*#region buttons */
.xpos-button {
    width: 120px;
    height: 120px;
    font-size: small;
    font-weight: 900;
    color: var(--xpos-button-text-color);
    text-align: center !important;
    border-radius: 2px;
    border: var(--xpos-button-border);
    background-color: var(--xpos-button-background-color);
    box-shadow: var(--xpos-button-box-shadow);
    margin: 3px;
    justify-content: center;
    display: flex !important;
    flex-direction: column !important;
    padding: 4px;
    user-select: none;
}

.xpos-button:hover {
    border: var(--xpos-button-border-selected);
    background-color: var(--xpos-button-background-color-hover);
    box-shadow: var(--xpos-button-box-shadow-selected);
}

.xpos-button-selected {
    color: var(--xpos-button-text-color-selected);
    border: var(--xpos-button-border-selected);
    background-color: var(--xpos-button-background-color-selected);
    box-shadow: var(--xpos-button-box-shadow-selected);
}

.xpos-button-selected:hover {
    background-color: var(--xpos-button-background-color-selected);
}

.xpos-button-small {
    width: 60px;
    height: 60px;
    padding: 2px 0 2px 0;
}

.xpos-button-smallwide {
    width: 120px;
    min-width: 120px;
    height: 60px;
    padding: 2px 0 2px 0;
}

.xpos-button-large {
    width: 180px;
    height: 180px;
    font-size: xx-large;
}

.xpos-button-red {
    color: white;
    background-color: red;
}

.xpos-button-red:hover {
    background-color: red;
}

.xpos-button-red > .xpos-icon {
    color: white;
}

.xpos-button-blue {
    color: white;
    background-color: blue;
}

.xpos-button-blue:hover {
    background-color: blue;
}

.xpos-button-blue > .xpos-icon {
    color: white;
}


.xpos-button-green {
    color: white;
    background-color: green;
}

.xpos-button-green:hover {
    background-color: green;
}

.xpos-button-green > .xpos-icon {
    color: white;
}

.xpos-button-navigate {
    color: white;
    background-color: var(--xpos-header-background);
}

.xpos-button-navigate:hover {
    background-color: var(--xpos-header-background);
}

.xpos-button-navigate > .xpos-icon {
    color: white;
}

.xpos-button-text {
    text-transform: uppercase !important;
    text-align: center;
    width: 100%;
}

/*#endregion */

/*#region textbox */
.xpos-textbox {
    min-height: 60px !important;
    font-size: xx-large;
    border: 1px solid black;
    background-color: white;
    border-radius: 2px;
    padding-left: 1rem;
    padding-right: 1rem;
}

/*#endregion */

/*#region listitem */
.xpos-listitem {
    border-radius: 2px;
    margin: 2px;
    font-size: larger;
    /*    font-weight: 900;*/
    border: var(--xpos-button-border-light);
    background-color: var(--xpos-button-background-color);
}

.xpos-listitem:hover {
    border: var(--xpos-button-border-selected);
    background-color: var(--xpos-button-background-color-hover);
}

.xpos-listitem.readonly:hover {
    border: unset;
}

.xpos-listitem-selected {
    border: var(--xpos-button-border-selected);
    background-color: var(--xpos-button-background-color-selected);
}

.xpos-listitem-selected:hover {
    background-color: var(--xpos-button-background-color-selected);
}


.xpos-listitem-image {
    text-align: center !important;
}

.xpos-listitem-description {
    margin: 0.75rem 0 0.75rem 0;
}

.xpos-listitem-description-main {
    color: var(--xpos-basket-text-color);
}

.xpos-listitem-description-detail {
    font-size: small;
    color: var(--xpos-basket-subtext-color);
}

.xpos-listitem-date {
    color: var(--xpos-basket-text-color);
    text-align: right !important;
    font-variant-numeric: tabular-nums;
}

.xpos-listitem-quantity {
    color: var(--xpos-basket-text-color);
    text-align: center !important;
    font-variant-numeric: tabular-nums;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.xpos-listitem-minus, .xpos-listitem-plus {
    font-size: 28px;
    color: #C0C0C0 !important;
    padding: 0 5px;
}

.xpos-listitem-minus {
    margin-bottom: 6px;
}

.xpos-listitem-plus {
    margin-bottom: 2px;
}

.xpos-listitem-discount {
    color: var(--xpos-basket-text-color);
    text-align: center !important;
    font-variant-numeric: tabular-nums;
}

.xpos-listitem-vatcode {
    color: var(--xpos-basket-text-color);
    text-align: center !important;
    font-variant-numeric: tabular-nums;
}

.xpos-listitem-price {
    color: var(--xpos-basket-text-color);
    text-align: right !important;
    font-variant-numeric: tabular-nums;
}

/*#endregion */

/*#region colors */
.text-xpos-color {
    color: var(--xpos-section-header-background-color) !important;
}

.bg-xpos-color {
    background-color: var(--xpos-section-header-background-color) !important;
    color: var(--xpos-header-text-color) !important;
}

/*#endregion */

.bg-blur {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: 1;
    backdrop-filter: blur(4px);
}

.xx-larg {
    font-size: xx-large;
}

.x-larg {
    font-size: x-large;
}

.e-table .e-columnheader .e-headercell {
    height: 48px;
    border-left: 1px solid #efefef;
}

.navbar-brand-sales {
    display: none;
}

.border-b {
    border-bottom: 1px solid #dee2e6 !important;
}

.border-t {
    border-top: 1px solid #dee2e6 !important;
}

.border-r {
    border-right: 1px solid #dee2e6 !important;
}

.border-l {
    border-left: 1px solid #dee2e6 !important;
}

/* page titles stay blue on hover/focus; bootstrap's .navbar-brand:hover would turn them near-black */
.navbar-brand,
.navbar-brand:hover,
.navbar-brand:focus {
    color: #1E468C;
}

.e-display-none {
    display: none !important;
}

/* HTML data grid (Products, Products Bundle) - markup in Products.razor / ProductsBundle.razor */
.pgrid {
    overflow: auto;
    border: 1px solid #dee2e6;
    border-radius: 4px 4px 0 0;
    background-color: #fff;
}

.pgrid-table {
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}

    .pgrid-table th,
    .pgrid-table td {
        padding: 4px 8px;
        border-bottom: 1px solid #dee2e6;
        background-color: #fff;
        vertical-align: middle;
        overflow: hidden;
        white-space: normal;
        overflow-wrap: break-word;
    }

    .pgrid-table th {
        position: sticky;
        top: 0;
        z-index: 2;
        height: 42px;
        font-weight: 600;
        color: #212529;
        user-select: none;
        white-space: nowrap;
    }

    .pgrid-table .pgrid-frozen {
        position: sticky;
        z-index: 1;
    }

    .pgrid-table th.pgrid-frozen {
        z-index: 3;
    }

    .pgrid-table tr > .pgrid-frozen:nth-last-child(1 of .pgrid-frozen) {
        border-right: 1px solid #dee2e6;
    }

    .pgrid-table tbody tr {
        cursor: pointer;
    }

        .pgrid-table tbody tr:hover > td {
            background-color: #f8f9fa;
        }

        .pgrid-table tbody tr.pgrid-selected > td {
            background-color: #e2e9f8;
        }

    .pgrid-table.pgrid-static tbody tr {
        cursor: default;
    }

    /* lets the xcodes badge on a product image overhang the image */
    .pgrid-table td.pgrid-image {
        overflow: visible;
    }

.pgrid-check {
    text-align: center;
    padding-left: 10px !important;
    padding-right: 0 !important;
}

/* a grid that sets its checkbox column's width has the checkbox in the middle, the same space either side */
.pgrid-check.pgrid-check-centred {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.pgrid-sortable {
    cursor: pointer;
}

    .pgrid-sortable:hover {
        background-color: #f8f9fa !important;
    }

.pgrid-dragover {
    box-shadow: inset 2px 0 0 #0d6efd;
}

.pgrid-header {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.pgrid-header-text {
    overflow: hidden;
    text-overflow: ellipsis;
}

.pgrid-sort-icon {
    font-size: 12px;
    color: #6c757d;
}

.pgrid-sort-number {
    font-size: 10px;
    color: #6c757d;
}

.pgrid-resizer {
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    cursor: col-resize;
}

    .pgrid-resizer:hover {
        border-right: 2px solid #0d6efd;
    }

.pgrid-table .pgrid-filler {
    padding: 0;
}

.pgrid-empty {
    text-align: left;
    cursor: default;
}

.pgrid-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.5);
    z-index: 5;
}

.pgrid-pager {
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 8px;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 4px 4px;
    background-color: #fff;
}

.pgrid-pager-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

.pgrid-page-btn {
    min-width: 32px;
    min-height: 32px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: #212529;
    font-size: 14px;
}

    .pgrid-page-btn:hover:not(:disabled) {
        background-color: #e9ecef;
    }

    .pgrid-page-btn.active {
        background-color: #0d6efd;
        color: #fff;
    }

    .pgrid-page-btn:disabled {
        color: #adb5bd;
    }

.pgrid-pager-info {
    font-size: 14px;
    color: #6c757d;
}

/* an icon used as a button inside a grid row, e.g. remove from bundle */
.grid-icon-button {
    padding: 0;
    border: none;
    background: none;
    font-size: 20px;
    line-height: 1;
}

    .grid-icon-button:hover {
        opacity: 0.7;
    }

/* row drag and drop: the grip column and the row being dropped on */
.pgrid-table .pgrid-drag {
    padding: 0 !important;
    text-align: center;
    color: #adb5bd;
    cursor: grab;
}

.pgrid-table tbody tr.pgrid-row-dragover > td {
    box-shadow: inset 0 2px 0 #0d6efd;
}

/* Underlined tabs for the filter boxes, matching the customer edit and create dialogs */
.filter-tabs {
    display: flex;
    flex-direction: row;
    border-bottom: 1px solid #dee2e6;
}

.filter-tabs .tab {
    height: 40px;
    cursor: pointer;
    padding: 0 16px;
    background-color: transparent;
    color: #495057;
    transition: 0.3s;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    margin-bottom: -1px;
}

.filter-tabs .tab:hover {
    opacity: 0.85;
}

.filter-tabs .tab.active {
    color: #2078C0;
    border-bottom-color: #2078C0;
    font-weight: 500;
    opacity: 1;
}

.filter-tab {
    padding: 12px 0;
}

/* tabs stacked in one cell, so the box is as tall as the tallest of them; a fill tab (columns, sorting) adds no height
   and takes the box's height instead */
.filter-tabs-fit {
    display: grid;
    position: relative;
}

.filter-tabs-fit > .filter-tab {
    grid-area: 1 / 1;
    min-width: 0;
}

.filter-tabs-fit > .filter-tab.filter-tab-fill {
    position: absolute;
    inset: 0;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
}

/* the scrolling area under the tabs: rows reach into their gutters, which only spill sideways once the vertical
   scroll bar takes its width, so the overflow is just empty gutter and is hidden rather than scrolled */
.filter-tabs + div {
    overflow-x: hidden;
}

/* Saved filters bar: button filters, the screen's search, then the saved filters list, save and delete */
.saved-filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.saved-filter-content {
    flex: 1 1 auto;
    min-width: 0;
}

.saved-filter-search-actions {
    flex: 0 0 auto;
    display: flex;
    gap: 8px;
}

/* dragged to set the search box's width, making room for more filter buttons */
.saved-filter-splitter {
    flex: 0 0 auto;
    align-self: stretch;
    width: 8px;
    margin: 0 -4px;
    cursor: col-resize;
    touch-action: none;
    position: relative;
}

.saved-filter-splitter::after {
    content: "";
    position: absolute;
    top: 20%;
    bottom: 20%;
    left: 3px;
    width: 2px;
    border-radius: 1px;
    background-color: #ced4da;
}

.saved-filter-splitter:hover::after,
.saved-filter-splitter.dragging::after {
    background-color: #2078c0;
}

/* overflow buttons are absolutely placed and hidden, so the row is only as wide as the shown ones */
.saved-filter-buttons {
    position: relative;
    display: flex;
    gap: 6px;
    flex: 0 0 auto;
}

.saved-filter-button {
    white-space: nowrap;
}

/* a filter whose settings are the ones applied; specific enough to win over Syncfusion's outline button, which loads after this */
.saved-filter-bar .e-btn.e-outline.saved-filter-button.active {
    background-color: #e7f1fb;
    border-color: #2078c0;
    box-shadow: inset 0 -2px 0 #2078c0;
    /* the selected filter's name in dark blue (its icon keeps its own colour) */
    color: #0b3d6e;
}

.saved-filter-button .bi,
.saved-filter-more-item .bi {
    margin-right: 4px;
}

.saved-filter-badge {
    margin-left: 6px;
    font-size: 0.75em;
    color: #fff;
}

.saved-filter-more {
    position: relative;
    flex: 0 0 auto;
}

.saved-filter-more-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.saved-filter-more-list {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1001;
    min-width: 220px;
    margin-top: 2px;
    padding: 4px 0;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.saved-filter-more-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 6px 12px;
    border: none;
    background: none;
    text-align: left;
    white-space: nowrap;
    /* the same text as the filter buttons (Syncfusion's buttons) */
    font-size: 14px;
    font-weight: 400;
    line-height: 1.571em;
}

.saved-filter-more-item:hover,
.saved-filter-more-item.active {
    background-color: #f1f3f5;
    color: #0b3d6e;
}

/* Filter button order on the filters box's Display Options tab */
.filter-sorter {
    margin-top: 16px;
}

.filter-sorter-title {
    font-weight: 500;
    margin-bottom: 6px;
}

.filter-sorter-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    border-bottom: 1px solid #f1f3f5;
}

.filter-sorter-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Dragging filter buttons to reorder them: the wrapper is dragged, and the button it is over is marked */
.saved-filter-drag {
    display: inline-flex;
}

.saved-filter-drag.drop-target .saved-filter-button {
    box-shadow: inset 3px 0 0 #2078c0;
}

.saved-filter-more-item.drop-target {
    box-shadow: inset 0 2px 0 #2078c0;
}

.filter-sorter-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.filter-sorter-row {
    cursor: grab;
}

.filter-sorter-row.drop-target {
    box-shadow: inset 0 2px 0 #2078c0;
}

.filter-sorter-grip {
    color: #adb5bd;
}

/* while dragging a filter, the More list's click-away backdrop lets the drag through to the buttons under it */
.xpos-dragging .saved-filter-more-backdrop {
    pointer-events: none;
}

.filter-sorter-count {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin: 0 6px 0 0;
    color: #6c757d;
    cursor: pointer;
}

.filter-sorter-count .form-check-input {
    margin: 0;
}

/* Column picker on Display Options: available and selected columns side by side, then the sort */
.column-picker-hint {
    color: #6c757d;
    font-size: 0.85rem;
    margin: 12px 0 8px;
}

.column-picker-lists {
    display: flex;
    gap: 16px;
}

.column-picker-title {
    font-weight: 500;
    margin-bottom: 6px;
}

.column-picker-list {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    height: 260px;
    overflow-y: auto;
    padding: 4px;
}

.column-picker-list.drop-target {
    box-shadow: inset 0 0 0 2px #2078c0;
}

.column-picker-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 4px;
    border-radius: 3px;
    cursor: grab;
    user-select: none;
}

.column-picker-row:hover {
    background-color: #f1f5f9;
}

.column-picker-row.drop-target {
    box-shadow: inset 0 2px 0 #2078c0;
}

.column-picker-row .btn {
    padding: 0 6px;
}

.column-picker-grip {
    color: #adb5bd;
}

.column-picker-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.column-picker-sort {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

/* the column name takes whatever the direction and move buttons leave, so the row is filled */
.column-picker-sort .form-select {
    flex: 1 1 auto;
    min-width: 0;
}

.column-picker-sort-number {
    width: 18px;
    text-align: right;
    color: #6c757d;
}

.column-picker-direction {
    min-width: 120px;
    text-align: left;
}

.column-picker-number {
    width: 20px;
    text-align: right;
    color: #6c757d;
    font-size: 0.85rem;
}

.column-picker-row {
    padding: 4px 6px;
    border: 1px solid transparent;
}

.column-picker-list[data-drag-key="s:"] .column-picker-row {
    background-color: #f8fbfe;
    border-color: #e3edf7;
    margin-bottom: 2px;
}

/* explains a Display Options setting, under its checkbox */
.display-option-description {
    color: #6c757d;
    font-size: 0.85rem;
    margin: 2px 0 0 26px;
}

/* Edit and Delete for a right-clicked saved filter button, above the More list */
.saved-filter-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1002;
}

.saved-filter-menu {
    position: fixed;
    z-index: 1003;
    min-width: 140px;
    padding: 4px 0;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.saved-filter-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 6px 12px;
    border: none;
    background: none;
    text-align: left;
    font-size: 14px;
    font-family: inherit;
    font-weight: 400;
    line-height: 1.571em;
    white-space: nowrap;
}

.saved-filter-menu-item:hover:not(:disabled) {
    background-color: #f1f5f9;
}

.saved-filter-menu-item:disabled {
    color: #adb5bd !important;
}

/* customer image hover preview (Client/Components/CustomerImage.razor) */
.e-tooltip-wrap.customer-image-tooltip {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    max-width: none !important;
}
.e-tooltip-wrap.customer-image-tooltip .e-tip-content {
    padding: 0 !important;
}
.e-tooltip-wrap.customer-image-tooltip .e-arrow-tip {
    display: none !important;
}
.customer-image-upload {
    background: #fff;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.customer-image-upload:hover {
    background: #f1f6ff;
}

/* Payment button colours chosen on the terminal Payment Layout tab (VCLOUD-9817); disabled buttons stay grey */
.e-btn.e-primary.pay-colour-navy:not(:disabled), .e-css.e-btn.e-primary.pay-colour-navy:not(:disabled), .pl-tile.pay-colour-navy {
    background-color: #1E468C;
    border-color: #1E468C;
    color: #fff;
}
.e-btn.e-primary.pay-colour-green:not(:disabled), .e-css.e-btn.e-primary.pay-colour-green:not(:disabled), .pl-tile.pay-colour-green {
    background-color: #27bf4a;
    border-color: #27bf4a;
    color: #fff;
}
.e-btn.e-primary.pay-colour-orange:not(:disabled), .e-css.e-btn.e-primary.pay-colour-orange:not(:disabled), .pl-tile.pay-colour-orange {
    background-color: #e8862a;
    border-color: #e8862a;
    color: #fff;
}
.e-btn.e-primary.pay-colour-red:not(:disabled), .e-css.e-btn.e-primary.pay-colour-red:not(:disabled), .pl-tile.pay-colour-red {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}
.e-btn.e-primary.pay-colour-purple:not(:disabled), .e-css.e-btn.e-primary.pay-colour-purple:not(:disabled), .pl-tile.pay-colour-purple {
    background-color: #6f42c1;
    border-color: #6f42c1;
    color: #fff;
}
.e-btn.e-primary.pay-colour-grey:not(:disabled), .e-css.e-btn.e-primary.pay-colour-grey:not(:disabled), .pl-tile.pay-colour-grey {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}
.e-btn.e-primary[class*="pay-colour-"]:hover:not(:disabled) {
    filter: brightness(0.9);
}

/* Underlined tabs for the filter boxes, matching the customer edit and create dialogs */
.filter-tabs {
    display: flex;
    flex-direction: row;
    border-bottom: 1px solid #dee2e6;
}

.filter-tabs .tab {
    height: 40px;
    cursor: pointer;
    padding: 0 16px;
    background-color: transparent;
    color: #495057;
    transition: 0.3s;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    margin-bottom: -1px;
}

.filter-tabs .tab:hover {
    opacity: 0.85;
}

.filter-tabs .tab.active {
    color: #2078C0;
    border-bottom-color: #2078C0;
    font-weight: 500;
    opacity: 1;
}

.filter-tab {
    padding: 12px 0;
}

/* tabs stacked in one cell, so the box is as tall as the tallest of them; a fill tab (columns, sorting) adds no height
   and takes the box's height instead */
.filter-tabs-fit {
    display: grid;
    position: relative;
}

.filter-tabs-fit > .filter-tab {
    grid-area: 1 / 1;
    min-width: 0;
}

.filter-tabs-fit > .filter-tab.filter-tab-fill {
    position: absolute;
    inset: 0;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
}

/* the scrolling area under the tabs: rows reach into their gutters, which only spill sideways once the vertical
   scroll bar takes its width, so the overflow is just empty gutter and is hidden rather than scrolled */
.filter-tabs + div {
    overflow-x: hidden;
}

/* Saved filters bar: button filters, the screen's search, then the saved filters list, save and delete */
.saved-filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.saved-filter-content {
    flex: 1 1 auto;
    min-width: 0;
}

.saved-filter-search-actions {
    flex: 0 0 auto;
    display: flex;
    gap: 8px;
}

/* dragged to set the search box's width, making room for more filter buttons */
.saved-filter-splitter {
    flex: 0 0 auto;
    align-self: stretch;
    width: 8px;
    margin: 0 -4px;
    cursor: col-resize;
    touch-action: none;
    position: relative;
}

.saved-filter-splitter::after {
    content: "";
    position: absolute;
    top: 20%;
    bottom: 20%;
    left: 3px;
    width: 2px;
    border-radius: 1px;
    background-color: #ced4da;
}

.saved-filter-splitter:hover::after,
.saved-filter-splitter.dragging::after {
    background-color: #2078c0;
}

/* overflow buttons are absolutely placed and hidden, so the row is only as wide as the shown ones */
.saved-filter-buttons {
    position: relative;
    display: flex;
    gap: 6px;
    flex: 0 0 auto;
}

.saved-filter-button {
    white-space: nowrap;
}

/* a filter whose settings are the ones applied; specific enough to win over Syncfusion's outline button, which loads after this */
.saved-filter-bar .e-btn.e-outline.saved-filter-button.active {
    background-color: #e7f1fb;
    border-color: #2078c0;
    box-shadow: inset 0 -2px 0 #2078c0;
    /* the selected filter's name in dark blue (its icon keeps its own colour) */
    color: #0b3d6e;
}

.saved-filter-button .bi,
.saved-filter-more-item .bi {
    margin-right: 4px;
}

.saved-filter-badge {
    margin-left: 6px;
    font-size: 0.75em;
    color: #fff;
}

.saved-filter-more {
    position: relative;
    flex: 0 0 auto;
}

.saved-filter-more-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.saved-filter-more-list {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1001;
    min-width: 220px;
    margin-top: 2px;
    padding: 4px 0;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.saved-filter-more-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 6px 12px;
    border: none;
    background: none;
    text-align: left;
    white-space: nowrap;
    /* the same text as the filter buttons (Syncfusion's buttons) */
    font-size: 14px;
    font-weight: 400;
    line-height: 1.571em;
}

.saved-filter-more-item:hover,
.saved-filter-more-item.active {
    background-color: #f1f3f5;
    color: #0b3d6e;
}

/* Filter button order on the filters box's Display Options tab */
.filter-sorter {
    margin-top: 16px;
}

.filter-sorter-title {
    font-weight: 500;
    margin-bottom: 6px;
}

.filter-sorter-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    border-bottom: 1px solid #f1f3f5;
}

.filter-sorter-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Dragging filter buttons to reorder them: the wrapper is dragged, and the button it is over is marked */
.saved-filter-drag {
    display: inline-flex;
}

.saved-filter-drag.drop-target .saved-filter-button {
    box-shadow: inset 3px 0 0 #2078c0;
}

.saved-filter-more-item.drop-target {
    box-shadow: inset 0 2px 0 #2078c0;
}

.filter-sorter-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.filter-sorter-row {
    cursor: grab;
}

.filter-sorter-row.drop-target {
    box-shadow: inset 0 2px 0 #2078c0;
}

.filter-sorter-grip {
    color: #adb5bd;
}

/* while dragging a filter, the More list's click-away backdrop lets the drag through to the buttons under it */
.xpos-dragging .saved-filter-more-backdrop {
    pointer-events: none;
}

.filter-sorter-count {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin: 0 6px 0 0;
    color: #6c757d;
    cursor: pointer;
}

.filter-sorter-count .form-check-input {
    margin: 0;
}

/* Column picker on Display Options: available and selected columns side by side, then the sort */
.column-picker-hint {
    color: #6c757d;
    font-size: 0.85rem;
    margin: 12px 0 8px;
}

.column-picker-lists {
    display: flex;
    gap: 16px;
}

.column-picker-title {
    font-weight: 500;
    margin-bottom: 6px;
}

.column-picker-list {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    height: 260px;
    overflow-y: auto;
    padding: 4px;
}

.column-picker-list.drop-target {
    box-shadow: inset 0 0 0 2px #2078c0;
}

.column-picker-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 4px;
    border-radius: 3px;
    cursor: grab;
    user-select: none;
}

.column-picker-row:hover {
    background-color: #f1f5f9;
}

.column-picker-row.drop-target {
    box-shadow: inset 0 2px 0 #2078c0;
}

.column-picker-row .btn {
    padding: 0 6px;
}

.column-picker-grip {
    color: #adb5bd;
}

.column-picker-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.column-picker-sort {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

/* the column name takes whatever the direction and move buttons leave, so the row is filled */
.column-picker-sort .form-select {
    flex: 1 1 auto;
    min-width: 0;
}

.column-picker-sort-number {
    width: 18px;
    text-align: right;
    color: #6c757d;
}

.column-picker-direction {
    min-width: 120px;
    text-align: left;
}

.column-picker-number {
    width: 20px;
    text-align: right;
    color: #6c757d;
    font-size: 0.85rem;
}

.column-picker-row {
    padding: 4px 6px;
    border: 1px solid transparent;
}

.column-picker-list[data-drag-key="s:"] .column-picker-row {
    background-color: #f8fbfe;
    border-color: #e3edf7;
    margin-bottom: 2px;
}

/* explains a Display Options setting, under its checkbox */
.display-option-description {
    color: #6c757d;
    font-size: 0.85rem;
    margin: 2px 0 0 26px;
}

/* Edit and Delete for a right-clicked saved filter button, above the More list */
.saved-filter-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1002;
}

.saved-filter-menu {
    position: fixed;
    z-index: 1003;
    min-width: 140px;
    padding: 4px 0;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.saved-filter-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 6px 12px;
    border: none;
    background: none;
    text-align: left;
    font-size: 14px;
    font-family: inherit;
    font-weight: 400;
    line-height: 1.571em;
    white-space: nowrap;
}

.saved-filter-menu-item:hover:not(:disabled) {
    background-color: #f1f5f9;
}

.saved-filter-menu-item:disabled {
    color: #adb5bd !important;
}

/* customer image hover preview (Client/Components/CustomerImage.razor) */
.e-tooltip-wrap.customer-image-tooltip {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    max-width: none !important;
}
.e-tooltip-wrap.customer-image-tooltip .e-tip-content {
    padding: 0 !important;
}
.e-tooltip-wrap.customer-image-tooltip .e-arrow-tip {
    display: none !important;
}
.customer-image-upload {
    background: #fff;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.customer-image-upload:hover {
    background: #f1f6ff;
}

/* Display Options' Fonts & Sizes: the header and row settings, and a preview of them */
.grid-fonts-form td,
.grid-fonts-form th {
    padding: 4px 12px 4px 0;
    vertical-align: middle;
}

.grid-fonts-form th {
    font-weight: 500;
}

.grid-fonts-label {
    font-weight: 500;
    white-space: nowrap;
}

.grid-fonts-preview {
    width: 100%;
    border: 1px solid #dee2e6;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 4px;
}

    .grid-fonts-preview th,
    .grid-fonts-preview td {
        padding: 4px 8px;
        border-bottom: 1px solid #dee2e6;
        color: #212529;
    }

    .grid-fonts-preview th {
        height: 42px;
    }

    .grid-fonts-preview tbody tr:last-child td {
        border-bottom: none;
    }

.grid-fonts-columns td {
    padding: 2px 16px 2px 0;
    vertical-align: middle;
}

/* the grid header menu (right-click a header) and its header text editor, beside the pointer */
.grid-header-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1002;
}

.grid-header-menu {
    position: fixed;
    z-index: 1003;
    min-width: 190px;
    padding: 4px 0;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
}

.grid-header-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 6px 12px;
    border: none;
    background: none;
    text-align: left;
    white-space: nowrap;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.571em;
    color: #212529;
}

    .grid-header-menu-item:hover:not(:disabled) {
        background-color: #f8f9fa;
    }

    .grid-header-menu-item:disabled {
        opacity: .45;
    }

.grid-header-menu-divider {
    margin: 4px 0;
    border-top: 1px solid #dee2e6;
}

.grid-header-title-editor {
    width: 280px;
    padding: 12px;
}

.grid-header-title-label {
    margin-bottom: 4px;
    font-weight: 500;
}

/* the Fonts & Sizes tables keep their own size and no row lines, whatever a screen sets for tables (e.g. ProductsBundle on Products) */
.grid-fonts-form,
.grid-fonts-columns {
    width: auto;
}

    .grid-fonts-form td,
    .grid-fonts-form th,
    .grid-fonts-columns td {
        border-bottom: none;
    }

/* List page toolbars (ArchiveButtons, BundleButtons): button groups on wide screens, dropdowns on phones */
.toolbar-wide {
    display: contents;
}

.toolbar-narrow {
    display: none;
}

@media (max-width: 767.98px), (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
    .toolbar-wide {
        display: none;
    }

    .toolbar-narrow {
        display: contents;
    }
}

/* Phones: .phone-hide is left out, and a dialog with CssClass="phone-full-dialog" fills the screen instead of its desktop width */
@media (max-width: 767.98px), (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
    .phone-hide {
        display: none !important;
    }

    .e-dialog.phone-full-dialog {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        border-radius: 0;
    }
}

/* Phones and tablets: the service status message (ServerStatus Compact), sliding down from the top of the screen when its glyph beside
   the page's title is tapped; tapping outside it, or its x, slides it back up */
.status-sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

    .status-sheet-backdrop.open {
        opacity: 1;
        pointer-events: auto;
    }

.status-sheet {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1101;
    max-height: 80dvh;
    overflow-y: auto;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 16px 16px;
    border-radius: 0 0 16px 16px;
    background-color: white;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
    transform: translateY(-105%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0s linear 0.25s;
}

    .status-sheet.open {
        transform: translateY(0);
        visibility: visible;
        transition: transform 0.25s ease, visibility 0s;
    }

.status-sheet-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .status-sheet-head > .bi {
        flex: 0 0 auto;
        font-size: 1.4rem;
        line-height: 1;
    }

.status-sheet-title {
    flex: 1 1 auto;
    min-width: 0;
    color: #212529;
    font-size: 1.1rem;
    font-weight: 700;
}

.status-sheet-close {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: -8px -8px -8px 0;
    border: none;
    background: none;
    color: #6c757d;
    font-size: 1rem;
}

.status-sheet-message {
    margin-top: 10px;
    color: #495057;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.status-sheet-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

    .status-sheet-actions > .btn {
        flex: 1 1 0;
        min-height: 44px;
    }

/* Phones: the page's title in the top bar (MainLayout's "page-title" section) in place of the logo, the button that opens the page's
   panel (PhonePanel), and the panel itself sliding in from the right. On wider screens none of these show, and .phone-only is hidden */
.topbar-page-title,
.topbar-back,
.topbar-panel-toggle,
.phone-panel,
.phone-panel-backdrop,
.phone-only {
    display: none !important;
}

@media (max-width: 767.98px), (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
    .phone-only {
        display: revert !important;
    }

    .e-btn.phone-only {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }

    .topbar-page-title:not(:empty) {
        display: block !important;
        max-width: 55vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: white;
        font-size: 1.1rem;
        font-weight: 500;
    }

        /* never the Xpos logo in a phone's top bar, only the page's title (blank until the page gives it): the logo already
           opens the menu, and the agreement and report pages' headers leave it out too */
        .topbar-brand > img,
        .ui-header .navbar-brand img,
        .report-layout-logo {
            display: none !important;
        }

    /* a page's way out of what it has open (MainLayout's "page-back" section, such as the customer editor's x, a crud-phone-btn)
       in place of the menu button, and no panel button while it shows */
    .topbar-back:not(:empty) {
        display: inline-flex !important;
    }

        .topbar-back:not(:empty) ~ .topbar-toggler,
        .topbar:has(.topbar-back:not(:empty)) .topbar-panel-toggle {
            display: none !important;
        }

    .topbar-panel-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        margin-inline-end: 4px;
        padding: 0;
        border: none;
        border-radius: 6px;
        background: none;
        color: white;
        font-size: 1.3rem;
    }

        .topbar-panel-toggle[aria-expanded="true"] {
            background-color: rgba(255, 255, 255, 0.15);
        }

    /* an alert on the panel's button (Home: a service status message not yet seen): a small glyph in a white circle at its top right,
       pulsing in the alert's colour, as the menu button's */
    .topbar-panel-toggle {
        position: relative;
    }

    .topbar-panel-alert {
        position: absolute;
        top: 1px;
        right: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background-color: white;
        font-size: 11px;
        line-height: 1;
        pointer-events: none;
        animation: topbar-panel-alert-pulse 1.5s infinite;
    }

    @keyframes topbar-panel-alert-pulse {
        0% {
            box-shadow: 0 0 0 0 var(--alert-color, #ffc107);
        }

        75% {
            box-shadow: 0 0 0 10px transparent;
        }

        100% {
            box-shadow: 0 0 0 0 transparent;
        }
    }

    /* under dialogs (z-index 1000), so a dialog opened from the panel shows on top of it */
    .phone-panel-backdrop {
        display: block !important;
        position: fixed;
        inset: 0;
        z-index: 989;
        background-color: rgba(0, 0, 0, 0.4);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }

        .phone-panel-backdrop.show {
            opacity: 1;
            pointer-events: auto;
        }

    .phone-panel {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 85vw);
        height: 100vh;
        height: 100dvh;
        z-index: 990;
        background-color: white;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.25s ease, box-shadow 0.25s ease, visibility 0s linear 0.25s;
    }

        .phone-panel.open {
            transform: translateX(0);
            visibility: visible;
            box-shadow: 0 0 24px rgba(0, 0, 0, 0.35);
            transition: transform 0.25s ease, box-shadow 0.25s ease;
        }

    .phone-panel-header {
        display: flex;
        align-items: center;
        flex: 0 0 auto;
        height: 60px;
        padding: 0 8px 0 16px;
        background-color: #1E468C;
        color: white;
    }

    .phone-panel-title {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 1.1rem;
        font-weight: 500;
    }

    .phone-panel-close {
        width: 40px;
        height: 40px;
        border: none;
        background: none;
        color: white;
        font-size: 1.2rem;
    }

    .phone-panel-body {
        flex: 1 1 auto;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 12px 0;
    }

    .phone-panel-section {
        display: flex;
        flex-direction: column;
        gap: 2px;
        padding: 0 12px 12px 12px;
        margin-bottom: 12px;
        border-bottom: 1px solid #dee2e6;
    }

    .phone-panel-heading {
        padding: 0 4px 6px 4px;
        color: #6c757d;
        font-size: 0.8rem;
        font-weight: 600;
        text-transform: uppercase;
    }

    /* a saved filter: its icon, name and count on one line, the selected one highlighted as on the bar */
    .phone-panel-filter,
    .phone-panel-action {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        min-height: 44px;
        padding: 8px 10px;
        border: none;
        border-radius: 6px;
        background: none;
        color: #212529;
        font-size: 1rem;
        text-align: left;
    }

        .phone-panel-filter:active,
        .phone-panel-action:active {
            background-color: #f1f3f5;
        }

        .phone-panel-filter.active {
            background-color: #e7f1fb;
            color: #0b3d6e;
            box-shadow: inset 3px 0 0 #2078c0;
        }

        .phone-panel-filter .saved-filter-name {
            flex: 1 1 auto;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .phone-panel-filter:disabled,
        .phone-panel-action:disabled {
            opacity: 0.45;
        }

    .phone-panel-action .bi {
        width: 20px;
        text-align: center;
    }

    /* the filter, save and Display Options buttons in a row */
    .phone-panel-tools {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 0 16px 12px 16px;
        margin-bottom: 12px;
        border-bottom: 1px solid #dee2e6;
    }

    /* the screen's filter button, named after its icon (SavedFilterBar sets --tool-name to Edit Filters) */
    .phone-panel-tool-named .e-btn::after {
        content: var(--tool-name);
        margin-left: 6px;
    }

    .phone-panel-reports {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 4px 4px 8px 4px;
    }

    /* the filters in use; tapping one removes it */
    .phone-panel-chips {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .phone-panel-chip {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        min-height: 32px;
        padding: 4px 10px;
        border: 1px solid #b6d4fe;
        border-radius: 16px;
        background-color: #e7f1ff;
        color: #0b3d6e;
        font-size: 0.9rem;
    }

        .phone-panel-chip.clear {
            border-color: #f1aeb5;
            background-color: #f8d7da;
            color: #842029;
        }

    /* a saved filter bar with a panel keeps only its search and the search's actions on the screen */
    .saved-filter-bar-paneled > :not(.saved-filter-content):not(.saved-filter-search-actions) {
        display: none !important;
    }

    .saved-filter-bar-paneled .saved-filter-search-actions {
        display: flex;
        gap: 6px;
    }
}

/* Customers on phones: a customer's card (HtmlGrid's CardTemplate) */
.customer-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.customer-card-picture {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.customer-card-text {
    flex: 1 1 auto;
    min-width: 0;
}

.customer-card-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
}

.customer-card-name-text,
.customer-card-details {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-card-details {
    color: #6c757d;
    font-size: 0.85rem;
}

.customer-card-accounts {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 12px;
    margin-top: 2px;
    font-size: 0.85rem;
    font-weight: 500;
}

.customer-card-account-name {
    color: #6c757d;
    font-weight: 400;
}

/* Phones: a page showing cards (HtmlGrid's ShowCards) keeps less space around them. phone-list-page (the card lists' page) gives it
   from the first frame, before the list itself is drawn (Customers draws it once its data has loaded), so the page doesn't resize
   as the cards come in */
@media (max-width: 767.98px), (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
    main article:has(.pgrid-card-mode),
    main article:has(.phone-list-page) {
        padding: 0.5rem 0.5rem 0 0.5rem;
    }

    /* the food and beverage tabs (no cards) as the sales list and the other card lists: as little space at the sides, and above and
       below as its height allows for, so New tab isn't pushed off the foot */
    main article:has(.sales-fb-start) {
        padding: 0.5rem 0.5rem 0 0.5rem;
    }
}

/* Phones: a line between groups of actions in the page's panel (PhonePanel) */
@media (max-width: 767.98px), (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
    .phone-panel-divider {
        height: 1px;
        margin: 6px 10px;
        background-color: #dee2e6;
    }
}

/* Phones: a filters form shown as one long list (filter-dialog-linear) instead of tabs. The tab buttons stay at the top as
   pills that jump down to their part, the list scrolls between them and the form's buttons, and each part has a heading */
@media (max-width: 767.98px), (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
    .e-dialog.phone-full-dialog {
        flex-direction: column;
    }

        .e-dialog.phone-full-dialog .e-dlg-content {
            flex: 1 1 auto;
            min-height: 0;
        }

            .e-dialog.phone-full-dialog .e-dlg-content:has(.filter-dialog-linear) {
                display: flex;
                flex-direction: column;
                overflow: hidden;
            }

    .filter-dialog-linear {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
    }

        .filter-dialog-linear .filter-tabs {
            flex: 0 0 auto;
            flex-wrap: wrap;
            gap: 6px;
            padding-bottom: 8px;
            border-bottom: 1px solid #dee2e6;
        }

            .filter-dialog-linear .filter-tabs .tab {
                height: 32px;
                padding: 0 12px;
                margin-bottom: 0;
                border: 1px solid #ced4da;
                border-radius: 16px;
                font-size: 0.9rem;
            }

                .filter-dialog-linear .filter-tabs .tab.active {
                    border-color: #2078c0;
                    background-color: #e7f1fb;
                    color: #0b3d6e;
                }

        /* Customers: the buttons that jump to each section, in place of the pills */
        .filter-dialog-linear .filter-jump-buttons {
            padding-bottom: 8px;
            border-bottom: 1px solid #dee2e6;
        }

        /* the multi-selects (Customer Type, Home Shops, Customer Tags) across the whole width */
        .filter-dialog-linear .e-multiselect.e-input-group {
            width: 100% !important;
        }

        .filter-dialog-linear .filter-dialog-scroll {
            flex: 1 1 auto;
            min-height: 0;
            overflow-y: auto;
            overscroll-behavior: contain;
        }

        .filter-dialog-linear .filter-dialog-scroll > .filter-tab {
            padding-bottom: 8px;
        }

    .filter-section-heading {
        margin: 16px 0 8px 0;
        padding-bottom: 4px;
        border-bottom: 1px solid #dee2e6;
        color: #1E468C;
        font-weight: 600;
    }

    .filter-dialog-scroll > .filter-tab:first-child .filter-section-heading {
        margin-top: 8px;
    }

    /* a filters form laid out as the phone forms (phone-form-dialog, e.g. Products'): the parts as chips (phone-form-tabs), each
       part plain under a small grey label as the forms' sections, and the buttons across the foot (filter-phone-foot) at one
       height, Apply the big green one */
    .phone-form-dialog .filter-dialog-linear .filter-jump-buttons {
        margin-bottom: 0;
        padding-bottom: 8px;
        border-bottom: 1px solid #dee2e6;
    }

    .phone-form-dialog .filter-section-heading {
        margin: 16px 0 8px 0;
        padding: 0;
        border-bottom: none;
        color: #6c757d;
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.03em;
        text-transform: uppercase;
    }

    .phone-form-dialog .filter-dialog-scroll > .filter-tab {
        padding-bottom: 12px;
        border-bottom: 1px solid #dee2e6;
    }

        .phone-form-dialog .filter-dialog-scroll > .filter-tab:last-child {
            border-bottom: none;
        }

    /* (in the content, a phone-form-foot as well; in Syncfusion's footer, a row of its own) */
    .phone-form-dialog .filter-phone-foot {
        display: flex;
        gap: 8px;
    }

    .phone-form-dialog .filter-phone-foot > .e-btn {
        flex: 1 1 0;
        height: 52px;
        margin: 0 !important;
        border-radius: 8px;
        font-size: 1rem;
        text-transform: none;
    }

        .phone-form-dialog .filter-phone-foot > .e-btn.e-outline {
            border-color: #ced4da;
            color: #212529;
        }

        .phone-form-dialog .filter-phone-foot > .phone-form-save {
            flex: 1.4 1 0;
        }
}

/* ColumnPicker on phones: a list of the chosen columns with move up/down and remove buttons, then the columns to add,
   each a whole row to tap; rows and buttons sized for fingers */
.column-picker-compact-list {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background-color: white;
}

.column-picker-compact-row {
    display: flex;
    align-items: center;
    gap: 2px;
    width: 100%;
    min-height: 44px;
    padding: 0 4px 0 10px;
    border: none;
    border-bottom: 1px solid #f1f3f5;
    background: none;
    color: #212529;
    font-size: 0.95rem;
    text-align: left;
}

    .column-picker-compact-row:last-child {
        border-bottom: none;
    }

    .column-picker-compact-row .column-picker-name {
        flex: 1 1 auto;
        min-width: 0;
        margin-left: 6px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.column-picker-compact-add {
    gap: 6px;
}

    .column-picker-compact-add:active {
        background-color: #f1f3f5;
    }

    .column-picker-compact-add .column-picker-name {
        margin-left: 0;
    }

.column-picker-compact-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: none;
    color: #495057;
}

    .column-picker-compact-button:active:not(:disabled) {
        background-color: #e9ecef;
    }

    .column-picker-compact-button:disabled {
        opacity: 0.3;
    }

/* Customers on phones: adding or editing a customer slides in from the right as a blade (CustomerBlades), laid out as Business
   Setup's panels on Settings, while the search and the list (customers-slide) slide off to the left. Moved with left, not
   transform, so the page's fixed panels still place themselves against the screen */
.customer-blades {
    display: none;
}

@media (max-width: 767.98px), (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
    .customers-page {
        position: relative;
        overflow: hidden;
    }

    /* the search bar from the page's edge as the other lists' (Products), rather than set in by the row and its column and then pulled
       out past that edge by the search box's own -4px, where the page clips its border */
    .customers-page > .customers-slide > .row {
        margin-left: 0;
        margin-right: 0;
    }

        .customers-page > .customers-slide > .row > .col-12 {
            padding-left: 0;
            padding-right: 0;
        }

    .customers-search {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

        .customers-page > .customers-slide {
            left: 0;
            transition: left 0.35s ease;
        }

        .customers-page.customers-editing > .customers-slide {
            left: -100%;
        }

    .customer-blades {
        display: block;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 100%;
        width: 100%;
        z-index: 5;
        background-color: white;
        visibility: hidden;
        transition: left 0.35s ease, visibility 0s linear 0.35s;
    }

        .customer-blades.open {
            left: 0;
            visibility: visible;
            transition: left 0.35s ease;
        }

    /* the section buttons at the top (JumpBar), every section scrolling under them, the save bar at the foot */
    .customer-blade {
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: 0;
    }

    .customer-blade-tabs {
        padding-top: 4px;
    }

    .customer-blade-scroll {
        flex: 1 1 auto;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        /* room at the sides for a section's focus tint and bar (jump-section), which this clips */
        padding: 0 8px;
    }

    /* each part plain, the fields one under another, a line under it and its name a small grey label, as the phone forms' sections */
    .customer-blade-details {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 12px;
        padding-bottom: 16px;
        border-bottom: 1px solid #dee2e6;
    }

        .customer-blade-details h5 {
            margin: 8px 0 0;
            color: #6c757d;
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
        }

        .customer-blade-details p {
            margin: 0;
            color: #6c757d;
            font-size: 0.9rem;
        }

        /* a checkbox a row, the full width and tall enough to tap (the radio buttons stay side by side) */
        .customer-blade-details > .e-checkbox-wrapper,
        .customer-blade-options-indented .e-checkbox-wrapper {
            display: flex;
            align-items: center;
            width: 100%;
            min-height: 44px;
            border-bottom: 1px solid #eef1f6;
        }

            .customer-blade-details > .e-checkbox-wrapper label,
            .customer-blade-options-indented .e-checkbox-wrapper label {
                display: flex;
                align-items: center;
                width: 100%;
                min-height: 44px;
                margin: 0;
            }

        .customer-blade-details .e-radio-wrapper label {
            display: flex;
            align-items: center;
            min-height: 44px;
        }

    /* the picture uploader, centred across the blade */
    .customer-blade-picture {
        width: 120px;
        height: 160px;
        margin: 0 auto;
    }

    .customer-blade-label {
        margin-top: 4px;
        font-weight: 500;
    }

    .customer-blade-options {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 16px;
    }

    .customer-blade-options-indented {
        flex-direction: column;
        gap: 0;
        padding-left: 28px;
    }

    /* the save bar (xpossavebar-bottom) at the blade's foot */
    .customer-blade-save {
        flex: 0 0 auto;
    }
}

/* Phones: while a customer loads into the blade, what's being done over a thick moving bar, in the middle of the blade */
@media (max-width: 767.98px), (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
    .customer-blade-loading {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding: 0 24px;
    }

    .customer-blade-loading-message {
        color: #1E468C;
        font-size: 1.05rem;
        font-weight: 500;
        text-align: center;
    }

    .customer-blade-progress {
        width: 100%;
        max-width: 320px;
        height: 14px;
        border-radius: 7px;
    }
}

/* Products on phones: the products as cards (Products.razor), as HtmlGrid's cards */
.pgrid.products-cards-scroll {
    border: none;
    border-radius: 0;
    background-color: transparent;
}

.products-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.products-cards-empty {
    padding: 24px 8px;
    text-align: center;
    color: #6c757d;
}

.products-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 4px 10px 12px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background-color: white;
    cursor: pointer;
}

    .products-card:active {
        background-color: #f8f9fa;
    }

    .products-card.selected {
        border-color: #2078c0;
        background-color: #e7f1fb;
    }

.products-card-image {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    object-fit: cover;
}

.products-card-text {
    flex: 1 1 auto;
    min-width: 0;
}

.products-card-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
}

.products-card-name-text {
    min-width: 0;
}

.products-card-name-text,
.products-card-details {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.products-card-badge {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.products-card-details {
    color: #6c757d;
    font-size: 0.85rem;
}

.products-card-figures {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2px 12px;
    margin-top: 2px;
    font-size: 0.85rem;
}

.products-card-price {
    font-weight: 600;
}

.products-card-check {
    flex: 0 0 auto;
    padding: 10px;
}

    .products-card-check .form-check-input {
        width: 1.3rem;
        height: 1.3rem;
        margin: 0;
    }

.products-cards-end {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 1px;
}

    .products-cards-end.loading {
        min-height: 40px;
    }

/* Phones: the till (SalesScreen, FoodAndBeverageSalesScreen) in one column. The page title is in the top bar and the rarer
   actions are in the page's panel (PhonePanel); on screen are the customer, the search, the product groups as chips, the
   product tiles filling the rest, and the pay bar at the foot. The basket slides up as a sheet (PhoneBasketSheet). Only
   rendered on phones (narrowLayout), so these need no media query. Tiles are at least 96px, so a phone gets three across
   and a portrait tablet more */
.till-phone {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: calc(100dvh - 60px - 0.5rem);
    min-height: 0;
}

.till-context {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.till-customer-chip {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    background-color: white;
    color: #212529;
    font-size: 0.95rem;
    text-align: left;
}

    .till-customer-chip .till-customer-name {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
        font-weight: 600;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .till-customer-chip.anonymous .till-customer-name {
        color: #6c757d;
        font-weight: 400;
    }

    /* the customer's picture, round, filling the chip's height at its left end */
    .till-customer-chip .till-customer-picture {
        flex: 0 0 32px;
        width: 32px;
        height: 32px;
        margin-left: -8px;
        border-radius: 50%;
        object-fit: cover;
    }

.till-balance {
    flex: 0 0 auto;
    padding: 1px 8px;
    border-radius: 10px;
    background-color: #e6f4ea;
    color: #1d6b34;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

    .till-balance.negative {
        background-color: #f8d7da;
        color: #842029;
    }

.till-who {
    flex: 0 0 auto;
    max-width: 30%;
    overflow: hidden;
    color: #6c757d;
    font-size: 0.75rem;
    line-height: 1.2;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.till-alert {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 6px;
    background-color: #fff3cd;
    color: #664d03;
    font-size: 0.85rem;
}

    /* an alert with an x on the right that dismisses it (Printer Service Offline) */
    .till-alert-dismissible {
        display: flex;
        align-items: center;
        gap: 6px;
        padding-right: 0;
    }

        .till-alert-dismissible > span {
            flex: 1 1 auto;
            min-width: 0;
        }

.till-alert-close {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 32px;
    margin: -6px 0;
    padding: 0;
    border: none;
    background: none;
    color: inherit;
}

/* Busy (BusyIndicator), on the sales screens in place of the full-page spinner: a see-through cover holds off taps and clicks
   straight away; after 0.3s a thin bar runs across the top of the screen, and after 1.2s a small card under it says what's being
   done. A job quicker than that shows only the busy pointer */
.busy-shield {
    position: fixed;
    inset: 0;
    z-index: 1100;
    cursor: progress;
}

.busy-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1101;
    height: 4px;
    overflow: hidden;
    background-color: rgba(90, 167, 248, 0.25);
    opacity: 0;
    pointer-events: none;
    animation: busy-appear 0.2s ease 0.3s forwards;
}

.busy-bar-runner {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -40%;
    width: 40%;
    background-color: #5AA7F8;
    animation: busy-run 1.1s ease-in-out infinite;
}

.busy-card {
    position: fixed;
    top: 72px;
    left: 50%;
    z-index: 1101;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100vw - 32px);
    padding: 10px 18px;
    border-radius: 22px;
    background-color: white;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
    color: #1E468C;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%);
    animation: busy-appear 0.2s ease 1.2s forwards;
}

.busy-card-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@keyframes busy-appear {
    to {
        opacity: 1;
    }
}

@keyframes busy-run {
    from {
        left: -40%;
    }

    to {
        left: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .busy-bar-runner {
        animation-duration: 3s;
    }
}

/* the sales screen header's Printer Service Offline: its x, as small as the message */
.printer-offline-close {
    margin-left: 4px;
    padding: 0 4px;
    border: none;
    background: none;
    color: inherit;
    font-size: 0.8rem;
    line-height: 1;
}

.till-search {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

    .till-search > :first-child {
        flex: 1 1 auto;
        min-width: 0;
    }

.till-square-btn {
    display: inline-flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background-color: white;
    color: #2078c0;
    font-size: 1.2rem;
}

.till-groups {
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

    .till-groups::-webkit-scrollbar {
        display: none;
    }

.till-group-chip {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 4px;
    height: 34px;
    padding: 0 14px;
    border: 1px solid #ced4da;
    border-radius: 17px;
    background-color: white;
    color: #212529;
    font-size: 0.9rem;
    white-space: nowrap;
}

    .till-group-chip.active {
        border-color: #2078c0;
        background-color: #e7f1fb;
        color: #0b3d6e;
        font-weight: 600;
    }

    /* a chip that can't be used now, faded (an active one, showing where you are, stays as it is) */
    .till-group-chip:disabled:not(.active) {
        opacity: 0.45;
    }

.till-tiles {
    display: grid;
    flex: 1 1 auto;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    grid-auto-rows: 84px;
    align-content: start;
    gap: 8px;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

    /* the quick product buttons keep their own colours; on phones they fill their cell instead of their desktop size */
    .till-tiles .e-btn,
    .till-tiles .e-square {
        width: 100% !important;
        min-width: 0 !important;
        height: 100% !important;
        margin: 0 !important;
    }

    .till-tiles .till-tile-added {
        outline: 3px solid #28a745;
        outline-offset: -3px;
    }

/* the pay bar */
.till-paybar {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
    padding: 8px 0 env(safe-area-inset-bottom, 0px) 0;
    border-top: 1px solid #dee2e6;
}

.till-basket-btn {
    display: inline-flex;
    position: relative;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    height: 52px;
    padding: 0 14px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    background-color: white;
    color: #212529;
    font-size: 1rem;
    font-weight: 600;
}

    .till-basket-btn .bi {
        font-size: 1.25rem;
    }

.till-basket-count {
    position: absolute;
    top: -7px;
    left: 26px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background-color: #2078c0;
    color: white;
    font-size: 0.75rem;
    line-height: 20px;
    text-align: center;
}

.till-pay-btn {
    display: inline-flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    height: 52px;
    border: none;
    border-radius: 8px;
    background-color: #28a745;
    color: white;
    font-size: 1.15rem;
    font-weight: 700;
}

    .till-pay-btn:disabled {
        background-color: #9aa5b1;
    }

.till-pay-total {
    font-variant-numeric: tabular-nums;
}

/* a secondary button in the pay bar (e.g. Save Order), between the basket and Pay */
.till-bar-btn {
    display: inline-flex;
    flex: 0 1 auto;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    height: 52px;
    padding: 0 12px;
    border: 1px solid #2078c0;
    border-radius: 8px;
    background-color: white;
    color: #2078c0;
    font-weight: 600;
}

/* the basket sheet: under the panel (990) and dialogs (1000) */
.till-sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 979;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

    .till-sheet-backdrop.show {
        opacity: 1;
        pointer-events: auto;
    }

.till-sheet {
    display: flex;
    position: fixed;
    top: 12dvh;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 980;
    flex-direction: column;
    padding: 0 12px env(safe-area-inset-bottom, 0px) 12px;
    border-radius: 14px 14px 0 0;
    background-color: white;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0s linear 0.25s;
}

    .till-sheet.open {
        transform: translateY(0);
        visibility: visible;
        transition: transform 0.25s ease;
    }

.till-sheet-grab {
    flex: 0 0 auto;
    width: 40px;
    height: 5px;
    margin: 8px auto 4px auto;
    border-radius: 3px;
    background-color: #ced4da;
}

.till-sheet-head {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #dee2e6;
}

.till-sheet-title {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

    .till-sheet-title strong {
        font-size: 1.1rem;
    }

    .till-sheet-title span {
        color: #6c757d;
        font-size: 0.8rem;
    }

.till-sheet-close {
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    color: #6c757d;
    font-size: 1.1rem;
}

.till-sheet-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* a small gap under Pay (or OK) at the foot of a sheet; the sheet itself keeps clear of the phone's home bar, so the pay bar in
   it doesn't add that again */
.till-sheet-foot {
    flex: 0 0 auto;
    padding-bottom: 12px;
}

    .till-sheet-foot .till-paybar {
        padding-bottom: 0;
    }

/* Phones: a value to key in (a payment's amount on the pay screen, the service charge) as a sheet that slides up from the foot, as
   the basket sheet: the grab bar, the title bold with a grey close x and a line under it, the keypad (and a note when the payment
   needs one) the width of the screen, and OK as the till's Pay button at the foot. It sits over the pay screen and dialogs (999,
   1000); the backdrop's tap cancels as the x does */
.value-sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1004;
    background-color: rgba(0, 0, 0, 0.4);
    animation: value-sheet-fade 0.2s ease;
}

.value-sheet {
    display: flex;
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1005;
    flex-direction: column;
    max-height: 92dvh;
    padding: 0 12px env(safe-area-inset-bottom, 0px) 12px;
    border-radius: 14px 14px 0 0;
    background-color: white;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.2);
    animation: value-sheet-up 0.25s ease;
}

.value-sheet-head {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #dee2e6;
}

    .value-sheet-head strong {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
        font-size: 1.1rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.value-sheet-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 12px 0 4px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

    /* a note the payment asks for (a trade-in, a third party's reference); 16px so phones don't zoom in */
    .value-sheet-body .value-sheet-note {
        width: 100%;
        height: 44px;
        margin-bottom: 10px;
        font-size: 16px;
    }

    /* the keypad across the sheet: the figure and the keys share its width, the keys tall enough to tap */
    .value-sheet-body table {
        width: 100%;
        table-layout: fixed;
    }

    .value-sheet-body .num-result {
        width: auto;
        height: 60px;
        margin: 0 4px 6px;
        padding: 10px 12px;
        line-height: 40px;
    }

    .value-sheet-body .num-btn {
        width: calc(100% - 8px) !important;
        height: 56px;
        margin: 4px;
        font-size: 28px;
    }

.value-sheet-foot {
    display: flex;
    flex: 0 0 auto;
    padding: 8px 0 12px;
}

/* a sheet opened from another (the basket discount's Custom %) sits over it, its backdrop dimming the first */
.value-sheet ~ .value-sheet-backdrop {
    z-index: 1006;
}

.value-sheet ~ .value-sheet {
    z-index: 1007;
}

@keyframes value-sheet-up {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes value-sheet-fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .value-sheet,
    .value-sheet-backdrop {
        animation: none;
    }
}

/* a basket line: what it is and its unit price, the quantity stepper, the line's total; tapping it selects it and shows its
   actions under it (till-line-actions), in place of the desktop's double click and Edit */
.till-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 72px;
    align-items: center;
    gap: 8px;
    padding: 10px 4px;
    border-bottom: 1px solid #dee2e6;
}

    .till-line.selected {
        background-color: #e7f1fb;
        box-shadow: inset 3px 0 0 #2078c0;
    }

    .till-line.refund .till-line-amount {
        color: #dc3545;
    }

.till-line-desc {
    min-width: 0;
}

    .till-line-desc strong {
        display: block;
        overflow: hidden;
        font-size: 0.95rem;
        font-weight: 600;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.till-line-sub {
    display: block;
    color: #6c757d;
    font-size: 0.8rem;
}

    .till-line-sub .till-line-discount {
        color: #dc3545;
    }

.till-line-amount {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.till-line-option {
    grid-column: 1 / -1;
    padding-left: 12px;
    color: #6c757d;
    font-size: 0.85rem;
}

.till-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ced4da;
    border-radius: 8px;
    overflow: hidden;
}

    .till-stepper button {
        width: 38px;
        height: 38px;
        border: none;
        background-color: white;
        color: #2078c0;
        font-size: 1.2rem;
        line-height: 1;
    }

    .till-stepper span {
        min-width: 26px;
        font-weight: 600;
        text-align: center;
        font-variant-numeric: tabular-nums;
    }

.till-line-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 4px 10px 4px;
    border-bottom: 1px solid #dee2e6;
    background-color: #e7f1fb;
}

    .till-line-actions button {
        height: 36px;
        padding: 0 12px;
        border: 1px solid #b6d4fe;
        border-radius: 6px;
        background-color: white;
        color: #0b3d6e;
        font-size: 0.9rem;
    }

        .till-line-actions button.danger {
            border-color: #f1aeb5;
            color: #dc3545;
        }

        .till-line-actions button:disabled {
            opacity: 0.45;
        }

.till-section-label {
    padding: 12px 4px 4px 4px;
    color: #6c757d;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.till-totals {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 8px;
    padding: 8px 4px;
    font-variant-numeric: tabular-nums;
}

    .till-totals .till-total {
        font-size: 1.15rem;
        font-weight: 700;
    }

    .till-totals .negative {
        color: #dc3545;
    }

.till-empty {
    padding: 32px 8px;
    color: #6c757d;
    text-align: center;
}

/* the note after an add, above the pay bar */
.till-toast {
    display: flex;
    position: fixed;
    right: 12px;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    z-index: 978;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    background-color: #1f2937;
    color: white;
    font-size: 0.9rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.till-toast-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.till-toast-undo {
    flex: 0 0 auto;
    border: none;
    background: none;
    color: #9cc7ff;
    font-weight: 600;
}

/* Phones: the camera as a barcode scanner over the till (PhoneBarcodeScanner): the picture fills the screen, dimmed outside the
   frame that is read. It sits over the till's sheets (980) and under dialogs (1000), so the ones an add opens (several matches,
   options) show over it; the till's note after an add, with Undo, is raised over it while it is open */
.till-scanner {
    position: fixed;
    inset: 0;
    z-index: 985;
    overflow: hidden;
    background-color: black;
    color: white;
}

/* while scanning, the basket over the camera shows each add (highlighted, with Undo) in place of the added note */
.till-scanning .till-toast {
    display: none !important;
}

.till-scanner-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.till-scanner-frame {
    position: absolute;
    top: 42%;
    left: 50%;
    width: min(84vw, 360px);
    height: min(40vw, 170px);
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.45);
    transition: border-color 0.15s ease;
}

    .till-scanner-frame.found {
        border-color: #2fb344;
        box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.45), inset 0 0 0 2px #2fb344;
    }

    /* the shop has no such product */
    .till-scanner-frame.missing {
        border-color: #ff4d4f;
        box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.45), inset 0 0 0 2px #ff4d4f;
    }

.till-scanner-line {
    display: none;
    position: absolute;
    top: 50%;
    right: 12px;
    left: 12px;
    height: 2px;
    background-color: #ff4d4f;
    box-shadow: 0 0 8px #ff4d4f;
}

.till-scanner.scanning .till-scanner-line {
    display: block;
    animation: till-scanner-sweep 1.6s ease-in-out infinite alternate;
}

.till-scanner-frame.found .till-scanner-line {
    display: block;
    top: 50%;
    background-color: #2fb344;
    box-shadow: 0 0 8px #2fb344;
    animation: none;
}

@keyframes till-scanner-sweep {
    from {
        top: 15%;
    }

    to {
        top: 85%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .till-scanner.scanning .till-scanner-line {
        animation: none;
    }
}

.till-scanner-head {
    display: flex;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1;
    align-items: center;
    gap: 4px;
    height: calc(60px + env(safe-area-inset-top, 0px));
    padding: env(safe-area-inset-top, 0px) 8px 0 16px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
}

.till-scanner-title {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    font-size: 1.1rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.till-scanner-btn {
    display: inline-flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: none;
    color: white;
    font-size: 1.2rem;
}

    .till-scanner-btn.active {
        background-color: rgba(255, 255, 255, 0.25);
        color: #ffd43b;
    }

.till-scanner-hint {
    display: flex;
    position: absolute;
    top: calc(42% + min(20vw, 85px) + 20px);
    right: 16px;
    left: 16px;
    z-index: 1;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

    /* "Product not found" and the code read, on a red pill so it can't be missed over the picture */
    .till-scanner-hint.missing {
        right: auto;
        left: 50%;
        flex-wrap: wrap;
        max-width: calc(100% - 32px);
        padding: 8px 14px;
        border-radius: 999px;
        background-color: rgba(220, 53, 69, 0.92);
        font-weight: 600;
        text-shadow: none;
        transform: translateX(-50%);
    }

.till-scanner-code {
    font-family: monospace;
    font-weight: 400;
}

/* with the basket at the foot, the frame (and what's read: it's the frame's part of the picture) moves up to make room */
.till-scanner.with-basket .till-scanner-frame {
    top: 30%;
}

.till-scanner.with-basket .till-scanner-hint {
    top: calc(30% + min(20vw, 85px) + 14px);
}

/* a phone on its side: a shorter frame, so it clears the header and the basket */
@media (orientation: landscape) and (max-height: 500px) {
    .till-scanner.with-basket .till-scanner-frame {
        top: 36%;
        height: min(26vh, 170px);
    }

    .till-scanner.with-basket .till-scanner-hint {
        top: calc(36% + min(13vh, 85px) + 8px);
    }

    /* (with-basket: these come before the panel's own rules below) */
    .till-scanner.with-basket .till-scanner-basket {
        max-height: 40%;
    }

    .till-scanner.with-basket .till-scanner-basket-foot {
        padding: 6px 16px;
    }

    .till-scanner.with-basket .till-scanner-done {
        height: 44px;
    }
}

/* the basket at the foot of the camera while scanning: newest line first, the code being looked up at the top, then the line it
   went in as, flashing green, with Undo */
.till-scanner-basket {
    display: flex;
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    flex-direction: column;
    max-height: 45%;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    border-radius: 16px 16px 0 0;
    background-color: white;
    color: #212529;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3);
}

.till-scanner-basket-head {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid #dee2e6;
}

.till-scanner-basket-icon {
    position: relative;
    color: #2078c0;
    font-size: 1.3rem;
    line-height: 1;
}

.till-scanner-basket-count {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background-color: #2078c0;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.till-scanner-basket-title {
    flex: 1 1 auto;
    margin-left: 6px;
    font-weight: 600;
}

.till-scanner-basket-total {
    flex: 0 0 auto;
    font-size: 1.1rem;
    font-weight: 700;
}

.till-scanner-basket-lines {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
}

.till-scanner-basket-line {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 6px 16px;
    border-bottom: 1px solid #f1f3f5;
    font-size: 0.95rem;
}

    .till-scanner-basket-line.pending {
        color: #6c757d;
        font-style: italic;
    }

    .till-scanner-basket-line.added {
        background-color: #ebfbee;
        box-shadow: inset 3px 0 0 #2fb344;
        animation: till-scanner-added 1.6s ease-out;
    }

    .till-scanner-basket-line.refund .till-scanner-basket-amount {
        color: #dc3545;
    }

@keyframes till-scanner-added {
    from {
        background-color: #8ce99a;
    }

    to {
        background-color: #ebfbee;
    }
}

@media (prefers-reduced-motion: reduce) {
    .till-scanner-basket-line.added {
        animation: none;
    }
}

.till-scanner-basket-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.till-scanner-basket-qty {
    flex: 0 0 auto;
    color: #6c757d;
}

.till-scanner-basket-amount {
    flex: 0 0 auto;
    font-weight: 600;
}

.till-scanner-undo {
    flex: 0 0 auto;
    padding: 4px 0 4px 6px;
    border: none;
    background: none;
    color: #2078c0;
    font-weight: 600;
}

/* Done at the foot of the basket: back to the till, as the phone forms' green Save */
.till-scanner-basket-foot {
    flex: 0 0 auto;
    padding: 10px 16px;
    border-top: 1px solid #dee2e6;
}

.till-scanner-done {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 8px;
    background-color: #28a745;
    color: white;
    font-size: 1.15rem;
    font-weight: 700;
}

    .till-scanner-done:active {
        background-color: #218838;
    }

/* The top bar of the add and edit pages (CRUDLayout) on phones, as the app's (MainLayout's): the way out on the left, the page's
   name in the middle (the logo when it has none) and the panel's button on the right. Only drawn on phones, so no media query.
   A page that still draws its own bar at the top (z-index 900) covers it */
.crud-phone-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 899;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    align-items: center;
    height: 56px;
    padding: 0 4px;
    background-color: #1E468C;
    color: white;
}

.crud-phone-bar-space {
    height: 56px;
}

.crud-phone-side {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
}

.crud-phone-side-end {
    grid-column: 3;
    justify-content: flex-end;
}

.crud-phone-title {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
}

.crud-phone-title {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1.1rem;
    font-weight: 500;
}

.crud-phone-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: none;
    color: white;
    font-size: 1.3rem;
}

    .crud-phone-btn[aria-expanded="true"] {
        background-color: rgba(255, 255, 255, 0.15);
    }

/* Phone save bar (SaveBar PhoneBottom, and the phone pages' own): why Save can't be pressed on a line of its own, then the
   buttons, Save (btn-success) the phone forms' big green button filling the row */
.xpossavebar-bottom {
    background-color: #fff;
    border-top: 1px solid #dee2e6;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    z-index: 900;
}

.xpossavebar-bottom .btn {
    min-height: 52px;
    min-width: 92px;
    border-radius: 8px;
}

    .xpossavebar-bottom .btn-success {
        flex: 1 1 auto;
        border: none;
        background-color: #28a745;
        font-size: 1.15rem;
        font-weight: 700;
    }

    /* the spacer that kept a small Save on the right */
    .xpossavebar-bottom > .flex-grow-1:empty {
        display: none;
    }

.xpossavebar-reason {
    flex: 1 1 100%;
    color: #a61b1b;
    background-color: #fdecec;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 13px;
}

/* Dialogs that fill a phone screen */
.e-dialog.xpos-phone-dialog {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    border-radius: 0;
}

/* Dialogs that fill a phone screen on pages that do not know about phones (e.g. New product on the Products list) */
@media (max-width: 768px) {
    .e-dialog.xpos-dialog-fullphone {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        min-height: 0 !important;
        border-radius: 0;
    }
}

/* Sales list on phones, to match the till: the terminal chip (till-customer-chip) and a closed terminal's card at the top, the
   quick filters as chips (till-groups), sales as cards like basket lines, the totals on one line and New sale in the pay bar
   (PhoneTillPayBar) at the foot. Only rendered on phones (narrowLayout), so these need no media query */
.sales-phone-head {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 8px;
}

    .sales-phone-head .alert {
        margin: 0;
    }

/* the terminal: a green or red dot, its name, open or closed, and the time it was opened */
.sales-terminal-chip .till-customer-name {
    flex: 0 1 auto;
}

.sales-terminal-dot {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #28a745;
}

    .sales-terminal-dot.closed {
        background-color: #dc3545;
    }

.sales-terminal-state {
    flex: 0 0 auto;
    color: #1d6b34;
    font-size: 0.85rem;
    font-weight: 600;
}

    .sales-terminal-state.closed {
        color: #842029;
    }

.sales-terminal-since {
    flex: 0 0 auto;
    margin-left: auto;
    color: #6c757d;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* a closed terminal: one card with Open Terminal, the only time it is the main action */
.sales-closed-card {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background-color: white;
    text-align: center;
}

    .sales-closed-card > .bi {
        color: #6c757d;
        font-size: 1.8rem;
    }

    .sales-closed-card .till-pay-btn {
        flex: 0 0 auto;
        width: 100%;
        margin-top: 8px;
    }

.sales-closed-title {
    font-size: 1rem;
    font-weight: 600;
}

.sales-closed-text {
    color: #6c757d;
    font-size: 0.85rem;
}

/* the saved filter bar's button filters as chips under the search (SavedFilterBar PhoneChips) and never wider than the list: they scroll sideways inside it */
.saved-filter-phone-chips {
    max-width: 100%;
    min-width: 0;
    padding-top: 6px;
}

    .saved-filter-phone-chips .bi {
        margin-right: 2px;
    }

    .saved-filter-phone-chips .saved-filter-badge {
        margin-left: 2px;
    }

/* a sale's card: the customer and total, then the number, time and staff with the status as a coloured chip */
.sale-card {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.sale-card-line {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.sale-card-name,
.sale-card-meta {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sale-card-name {
    color: #212529;
    font-size: 0.95rem;
    font-weight: 600;
}

.sale-card-amount {
    flex: 0 0 auto;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

    .sale-card-amount.negative {
        color: #dc3545;
    }

.sale-card-meta {
    color: #6c757d;
    font-size: 0.8rem;
}

.sale-card-status {
    flex: 0 0 auto;
    padding: 1px 8px;
    border-radius: 10px;
    background-color: #e9ecef;
    color: #495057;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

    .sale-card-status.done {
        background-color: #e6f4ea;
        color: #1d6b34;
    }

    .sale-card-status.lay {
        background-color: #fff3cd;
        color: #664d03;
    }

    .sale-card-status.part {
        background-color: #e7f1fb;
        color: #0b3d6e;
    }

    .sale-card-status.ref {
        background-color: #f8d7da;
        color: #842029;
    }

    .sale-card-status.cancel {
        background-color: #e9ecef;
        color: #6c757d;
    }

    .sale-card-status.draft {
        background-color: #cff4fc;
        color: #055160;
    }

    .sale-card-status.order {
        background-color: #ede7f6;
        color: #4527a0;
    }

/* layaways and drafts, which can be resumed, have an amber edge (HtmlGrid RowCssClass on the card) */
.pgrid-card.sale-card-resume {
    box-shadow: inset 4px 0 0 #ffc107;
}

/* the Admin totals on one line above the New sale bar, instead of over the list */
.sales-totals-line {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 4px 0 4px;
    color: #495057;
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
}

/* Who's selling?: the staff tiles in a sheet as tall as they need (up to near the top), the last seller on this device outlined */
.sales-who-sheet .till-sheet {
    top: auto;
    max-height: 88dvh;
}

.sales-who-sheet .till-tiles {
    padding: 12px 0;
    overflow: visible;
}

.till-tiles .sales-staff-last {
    outline: 3px solid #212529;
    outline-offset: -3px;
    box-shadow: inset 0 0 0 5px white !important;
}

/* Food & Beverage start on phones: the open tabs as cards, the table first, then the tab and who opened it, and the total */
.tab-cards {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.tab-card {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 64px;
    padding: 10px 12px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background-color: white;
    color: #212529;
    text-align: left;
}

    .tab-card:active {
        background-color: #f8f9fa;
    }

.tab-card-table {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    max-width: 96px;
    height: 44px;
    padding: 0 6px;
    overflow: hidden;
    border-radius: 8px;
    background-color: #fff3cd;
    color: #664d03;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}

.tab-card-text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

.tab-card-name {
    overflow: hidden;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tab-card-meta {
    display: flex;
    gap: 10px;
    overflow: hidden;
    color: #6c757d;
    font-size: 0.8rem;
    white-space: nowrap;
}

.tab-card-amount {
    flex: 0 0 auto;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* the Room Layout switch in the panel */
.phone-panel-switch .form-check-input {
    width: 2.4em;
    height: 1.3em;
}

/* Phones: a form dialog laid out as the till's (Edit Customer, Edit Staff, Terminal), for any SfDialog (or the Dialog component)
   given CssClass="phone-full-dialog phone-form-dialog":
   - a plain heading as the basket sheet's: the title bold on the left, a grey close x on the right, a line under it. Syncfusion's
     own header (Header="..." or <Header>) is restyled; a dialog drawing its own heading gives it phone-form-head, with the title in
     a span and its close button phone-form-close
   - tabs (a tab-group of .tab buttons, or phone-form-tabs) as the till's chips, scrolling sideways
   - sections (alert-info boxes) plain, each heading (h5/h6) a small grey label
   - every bootstrap column the full width (a row with phone-keep-cols keeps its columns), fields at 16px so phones don't zoom in
   - the footer (Syncfusion's DialogButtons, or a div given phone-form-foot) across the foot, its primary button (e-primary, or one
     given phone-form-save) the till's big green Pay button; a Cancel the close x already does can be given phone-hide
   The content scrolls between the heading and the footer */
@media (max-width: 767.98px), (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
    .e-dialog.phone-form-dialog.e-popup-open {
        display: flex;
        flex-direction: column;
    }

    .phone-form-dialog .e-dlg-header-content {
        display: flex;
        flex: 0 0 auto;
        flex-direction: row-reverse;
        align-items: center;
        gap: 8px;
        height: 52px;
        margin: 0 12px;
        padding: 0 !important;
        border-bottom: 1px solid #dee2e6;
        border-radius: 0 !important;
        background: white !important;
    }

        .phone-form-dialog .e-dlg-header-content .e-dlg-header,
        .phone-form-dialog .e-dlg-header-content .e-dlg-header * {
            min-width: 0;
            overflow: hidden;
            color: #212529 !important;
            font-size: 1.1rem !important;
            font-weight: 700 !important;
            text-overflow: ellipsis;
            text-transform: none !important;
            white-space: nowrap;
        }

        .phone-form-dialog .e-dlg-header-content .e-dlg-header {
            flex: 1 1 auto;
        }

        .phone-form-dialog .e-dlg-header-content .e-dlg-closeicon-btn {
            position: static !important;
            flex: 0 0 auto;
            float: none !important;
            width: 40px !important;
            height: 40px !important;
            margin: 0 !important;
            padding: 0 !important;
            background: none !important;
            box-shadow: none !important;
        }

            .phone-form-dialog .e-dlg-header-content .e-dlg-closeicon-btn .e-btn-icon {
                color: #6c757d !important;
                font-size: 14px !important;
            }

    .phone-form-dialog .e-dlg-content {
        flex: 1 1 auto;
        min-height: 0;
        padding: 8px 12px !important;
        overflow-y: auto;
    }

    /* a dialog's own heading (when it doesn't use Syncfusion's) */
    .phone-form-dialog .phone-form-head {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        height: 52px !important;
        margin: 0 0 8px !important;
        padding: 0 !important;
        border-bottom: 1px solid #dee2e6;
        background: white !important;
        color: #212529 !important;
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        letter-spacing: normal !important;
        text-align: left !important;
        text-transform: none !important;
    }

        .phone-form-dialog .phone-form-head > span {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

    .phone-form-dialog .phone-form-close {
        flex: 0 0 auto;
        width: 40px;
        height: 40px;
        border: none;
        background: none;
        color: #6c757d;
        font-size: 1.1rem;
        font-weight: normal;
    }

    /* the tabs as the till's chips: white with a grey border, the chosen one blue. A page laid out as a phone form (phone-form-page,
       such as the product editor) has the same chips, full-width fields and 16px inputs */
    .phone-form-dialog .tab-group,
    .phone-form-dialog .phone-form-tabs,
    .phone-form-page .phone-form-tabs {
        display: flex;
        flex: 0 0 auto;
        gap: 6px;
        margin-bottom: 8px;
        overflow-x: auto;
        border-bottom: none !important;
        scrollbar-width: none;
    }

        .phone-form-dialog .tab-group .tab,
        .phone-form-dialog .phone-form-tabs > button,
        .phone-form-page .phone-form-tabs > button {
            flex: 0 0 auto;
            width: auto;
            height: 36px;
            margin: 0 !important;
            padding: 0 14px !important;
            border: 1px solid #ced4da !important;
            border-radius: 18px !important;
            background-color: white !important;
            color: #212529 !important;
            font-size: 0.9rem;
            opacity: 1;
            white-space: nowrap;
        }

            .phone-form-dialog .tab-group .tab.active,
            .phone-form-dialog .phone-form-tabs > button.active,
            .phone-form-page .phone-form-tabs > button.active {
                border-color: #2078c0 !important;
                background-color: #e7f1fb !important;
                color: #0b3d6e !important;
                font-weight: 600;
            }

    /* each section plain, with a small grey label as the basket's sections (a phone-form-page's too) */
    .phone-form-dialog .alert-info,
    .phone-form-page .alert-info {
        margin-bottom: 12px;
        padding: 0 0 8px !important;
        border: none !important;
        border-bottom: 1px solid #dee2e6 !important;
        border-radius: 0 !important;
        background: none !important;
        color: inherit !important;
    }

        .phone-form-dialog .alert-info > h5,
        .phone-form-dialog .alert-info > h6,
        .phone-form-page .alert-info > h5,
        .phone-form-page .alert-info > h6 {
            margin: 8px 0;
            color: #6c757d;
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
        }

    /* every field the full width */
    .phone-form-dialog .row:not(.phone-keep-cols) > [class*="col-"],
    .phone-form-page .row:not(.phone-keep-cols) > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* the product editor (pf-page): its head (pf-phone-head) starts right under the top bar, where it stays as the page scrolls; and
       the rows' negative side margins reach past the screen's edges, which let the page move sideways, so they're clipped (clip, not
       hidden, which would stop the head sticking). Only the rows' empty edges are cut; the fields are inside their columns' padding */
    article.content:has(.pf-phone-head) {
        padding-top: 0;
    }

    article.content:has(.pf-page) {
        overflow-x: clip;
    }

    .phone-form-dialog input,
    .phone-form-dialog textarea,
    .phone-form-dialog select,
    .phone-form-page input,
    .phone-form-page textarea,
    .phone-form-page select {
        font-size: 16px !important;
    }

    /* Display Options (SavedFilterBar): its tabs as tall as their content, the dialog scrolling, rather than the desktop's fixed height */
    .phone-form-dialog .display-options-body {
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    /* the footer across the foot of the screen, the primary button as the till's Pay button. display is !important because
       Syncfusion's bootstrap5.css loads after app.css and its .e-dialog .e-footer-content { display: block } would win, leaving
       the buttons their own width on the right */
    .phone-form-dialog .e-footer-content,
    .phone-form-dialog .phone-form-foot {
        display: flex !important;
        flex: 0 0 auto;
        gap: 8px;
        margin: 0 !important;
        padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
        border-top: 1px solid #dee2e6 !important;
    }

    /* a footer inside the scrolling content stays pinned at the foot of it */
    .phone-form-dialog .e-dlg-content .phone-form-foot {
        position: sticky;
        bottom: -8px;
        z-index: 2;
        margin: 0 -12px -8px !important;
        background-color: white;
    }

        .phone-form-dialog .e-footer-content > *,
        .phone-form-dialog .phone-form-foot > * {
            flex: 1 1 0;
            min-height: 44px;
            margin: 0 !important;
        }

        .phone-form-dialog .e-footer-content .e-btn.e-primary,
        .phone-form-dialog .phone-form-foot .e-btn.e-primary,
        .phone-form-dialog .phone-form-save {
            height: 52px;
            border: none !important;
            border-radius: 8px !important;
            background-color: #28a745 !important;
            color: white !important;
            font-size: 1.15rem !important;
            font-weight: 700 !important;
            text-transform: none !important;
        }
}

/* The report viewer on phones (BoldReportViewerDialog, Narrow): its header as the app's top bar, with back, the report's name
   (and the view it shows) and a button for its options, which open in a panel from the right (phone-panel report-menu) */
.report-phone-head {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 56px;
    padding: 0 8px;
    background-color: #1E468C;
    color: white;
}

.report-phone-btn {
    display: inline-flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 6px;
    background: none;
    color: white;
    font-size: 1.3rem;
}

    .report-phone-btn .bi-chevron-left {
        -webkit-text-stroke: 0.8px currentColor;
    }

    .report-phone-btn[aria-expanded="true"] {
        background-color: rgba(255, 255, 255, 0.15);
    }

.report-phone-title {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    line-height: 1.2;
    text-align: center;
}

    .report-phone-title strong,
    .report-phone-title small {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .report-phone-title strong {
        font-size: 1rem;
        font-weight: 600;
    }

    .report-phone-title small {
        font-size: 0.75rem;
        opacity: 0.85;
    }

/* white text and icons in the header, over the dialog header's own (dark) text colour */
.e-dialog .e-dlg-header-content .report-phone-head,
.e-dialog .e-dlg-header-content .report-phone-head * {
    color: white !important;
}

/* the panel's red action (Delete View) keeps its colour */
.phone-panel-action.text-danger {
    color: #dc3545 !important;
}

/* Settings and Reports (and the reports dashboard) on phones: their blades laid out as the other phone screens. White rows split
   by hairlines, edge to edge, grey glyphs, the current row light blue with a blue edge, a back row fixed under the top bar that
   names where it goes, a search at the top, and the forms inside a blade with chips for their sections and a full-width green
   Save fixed at the foot. The desktop blades are unchanged: these extra parts are hidden there */
.blade-glyph,
.blade-sub,
.item-arrow-phone,
.blade-search,
.blade-search-results {
    display: none;
}

@media (max-width: 767.98px), (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
    .panel-viewport .settings-panel,
    .panel-viewport .report-panel {
        gap: 0;
        padding: 0 12px 24px 12px;
        background-color: white;
    }

    /* rows and the search reach the screen's edges */
    .panel-viewport .settings-panel > .section,
    .panel-viewport .settings-panel > .item,
    .panel-viewport .settings-panel > .itemdisabled,
    .panel-viewport .report-panel > .section,
    .panel-viewport .blade-search,
    .panel-viewport .blade-search-results {
        margin-left: -12px;
        margin-right: -12px;
    }

    .panel-viewport .section,
    .panel-viewport .item,
    .panel-viewport .itemdisabled {
        min-height: 44px;
        padding: 10px 16px;
        gap: 12px;
        border: none;
        border-bottom: 1px solid #dee2e6;
        border-radius: 0;
        background-color: white;
        color: #212529;
    }

        .panel-viewport .section:hover:not(.sectionSelected),
        .panel-viewport .item:hover {
            background-color: white;
        }

        .panel-viewport .section:active,
        .panel-viewport .item:active {
            background-color: #f1f3f5;
        }

    .panel-viewport .section strong,
    .panel-viewport .item-text-wrapper strong,
    .panel-viewport .itemdisabled strong {
        color: #212529;
        font-size: 1rem;
        font-weight: 500;
    }

    /* the group or item you came back from, as the menu's and the panel's current row */
    .panel-viewport .sectionSelected,
    .panel-viewport .itemSelected {
        background-color: #e7f1fb;
        box-shadow: inset 3px 0 0 #2078c0;
    }

        .panel-viewport .sectionSelected strong,
        .panel-viewport .itemSelected strong {
            color: #0b3d6e;
        }

    .panel-viewport .item-description {
        display: -webkit-box;
        margin-top: 2px;
        overflow: hidden;
        color: #6c757d;
        font-size: 0.8rem;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .panel-viewport .section-arrow,
    .panel-viewport .item-arrow,
    .panel-viewport .sectionSelected .section-arrow,
    .panel-viewport .itemSelected .item-arrow {
        color: #adb5bd;
        font-size: 0.9rem;
    }

    .panel-viewport .item-arrow-phone {
        display: inline-block;
    }

    .panel-viewport .itemdisabled {
        opacity: 0.45;
    }

    /* Settings groups: a grey glyph in place of the coloured picture, and three of the group's items under its name */
    .panel-viewport .settings-panel .section img {
        display: none !important;
    }

    .panel-viewport .blade-glyph {
        display: inline-flex;
        flex: 0 0 28px;
        justify-content: center;
        color: #6c757d;
        font-size: 1.25rem;
    }

    .panel-viewport .section-staff .blade-glyph {
        color: #dc3545;
    }

    .panel-viewport .blade-text {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        min-width: 0;
    }

    .panel-viewport .blade-sub {
        display: block;
        overflow: hidden;
        color: #6c757d;
        font-size: 0.8rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Reports groups keep their pictures, grey and smaller, as their glyphs (the groups come from the report catalogue) */
    .panel-viewport .report-panel .section img {
        width: 22px !important;
        height: 22px !important;
        filter: grayscale(1);
        opacity: 0.65;
    }

    /* back, fixed under the top bar: a blue arrow and where it goes, in place of the pink-edged row */
    .panel-viewport .section-back-mobile {
        position: sticky;
        top: 0;
        z-index: 2;
        gap: 6px;
        min-height: 44px;
        padding: 0 12px;
        color: #2078c0;
    }

        .panel-viewport .section-back-mobile strong {
            color: #2078c0;
            font-weight: 600;
        }

        .panel-viewport .section-back-mobile .bi {
            font-size: 1rem;
            -webkit-text-stroke: 0.6px currentColor;
        }

    /* the reports dashboard's back rows (between its quick reports' lists, in the panel from the right), the same */
    .panel-viewport .report-panel > .section-back:not(.section-back-mobile):not(.section-back-wide) {
        position: sticky;
        top: 0;
        z-index: 2;
        gap: 6px;
        min-height: 44px;
        padding: 0 12px;
        border: none;
        border-bottom: 1px solid #dee2e6;
        border-radius: 0;
        background-color: white;
        color: #2078c0;
    }

        .panel-viewport .report-panel > .section-back:not(.section-back-mobile):not(.section-back-wide) strong {
            color: #2078c0;
            font-size: 1rem;
            font-weight: 600;
        }

    /* the dashboard's All Reports, to the list of every report: a row as the lists' rows, with a grey glyph */
    .report-column .dashboard-all-reports {
        display: flex;
        align-items: center;
        min-height: 48px;
        margin: 0 0 12px 0;
        padding: 10px 16px;
        gap: 12px;
        border: none;
        border-bottom: 1px solid #dee2e6;
        border-radius: 0;
        background-color: white;
        color: #212529;
        cursor: pointer;
    }

        .report-column .dashboard-all-reports:active {
            background-color: #f1f3f5;
        }

        .report-column .dashboard-all-reports strong {
            color: #212529;
            font-size: 1rem;
            font-weight: 500;
        }

        .report-column .dashboard-all-reports .section-arrow {
            margin-left: auto;
            color: #adb5bd;
            font-size: 0.9rem;
        }

    .dashboard-all-reports-glyph {
        display: inline-flex;
        flex: 0 0 28px;
        justify-content: center;
        color: #6c757d;
        font-size: 1.25rem;
    }

    /* the quick reports in the panel from the right: their lists fill it, and a view's bin is a red 44px target */
    .phone-panel .panel-viewport {
        height: auto;
        max-height: none;
        margin: 0;
    }

    .phone-panel .report-panel .view-delete {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin: -12px -16px -12px auto;
        color: #dc3545;
        font-size: 18px;
    }

    /* the search at the top: the till's 44px box at 16px, so the phone doesn't zoom */
    .panel-viewport .blade-search {
        display: flex;
        padding: 10px 16px 8px 16px;
        border-bottom: 1px solid #dee2e6;
    }

    .blade-search-box {
        display: flex;
        flex: 1 1 auto;
        align-items: center;
        gap: 8px;
        height: 44px;
        padding: 0 4px 0 12px;
        border: 1px solid #dee2e6;
        border-radius: 6px;
        background-color: white;
        color: #6c757d;
    }

        .blade-search-box input {
            flex: 1 1 auto;
            min-width: 0;
            border: none;
            outline: none;
            background: none;
            color: #212529;
            font-size: 16px;
        }

        .blade-search-box button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            border: none;
            background: none;
            color: #6c757d;
        }

    .panel-viewport .blade-search-results {
        display: block;
    }

    /* each group's matches under its name; a group with none, and its name, are left out */
    .blade-search-label {
        padding: 14px 16px 6px 16px;
        border-bottom: 1px solid #dee2e6;
        color: #6c757d;
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.03em;
        text-transform: uppercase;
    }

    .blade-search-group:not(:has(.item, .itemdisabled, .section)) {
        display: none;
    }

    .blade-search-empty {
        display: none;
        padding: 32px 16px;
        color: #6c757d;
        text-align: center;
    }

    .blade-search-results:not(:has(.item, .itemdisabled, .section)) .blade-search-empty {
        display: block;
    }

    /* a form inside a blade: its section buttons as chips that scroll sideways, plain sections, 16px fields, and Save
       full width and green, fixed at the foot */
    .panel-viewport .panel-sections {
        flex-wrap: nowrap;
        gap: 6px;
        padding: 10px 0;
        overflow-x: auto;
        scrollbar-width: none;
    }

        .panel-viewport .panel-sections::-webkit-scrollbar {
            display: none;
        }

        .panel-viewport .panel-sections .btn {
            flex: 0 0 auto;
            padding: 4px 12px;
            border: 1px solid #dee2e6;
            border-radius: 16px;
            background-color: white;
            color: #212529;
            font-size: 0.85rem;
            white-space: nowrap;
        }

            .panel-viewport .panel-sections .btn:active,
            .panel-viewport .panel-sections .btn:focus {
                border-color: #b6d4fe;
                background-color: #e7f1ff;
                color: #0b3d6e;
                box-shadow: none;
            }

    .panel-viewport .panel-details {
        padding: 12px 0;
        border-left: none;
        border-bottom: 1px solid #dee2e6;
        border-radius: 0;
        background: none;
        color: #212529;
    }

        .panel-viewport .panel-details h5 {
            font-size: 1rem;
            font-weight: 600;
        }

    .panel-viewport .settings-panel input.form-control,
    .panel-viewport .settings-panel select,
    .panel-viewport .settings-panel textarea,
    .panel-viewport .settings-panel .e-input {
        font-size: 16px !important;
    }

    .panel-viewport .panel-form {
        margin-bottom: -24px;
    }

    /* the foot of the panel, which fills the screen to its foot (Settings), as the other pages' Save bar (SaveBar PhoneBottom). Not
       sticky: the panel's bottom padding would hold a sticky bar that far above the foot */
    .panel-viewport .panel-save {
        gap: 8px;
        margin: 0 -12px;
        padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)) 12px;
        border-top: 1px solid #dee2e6;
        background-color: white;
    }

        .panel-viewport .panel-save .btn {
            flex: 1 1 0;
            height: 52px;
            border-radius: 8px;
            font-size: 1.1rem;
            font-weight: 700;
        }
}

/* Phones: a long form on one scrolling page under a bar of its sections' buttons (VCLOUD-9946; JumpBar.razor, xposJumpBar in
   xpos.js). Only drawn on phones, so these need no media query.
   - the bar stays at the top as the form scrolls; its buttons are the till's chips, the highlighted one blue, and they scroll
     sideways when they don't fit, an edge fading while there are more past it
   - a red dot on a button whose section has an error
   - a section (jump-section) shows a light tint of the accent and a thin accent bar down its left while one of its fields has
     focus: steady, not animated, so moving between its fields doesn't flicker, and blue, never the errors' red. A section jumped
     to pulses once
   - jump-section-gutter is the room the tint and bar take at the section's sides, from the form's own side padding */
.jump-bar {
    position: sticky;
    top: var(--jump-bar-top, 0px);
    z-index: 20;
    flex: 0 0 auto;
    background-color: white;
}

.jump-bar-chips {
    position: relative;
    display: flex;
    gap: 6px;
    padding: 8px 0;
    overflow-x: auto;
    scrollbar-width: none;
}

    .jump-bar-chips::-webkit-scrollbar {
        display: none;
    }

.jump-bar[data-more-right] .jump-bar-chips {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent);
}

.jump-bar[data-more-left] .jump-bar-chips {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 36px);
    mask-image: linear-gradient(to right, transparent, #000 36px);
}

.jump-bar[data-more-left][data-more-right] .jump-bar-chips {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent);
    mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent);
}

.jump-bar-chip {
    position: relative;
    flex: 0 0 auto;
    height: 36px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid #ced4da;
    border-radius: 18px;
    background-color: white;
    color: #212529;
    font-size: 0.9rem;
    line-height: 34px;
    white-space: nowrap;
}

    .jump-bar-chip[data-active] {
        border-color: #2078c0;
        background-color: #e7f1fb;
        color: #0b3d6e;
        font-weight: 600;
    }

    .jump-bar-chip[data-error]::after {
        content: "";
        position: absolute;
        top: 1px;
        right: 3px;
        width: 10px;
        height: 10px;
        border: 2px solid white;
        border-radius: 50%;
        background-color: #dc3545;
    }

.jump-section {
    margin-left: calc(-1 * var(--jump-section-gutter, 8px));
    margin-right: calc(-1 * var(--jump-section-gutter, 8px));
    padding-left: var(--jump-section-gutter, 8px);
    padding-right: var(--jump-section-gutter, 8px);
    border-radius: 8px;
}

    .jump-section:focus-within {
        background-color: #f6f9fd;
        box-shadow: inset 3px 0 0 #2078c0;
    }

    .jump-section.jump-pulse {
        animation: jump-section-pulse 1s ease-out 1;
    }

@keyframes jump-section-pulse {
    0% {
        background-color: #dcebf8;
        box-shadow: inset 0 0 0 2px rgba(32, 120, 192, 0.6);
    }

    100% {
        background-color: transparent;
        box-shadow: inset 0 0 0 2px rgba(32, 120, 192, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .jump-section.jump-pulse {
        animation: none;
    }
}

/* a collapsible section, collapsed: only its head (jump-section-head) shows; jumping to it opens it */
.jump-section.jump-collapsed > :not(.jump-section-head) {
    display: none !important;
}

/* the filters forms on phones (filter-dialog-linear): the bar is above the part that scrolls; that part reaches into the dialog's
   side padding by the sections' gutter, so the fields stay where they were and the focus tint and bar aren't clipped */
.filter-dialog-linear .filter-dialog-scroll {
    margin: 0 -8px;
    padding: 0 8px;
    /* the rows' negative side margins reach past it; only their empty edges are cut */
    overflow-x: hidden;
}

.jump-bar.filter-jump-buttons {
    padding-bottom: 0 !important;
}

/* a full-screen phone dialog whose content scrolls with the bar in it (Display Options, the Brands, Kit Products, Staff and
   Suppliers filters): the bar across the dialog (its content has 12px sides), held at its top. It sticks below the content's top
   padding, which its white shadow covers so nothing shows above it as the content scrolls */
.phone-full-dialog .e-dlg-content > .jump-bar {
    margin: 0 -12px 8px;
    padding: 0 12px;
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 -12px 0 white;
}

/* Settings' panels with section buttons on phones (Receipt Address, Email Setup): the sections keep the gutter for their focus tint
   and bar, the part that scrolls reaching into the panel's side padding by as much, so the fields stay where they were */
.panel-viewport .panel-form:has(> .jump-bar) .panel-scroll {
    margin: 0 -8px;
    padding-left: 8px;
    padding-right: 8px;
}

.panel-viewport .panel-details.jump-section {
    margin-left: -8px;
    margin-right: -8px;
    padding-left: 8px;
    padding-right: 8px;
}

/* Phones: the list screens' New bar (PhoneNewBar, VCLOUD-9948): fixed across the foot, clear of the phone's home bar, the list's totals
   (where it has them) above a full-width green "+ New ..." button. Over the list (as the bottom Save bar), under the page's panel
   (990), the sheets (980) and dialogs (1000) */
.phone-new-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #dee2e6;
    background-color: #fff;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
}

.phone-new-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border: none;
    border-radius: 8px;
    background-color: #28a745;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

    .phone-new-btn:active:not(:disabled) {
        background-color: #218838;
    }

    .phone-new-btn:disabled {
        opacity: 0.55;
    }

/* the card lists scroll their last card clear of the bar: a space its height at the end of the list */
html.has-phone-foot .pgrid.pgrid-card-mode::after {
    content: "";
    display: block;
    flex: 0 0 auto;
    height: var(--phone-foot-h, 0px);
}

/* Phones: a menu as a sheet up from the foot (BottomSheet): the grab bar, the title, a large row per option and Cancel, only as tall
   as they need (up to near the top). Over the page's panel and dialogs, as the value sheets */
.bottom-sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1004;
    background-color: rgba(0, 0, 0, 0.4);
    animation: value-sheet-fade 0.2s ease;
}

.bottom-sheet {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1005;
    display: flex;
    flex-direction: column;
    max-height: 85dvh;
    padding: 0 12px calc(8px + env(safe-area-inset-bottom, 0px)) 12px;
    border-radius: 14px 14px 0 0;
    background-color: #fff;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
    animation: value-sheet-up 0.25s ease;
}

.bottom-sheet-grab {
    flex: 0 0 auto;
    width: 40px;
    height: 5px;
    margin: 8px auto 4px auto;
    border-radius: 3px;
    background-color: #ced4da;
}

.bottom-sheet-title {
    flex: 0 0 auto;
    padding: 4px 4px 10px;
    border-bottom: 1px solid #dee2e6;
    font-size: 1.1rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bottom-sheet-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.bottom-sheet-row {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 52px;
    padding: 0 8px;
    border: none;
    border-bottom: 1px solid #f1f3f5;
    background: none;
    color: #212529;
    font-size: 1.05rem;
    text-align: left;
}

    .bottom-sheet-row i {
        width: 24px;
        color: #1E468C;
        font-size: 1.25rem;
        text-align: center;
    }

    .bottom-sheet-row:active:not(:disabled) {
        background-color: #f1f3f5;
    }

    .bottom-sheet-row:disabled {
        opacity: 0.45;
    }

    /* a destructive choice (Clear Bundle): red, its icon too */
    .bottom-sheet-row.danger,
    .bottom-sheet-row.danger i {
        color: #dc3545;
        font-weight: 600;
    }

/* a confirmation's question under the title, wrapping; the line under the title moves below it */
.bottom-sheet-title:has(+ .bottom-sheet-message) {
    padding-bottom: 2px;
    border-bottom: none;
}

.bottom-sheet-message {
    flex: 0 0 auto;
    padding: 0 4px 10px;
    border-bottom: 1px solid #dee2e6;
    color: #6c757d;
    font-size: 0.95rem;
}

.bottom-sheet-cancel {
    flex: 0 0 auto;
    justify-content: center;
    margin-top: 8px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    color: #6c757d;
    font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
    .bottom-sheet,
    .bottom-sheet-backdrop {
        animation: none;
        transition: none;
    }
}

/* Touch screens: a long press on a picture or link doesn't offer to save, copy or share it (an iPhone's callout; other phones'
   menus are stopped in xpos.js) */
@media (pointer: coarse) {
    img,
    a {
        -webkit-touch-callout: none;
    }
}

/* Phones: every confirmation and message (XPosDialog through IXPosDialogService and CustomConfirmation, and SweetAlert's own) slides
   up from the foot as the other sheets (BottomSheet) rather than sitting in the middle of the screen: the grab bar, the title and
   question on the left, and each button the full width, one under the other, within reach of the thumb. The selectors outweigh
   XPosDialog's scoped rules, which centre it with !important */
@media (max-width: 768px) {
    body .swal2-container.swal2-center,
    body .swal2-container.swal2-bottom {
        align-items: flex-end !important;
        padding: 0 !important;
    }

    body .swal2-container .swal2-popup.swal2-modal {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 85dvh;
        margin: 0 !important;
        padding: 0 12px calc(8px + env(safe-area-inset-bottom, 0px)) 12px !important;
        overflow-y: auto;
        overscroll-behavior: contain;
        border-radius: 14px 14px 0 0 !important;
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.2);
        animation: value-sheet-up 0.25s ease !important;
    }

        body .swal2-container .swal2-popup.swal2-modal::before {
            content: "";
            display: block;
            justify-self: center;
            width: 40px;
            height: 5px;
            margin: 8px auto 4px auto;
            border-radius: 3px;
            background-color: #ced4da;
        }

        /* the icon would take half the sheet; the buttons' colours say what they do */
        body .swal2-container .swal2-popup.swal2-modal .swal2-icon,
        body .swal2-container .swal2-popup.swal2-modal .xpos-dialog-row-icon {
            display: none !important;
        }

        body .swal2-container .swal2-popup.swal2-modal .swal2-title {
            margin: 0 !important;
            padding: 4px 4px 2px !important;
            font-size: 1.1rem !important;
            font-weight: 700 !important;
            text-align: left !important;
        }

        body .swal2-container .swal2-popup.swal2-modal .swal2-html-container {
            margin: 0 !important;
            padding: 0 4px 10px !important;
            color: #6c757d;
            font-size: 0.95rem !important;
            text-align: left !important;
        }

            body .swal2-container .swal2-popup.swal2-modal .swal2-html-container .mb-3:last-child {
                margin-bottom: 0 !important;
            }

            /* a field asked for in the sheet (a reason, a name) is 16px so the phone doesn't zoom in */
            body .swal2-container .swal2-popup.swal2-modal input,
            body .swal2-container .swal2-popup.swal2-modal textarea,
            body .swal2-container .swal2-popup.swal2-modal select {
                font-size: 16px !important;
            }

        body .swal2-container .swal2-popup.swal2-modal .swal2-actions {
            flex-direction: column !important;
            align-items: stretch !important;
            gap: 8px;
            width: 100% !important;
            margin: 4px 0 0 0 !important;
            padding-top: 10px;
            border-top: 1px solid #dee2e6;
        }

            body .swal2-container .swal2-popup.swal2-modal .swal2-actions > button,
            body .swal2-container .swal2-popup.swal2-modal .swal2-actions > .btn {
                width: 100% !important;
                min-height: 52px;
                margin: 0 !important;
                border-radius: 8px !important;
                font-size: 1.05rem !important;
                font-weight: 600;
            }

            /* Cancel / No as BottomSheet's Cancel: outlined grey, last */
            body .swal2-container .swal2-popup.swal2-modal .swal2-actions > .swal2-cancel {
                order: 9;
                border: 1px solid #dee2e6 !important;
                background: #fff !important;
                color: #6c757d !important;
            }
}

/* BottomSheet: a language's flag in place of an icon, the choice in use ticked and bold, and a search box over a long list (shops) */
.bottom-sheet-image {
    flex: 0 0 auto;
    width: 28px;
    height: 19px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.bottom-sheet-label {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bottom-sheet-row.selected {
    font-weight: 600;
}

    .bottom-sheet-row .bottom-sheet-tick {
        flex: 0 0 auto;
        width: auto;
        color: #198754;
    }

/* Phones: grid export as a sheet (GridExportDialog, VCLOUD-9973): Format and Rows as headed groups of rows (the chosen one ticked),
   a note, the personal data warning, the progress bar, then the Share (or Export) button across the foot above Cancel */
.bottom-sheet-section {
    padding: 14px 8px 4px;
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.bottom-sheet-note {
    padding: 8px 8px 4px;
    color: #6c757d;
    font-size: 0.9rem;
}

.bottom-sheet-panel {
    padding: 8px 4px 0;
}

    .bottom-sheet-panel .form-check-input {
        width: 1.35em;
        height: 1.35em;
        margin-top: 0.1em;
    }

    .bottom-sheet-panel .form-check-label {
        padding-left: 6px;
    }

.bottom-sheet-primary {
    flex: 0 0 auto;
    justify-content: center;
    margin-top: 10px;
    border: none;
    border-radius: 8px;
    background-color: #1E468C;
    color: #fff;
    font-weight: 600;
}

    .bottom-sheet-primary i {
        color: #fff;
    }

    .bottom-sheet-primary:active:not(:disabled) {
        background-color: #173a75;
    }

.bottom-sheet-search {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    margin: 8px 0 4px;
    padding: 0 10px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    color: #6c757d;
}

    .bottom-sheet-search input {
        flex: 1 1 auto;
        min-width: 0;
        height: 40px;
        border: none;
        outline: none;
        background: none;
        font-size: 16px;
    }

/* A choice shown as a row that opens its list from the foot (the language, the layout mode and the shop: SelectLanguage, LayoutModeItem
   and SelectShop with AsItem): its flag or glyph, its name, then what it's set to or the switch glyph */
.sheet-picker {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 8px 10px;
    border: none;
    border-radius: 6px;
    background: none;
    color: #212529;
    font-size: 1rem;
    text-align: left;
}

    .sheet-picker:active {
        background-color: #f1f3f5;
    }

    .sheet-picker > i:first-child {
        width: 24px;
        color: #1E468C;
        font-size: 1.15rem;
        text-align: center;
    }

    .sheet-picker .sheet-picker-flag {
        flex: 0 0 auto;
        width: 24px;
        height: 16px;
        object-fit: cover;
        border-radius: 2px;
        box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
    }

    .sheet-picker .sheet-picker-label {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .sheet-picker .sheet-picker-value {
        flex: 0 1 auto;
        min-width: 0;
        overflow: hidden;
        color: #6c757d;
        font-size: 0.9rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .sheet-picker .sheet-picker-end {
        flex: 0 0 auto;
        color: #6c757d;
    }

/* the slide-out menu's language and layout mode: in Home's Options panel on phones (which have it), so in the menu only on tablets */
@media (max-width: 767.98px), (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
    .sidebar-tablet-only {
        display: none !important;
    }
}

/* the slide-out menu's shop and language rows: the width of the menu, in a box as the pickers were */
.sidebar-picker {
    flex: 1 1 auto;
    border: 1px solid #dee2e6;
    background-color: white;
}

/* VCLOUD-10030 Pay Invoice's dialogs (the Invoices list, Pay and Cancel Invoice): footer buttons the till's size, as the Pay screen's.
   !important as bootstrap5.css loads after this file */
.pay-invoice-dialog .e-footer-content .e-btn {
    min-height: 70px !important;
    min-width: 113px !important;
    padding: 0 24px !important;
    font-size: 25px !important;
}

@media (max-width: 576px) {
    .pay-invoice-dialog .e-footer-content .e-btn {
        min-height: 56px !important;
        min-width: 96px !important;
        font-size: 20px !important;
    }
}
