﻿@media (pointer: fine) {
    ::-webkit-scrollbar {
        max-width: 8px;
        background-color: unset;
        max-height: 4px;
    }

    ::-webkit-scrollbar-thumb {
        border-radius: 4px;
        box-shadow: unset;
        background-color: rgb(193, 193, 193);
    }
}

@media only screen and (max-width: 480px) {
    /* Styles for extra small devices */
    :root {
        --scale: 85;
    }

    * {
        touch-action: manipulation;
    }

    .select-guest-or-staff {
        max-width: 98vw;
        min-width: 98vw;
        height: 100dvh;
    }

    #modalListOrder {
        max-width: calc(100% - var(--px-68));
    }

        #modalListOrder.open-payment div.fix-left-on-phone {
            left: unset;
            z-index: 123123123;
            border-radius: 0;
            width: var(--px-380);
            right: 0;
        }

        #modalListOrder.open-payment button.fix-left-on-phone {
            z-index: 123123123;
            left: calc(-1* var(--px-60));
        }

    .setting-group {
        width: 100%;
    }

    .select-guest-or-staff .select-g-s {
        min-width: 100%;
        height: var(--px-140);
    }

    #modalListOrder.expand-payment-order .list-method-pay,
    .form-append-footer .list-append-footer-track {
        grid-template-columns: repeat(2, 1fr);
    }

    .group-btn-right-top time,
    .hide-when-phone-device {
        display: none !important;
    }

    .show-on-phone {
        display: flex !important;
    }

    .form-select-table {
        display: flex;
        flex-direction: column;
        padding: 0 var(--px-12);
    }

        .form-select-table .table-map {
            gap: var(--px-42);
        }

        .form-select-table .end-bar-map {
            max-height: var(--px-300);
            min-height: var(--px-300);
            margin-bottom: var(--px-12);
        }

            .form-select-table .end-bar-map .place-order-table {
                overflow: auto hidden;
                flex-direction: column;
                justify-content: flex-start;
            }

    body[templatemenu="0"] .item-service {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(auto-fit, var(--px-130));
    }

    body[templatemenu="0"] .service-name {
        min-height: var(--px-130);
        max-height: var(--px-130);
    }

        body[templatemenu="0"] .service-name .flex-img {
            max-width: var(--px-180);
        }

    .container-append-service.open {
        position: relative;
        transition: left .4s;
        left: 0;
        z-index: 8;
    }

    .container-append-service.open {
        padding-left: 0;
        padding-bottom: var(--px-108);
    }

    .item-service {
        flex-direction: column;
        flex-wrap: unset;
        align-items: center;
    }

    .service-name {
        width: 98%;
        );
        min-height: calc((100% / 2) - var(--px-8)* 1);
    }

        .service-name .wrap-line-2 {
            -webkit-line-clamp: 1;
        }

        .service-name note {
            /* display: none; */
        }

    .popup-content .service-name {
        min-height: unset;
        max-height: unset;
    }

        .popup-content .service-name .info-service {
            min-width: 100%;
            max-width: 100%;
        }

        .popup-content .service-name .flex-img {
            max-width: 100%;
            min-height: var(--px-420);
            max-height: var(--px-420);
            min-width: 90vw;
        }

    .expand-bill-view {
        bottom: var(--px-32);
        left: 0;
    }

        .expand-bill-view #rule-menu {
            text-align: center;
        }

    .service-name .flex-img {
    }

    .popup-container.fit-right {
        width: 98%;
        height: var(--px-640);
        right: unset !important;
        top: 50% !important;
        left: 50% !important;
        max-height: 80vh;
        transform: translate(-50%, -50%);
    }

    .popup-container textarea.add-items {
        max-width: 100%;
    }

    .popup-container.fit-center-modal {
        width: 96vw;
        top: 20% !important;
    }

        .popup-container.fit-center-modal.large {
            width: 98vw;
        }

    .select-items-popup {
        position: unset;
        width: 100%;
    }

    .popup-container.fit-center-modal.combo {
        top: 10% !important;
    }

    .modal-dialog {
        margin: auto;
        max-width: 100vw;
        width: 100dvh;
        height: 100dvh;
    }

        .modal-dialog.mw-400 .modal-content {
            height: inherit;
        }

    .form-add-client-bill {
        max-width: unset;
    }
}

@media only screen and (min-width: 481px) and (max-width: 768px) {
    /* Styles for small devices */
    :root {
        --scale: 76;
    }

    * {
        touch-action: manipulation;
    }

    .popup-content .service-name .flex-img {
        max-width: unset;
    }
}

@media only screen and (min-width: 769px) and (max-width: 1024px) {
    /* Styles for medium devices */
    :root {
        --scale: 88;
    }

    * {
        touch-action: manipulation;
    }

    .form-select-outlet {
        gap: var(--px-20);
    }
}

@media only screen and (min-width: 1025px) and (max-width: 1200px) {
    /* Styles for large devices */
    :root {
        --scale: 90;
    }

    * {
        touch-action: manipulation;
    }
}

@media only screen and (min-width: 1201px) {
    /* Styles for extra large devices */
    :root {
        --scale: 86;
    }

    * {
        touch-action: manipulation;
    }
}

@media only screen and (orientation: portrait) {
    /* Styles for portrait orientation */
    :root {
    }
}

@media only screen and (orientation: landscape) {
    /* Styles for landscape orientation */
    :root {
    }
}

@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi) {
    /* Styles for retina displays */
    :root {
    }
}

@media (prefers-color-scheme: dark) {
    /* Styles for dark mode */
}

@media (prefers-reduced-motion: reduce) {
    /* Styles for reduced motion preference */
}

@media only screen and (min-width: 1400px) {
    /* Custom styles for screens larger than 1400px */
    :root {
        --scale: 100;
    }
}

@keyframes pulse {
    from {
        box-shadow: 0 0 0 0 #AAAAAA;
    }
}

@keyframes scale-click {
    from {
        opacity: .7;
        transform: scale(.7);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scan {
    0% {
        box-shadow: 0px 0px 8px 10px rgba(170, 11, 23, 0.49);
        top: 50%;
    }

    25% {
        box-shadow: 0px 6px 8px 10px rgba(170, 11, 23, 0.49);
        top: 5px;
    }

    75% {
        box-shadow: 0px -6px 8px 10px rgba(170, 11, 23, 0.49);
        top: 98%;
    }
}

.txt-lux {
    font-family: 'Bodoni Moda', serif !important;
}

.txt-lux-vibes {
    font-family: "Great vibes", cursive !important;
}

textarea {
    /* iOS Safari */
    -webkit-touch-callout: auto;
    /* Safari */
    -webkit-user-select: auto;
    /* Konqueror HTML */
    -khtml-user-select: auto;
    /* Firefox */
    -moz-user-select: auto;
    /* Internet Explorer/Edge */
    -ms-user-select: auto;
    /* Non-prefixed version, currently supported by Chrome and Opera */
    user-select: auto;
}

.dis-none {
    display: none !important;
}

#zoomableImage {
    transition: transform-origin 0.1s ease-out; /* Smooth animation */
}

img.move-to-cart {
    position: absolute;
    height: 200px;
    width: 200px;
    border-radius: 200px;
    z-index: 9999;
}

    img.move-to-cart.animate {
        opacity: 1;
        height: 75px;
        width: 75px;
        transition: all 0.5s ease-in-out;
    }

    img.move-to-cart.hide-img {
        opacity: 0.5;
        width: 0;
        height: 0;
        margin-left: 75px;
        transition: all 0.5s ease-in-out;
    }


/* barcode container */
.anim-box {
    margin: auto;
    position: relative;
    width: var(--px-300);
    height: var(--px-300);
    padding: var(--px-24);
    transition: transform 0.6s ease-out;
}

    /* adds the 4 corners */
    .anim-box:before,
    .anim-box:after,
    .anim-box > :first-child:before,
    .anim-box > :first-child:after {
        position: absolute;
        width: 14%;
        height: 14%;
        border-color: var(--bs-gray-600);
        border-style: solid;
        content: " ";
    }

    /* top left corner */
    .anim-box:before {
        top: 0;
        left: 0;
        border-width: 4px 0 0 4px;
        border-top-left-radius: var(--px-16);
    }

    /* top right corner */
    .anim-box:after {
        top: 0;
        right: 0;
        border-width: 4px 4px 0 0;
        border-top-right-radius: var(--px-16);
    }

    /* bottom right corner */
    .anim-box > :first-child:before {
        bottom: 0;
        right: 0;
        border-width: 0px 4px 4px 0;
        border-bottom-right-radius: var(--px-16);
    }

    /* bottom left corner */
    .anim-box > :first-child:after {
        bottom: 0;
        left: 0;
        border-width: 0 0 4px 4px;
        border-bottom-left-radius: var(--px-16);
    }

/* barcode bars */
.anim-item {
    display: inline-block;
    background-color: white;
    height: 100px;
}

.anim-item-sm {
    width: 2px;
    margin-right: 3px;
}

.anim-item-md {
    width: 3px;
    margin-right: 2px;
}

.anim-item-lg {
    width: 5px;
    margin-right: 5px;
}

/* grow on hover */
.anim-box {
}

    .anim-box .scanner {
        animation-play-state: running;
    }

/* animated laser beam */
.scanner {
    width: 100%;
    height: 3px;
    background-color: red;
    opacity: 0.7;
    position: relative;
    box-shadow: 0px 0px 8px 10px rgba(170, 11, 23, 0.49);
    top: 50%;
    animation-name: scan;
    animation-duration: 4s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-play-state: paused;
}

@media print {
    @page {
        size: A4;
        margin: 1cm; /* Adjust margins as needed */
    }

    table.table {
        width: 100%; /* Make table fill the page width */
        height: auto; /* Allow height to adjust automatically */
        /* Add any other print-specific styles for the table here */
    }
}

/* CONTACT */
.needh-title {
    color: var(--bs-gray-200);
    font: normal normal 600 var(--s-28);
}

textarea.needh-text {
    border: 0;
    width: 100%;
    margin-top: var(--px-16);
    background: inherit;
    border-radius: var(--px-12);
    padding: var(--px-16);
    min-height: var(--px-140);
    border: 1px solid var(--bs-gray-700);
}

    textarea.needh-text:focus {
        background: white;
        outline: 2px solid var(--bs-main-400);
    }

.contact-page-info {
    display: flex;
    gap: var(--px-40);
    flex-direction: row;
    padding: var(--px-60);
    background: var(--bg-light);
    flex-wrap: wrap;
    color: var(--txt-light);
}

.contact-left-side {
    flex: 2;
    height: 100%;
    display: flex;
    gap: var(--px-16);
    position: relative;
    flex-direction: column;
    justify-content: center;
}

    .contact-left-side h1 {
        color: var(--bs-gray-200);
        font: normal normal 700 var(--s-45);
    }

    .contact-left-side .group-info-contact {
        display: flex;
        gap: var(--px-12);
        flex-direction: column;
        justify-content: space-between;
    }

    .contact-left-side .info-contact {
        color: var(--bs-gray-500);
        font: normal normal 400 var(--s-18);
    }

    .contact-left-side .group-col-contact {
        display: flex;
        gap: var(--px-12);
        margin-top: var(--px-24);
        align-items: center;
    }

    .contact-left-side .col-contact {
        flex: 1;
        height: 100%;
        display: flex;
        flex-direction: column;
        gap: var(--px-16);
    }

    .contact-left-side .intro {
        flex: 1;
        padding: var(--px-24);
        max-width: var(--px-300);
        color: var(--txt-light);
        border-radius: var(--px-24);
        background: var(--bs-dark);
        font: italic normal 300 var(--s-18);
    }

    .contact-left-side i {
        color: var(--bs-main);
    }

    .contact-left-side .title-contact {
        color: var(--bs-gray-200);
        font: normal normal 600 var(--s-18);
    }

    .contact-left-side .message-contact {
        color: var(--bs-gray-500);
        font: normal normal 300 var(--s-16);
    }

.contact-right-side {
    flex: 1;
    margin: auto;
    display: flex;
    gap: var(--px-16);
    flex-direction: column;
    background: var(--bs-dark);
    border-radius: var(--px-16);
    padding: var(--px-24);
}

    .contact-right-side .terma {
        text-align: center;
        padding: 0 var(--px-24);
        color: var(--bs-gray-600);
        font: italic normal 300 var(--s-16);
    }

        .contact-right-side .terma strong {
            font: italic normal 600 var(--s-14);
        }

.contact-right-side {
    display: flex;
    gap: var(--px-16);
    flex-direction: column;
}

.group-input-icon {
    display: flex;
    gap: var(--px-12);
    align-items: center;
    border: 1px solid var(--bs-gray-700);
    padding: var(--px-12) var(--px-24);
    border-radius: var(--px-12);
}

    .group-input-icon i {
        color: var(--bs-main);
    }

    .group-input-icon .input-contact {
        border: 0;
        width: 100%;
        outline: 0;
        color: var(--txt-light);
        background: inherit;
    }

    .group-input-icon:focus-within {
        outline: 2px solid var(--bs-main);
    }

.group-needh-title {
    display: flex;
    gap: var(--px-4);
    flex-direction: column;
    margin-bottom: var(--px-24);
}

#lottie-animation-contact {
    height: var(--px-300);
}

#need-help-modal {
    background: var(--bs-main-50)
}

.row-left-2 {
    display: flex;
    gap: var(--px-24);
    align-items: center;
    justify-content: flex-end;
}

button.form-contact-btn-close {
    position: absolute;
    right: var(--px-60);
    top: var(--px-24);
    border: 0;
    background: var(--bs-main) !important;
    color: white !important;
    font-size: var(--px-16) !important;
}

@media (min-width: 768px) {
    .content-wrapper-custom .chart-area {
        height: 20rem;
    }

    .content-wrapper-custom .chart-pie {
        height: calc(20rem - 43px) !important;
    }
}
