/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/* 
    Created on : May 13, 2024, 4:44:25 PM
    Author     : Wasan Chanpen
*/

@font-face {
    font-family: "Kanit";
    src: url("fonts/Kanit-Light.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0px;
    padding: 0px;
    line-height: 1;
    font-family: "Kanit";
    background-color: white;
    background: linear-gradient(to left, orange, #c24e00);
    color: #2e2e2e;
    &.force-vertical {
        background: linear-gradient(to bottom, orange, #c24e00);
    }
}
div {
    position: relative;
}

.tablelike {
    .tablelike-header-wrapper {
        display: block;
        width: 100%;
        text-align: center;
    }
    .tablelike-title {
        display: block;
        width: 100%;
        text-align: center;
        font-size: 2.6vw;
        padding: 1.5vh 0 1.9vh 0;
        font-weight: 900;
        color: white;
    }
    .tablelike-header,
    .tablelike-body {
        display: block;
        width: 100%;
        font-size: 0px;
        margin-bottom: 0.5vw;

        & > span {
            display: inline-block;
            text-align: center;
            font-size: 1.5vw;
            height: 100%;
            word-wrap: break-word;
            vertical-align: top;
        }
    }
    .tablelike-header {
        font-weight: 600;
        color: #555;
        padding: 1.2vh 0 1.2vh 0;
    }
    .tablelike-header,
    .tablelike-body {
        height: calc(10vh - 1.2vh * 2);
        padding: 0.8vh 0 0.8vh 0;
        & > span {
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        & > span:first-child {
            padding-left: 1vh;
        }
        & > span:last-child {
            padding-right: 1vh;
        }
    }
    .tablelike-header {
        padding-bottom: 1vh;
        height: inherit;
        & > span {
            color: black;
        }
    }
    .tablelike-body {
        background-color: rgba(255, 255, 255, 1);
        box-shadow: 0px 0.2vh 0.5vh rgba(0, 0, 0, 0.4);
        border-radius: 0.8vh;
        position: relative;

        span {
            position: relative;
        }
        span.service-color {
            display: block;
            position: absolute;
            background-color: #eee;
            height: 100%;
            width: 1vh;
            top: 0px;
            border-top-left-radius: 0.8vh;
            border-bottom-left-radius: 0.8vh;
        }
    }
    .tablelike-header-wrapper {
        background-color: rgba(255, 255, 255, 0);
    }
}
.hidden {
    display: none !important;
}
.expandFullWidth {
    width: 100% !important;
}
.info-block {
    & > span {
        display: block;
        margin-bottom: 1vh;
    }
}

.slider, .slider-wrapper {
    position: relative;
    aspect-ratio: 1/1;
    background-color: white;
    flex-shrink: 0;
    padding: 0px;
    border-radius: 0.8vh;
    box-shadow: 0px 0.2vh 0.5vh rgba(0, 0, 0, 0.4);
}
.slider-wrapper {
    overflow: hidden;
}
.slider-container {
    display: flex;
    width: 300%;
    height: 100%;

    .slide-image-wrapper, .slide-image {
        height: 100%;
        max-height: 100%;
        max-width: 100%;
    }
}

.qsystem-container {
    position: relative;
    width: 100%;
    height: 100%;

    .qsystem-header {
        height: 10vh;
        background: linear-gradient(to right, white, orange);
        padding: 1vh;
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-shadow: 0px 0px 2vh rgba(0, 0, 0, 0.4);
        z-index: 0;
        overflow: hidden;

        & > div {
            position: relative;
        }
        .logo {
            display: inline-block;
            height: 100%;
            min-width: 10vh;
            max-height: 10vh;
            img {
                height: 100%;
                width: auto;
            }
        }
        .business-name {
            font-size: 6.5vh;
            text-align: center;
        }
        .datetime {
            background-color: white;
            padding: 2vh;
            font-size: 2vw;
            border-radius: 4vh;
            margin-right: 1vh;
            &.force-vertical {
                padding: 1vh;
                right: -1vh;
            }
        }
        &.force-vertical {
            height: 5vh !important;
        }
    }
    .qsystem-body {
        height: 72vh;
        padding: 3vh;
        padding-bottom: 6vh;
        display: flex;
        gap: 4vh;
        z-index: 2;
        overflow: hidden;

        .panel {
            z-index: 100;
        }
        &.force-vertical {
            height: 84vh;
            flex-direction: column-reverse;
            justify-content: flex-end;
            align-items: center;
            padding: 2vh;
        }
    }
    .qsystem-footer {
        height: 5vh;
        padding: 1vh 0 1vh 0;
        background-color: white;
        z-index: 1;
        box-shadow: 0px 0px 6vh rgba(0, 0, 0, 0.2);
        line-height: normal;
        overflow: hidden;

        #marquee-container {
            width: 100%;
            white-space: nowrap;
        }
        .text-runner {
            font-size: 3.5vh;
            position: relative;
            white-space: nowrap;
            overflow: visible;
            
            &.force-vertical {
                font-size: 2.5vh;
            }
        }
        &.force-vertical {
            height: 4vh;
            padding: 0.5vh 0 0.5vh 0;
        }
    }
}

.modal-container {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0px;
    left: 0px;
    background-color: rgba(100, 100, 100, 0.5);
    z-index: 10;
    backdrop-filter: blur(5px);
}

.modal {
    position: absolute;
    min-width: 50vh;
    min-height: 15vh;
    max-width: 80vh;
    max-height: 65vh;
    padding: 3.5vh;
    border-radius: 0.8vh;
    box-shadow: 0px 0.2vh 0.5vh rgba(0, 0, 0, 0.4);
    display: block;
    background: white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    .modal-title {
        display: block;
        width: 100%;
        font-size: 3vh;
        text-align: center;
        margin-bottom: 3vh;
        font-weight: 500;
        color: #555;
    }
}

/* For queue system screen: Waiting queue screen */
.qsystem-container-queue {
    .queue-list {
        width: calc(100% - 70vh - 1vh);
        display: flex;
        justify-content: space-between;
        gap: 2.2vh;
        .panel {
            display: inline-block;
            width: 50%;
        }
    }
    .tablelike-body {
        .col-queue {
            font-size: 2.5vw;
            font-weight: 700;
            color: #555;
        }
        .col-pet, .col-doctor-font, .col-pet-font {
            color: #ff6600;
            font-weight: 700;
        }
    }
    .service-queue {
        .col-queue {
            width: calc(20% - 1vh);
        }
        .col-service-doctor {
            width: 45%;
        }
        .col-customer-pet {
            width: calc(35% - 1vh);
        }
    }
    .payment-queue {
        .col-customer {
            width: calc(55% - 1vh);
        }
        .col-pet {
            width: calc(45% - 1vh);
        }
    }
    .tablelike-body.highlight {
        height: calc(17vh - 1.2vh * 2);
        .col-queue {
            font-size: 3.2vw;
            font-weight: 700;
            color: #555;
        }
        .col-customer, .col-customer-font, .col-service-font {
            font-size: 2.2vw;
        }
        .col-pet, .col-pet-font, .col-doctor-font {
            font-weight: 700;
            font-size: 2.2vw;
        }
        margin-bottom: 0.7vw;
    }
    .tablelike-body {
        background: white;
        span.service-color {
            width: calc(20% - 2vh);
        }
    }
    
    .force-square {
        .business-name {
            font-size: 3.75vw !important;
        }
        #queue-image-slider-container {
            height: 50vw !important;
        }
        #queue-list-container {
            width: 50vw !important;
        }
        .tablelike-title {
            font-size: 2.4vw !important;
        }
        .tablelike-header span {
            font-size: 1.4vw !important;
        }
        .tablelike-body {
            height: 5vw !important;
        }
    }
    .force-vertical {
        .business-name {
            font-size: 3.5vw !important;
            padding: 1.5vw !important;
        }
        #queue-image-slider-container {
            position: absolute;
            bottom: 2vh;
        }
        #queue-list-container {
            width: 85vw !important;
        }
        .tablelike-title {
            font-size: 4vw !important;
        }
        .tablelike-header span {
            font-size: 2.5vw !important;
        }
        .tablelike-body {
            height: 5vw !important;
        }
        .tablelike-body span {
            font-size: 2.5vw !important;
        }
    }
}

/* For queue system screen: Customer-facing cashier screen */
.qsystem-container-cashier {
    color: #333;
    display: flex;
    gap: 0vh;

    .screen-section-left, .screen-section-right {
        display: block;
        margin: 1.5vh;
    }
    .screen-section-left {
        width: calc(100% - 58vh);
        border-radius: 0.8vh;
        box-shadow: 0px 0.2vh 0.5vh rgba(0, 0, 0, 0.4);
    }
    .screen-section-right {
        width: calc(58vh);
        margin-left: 0vh;
    }
    .qsystem-header {
        border-bottom-left-radius: 0vh !important;
        border-bottom-right-radius: 0vh !important;
        justify-content: flex-start;
        gap: 3.5vh;
        box-shadow: unset;

        .payment-for {
            .payment-for-info-line {
                display: block;
                line-height: 1.2;
                font-size: 3.4vh;
                font-weight: 700;
                letter-spacing: 0.15vh;
                
                .customer-name, .pet-name {
                    font-weight: 500;
                }
            }
        }
    }
    .qsystem-body {
        height: calc(100% - 12vh);
        padding: 0vh;
        border-top-left-radius: 0vh !important;
        border-top-right-radius: 0vh !important;
    }
    .panel-container {
        position: relative;
        background-color: white;
        box-shadow: 0px 0.2vh 0.5vh rgba(0, 0, 0, 0.4);
        padding: 1.5vh;
        padding-bottom: 1.8vh;
    }
    .panel-body {
        border-radius: 0.8vh;
    }
    .tablelike-header-wrapper {
        border-bottom: 0.2vh solid #bbb;
    }
    #payment-item-footer.tablelike-body {
        border-top: 0.2vh solid #bbb;
    }
    .tablelike {
        .tablelike-body {
            border-radius: 0px;
            box-shadow: none;            
            height: calc(7vh - 1.2vh * 2);
            background-color: unset;
            padding-bottom: 0px;

            .cell-body {
                width: calc(100% - 1vh);
                display: block;
            }
            .col-unit {
                width: calc(15%);
            }
            .col-total {
                width: calc(17% - 1vh);
                text-align: right;
            }
        }
        div > span {
            width: 100%;
        }
        .col-seq {
            width: calc(10% - 1vh);
        }
        .col-payment {
            width: calc(62%);
            span {
                text-align: left;
            }
        }
        .col-qty {
            width: calc(11%);
        }
        /*.col-unit {
            width: calc(15%);
        }*/
        .col-total {
            width: calc(17% - 1vh);
            text-align: right;
        }
    }
    .payment-info {
        height: 100%;
        display: inline-block;
    }
    .thank-you-message {
        height: 4vh;
        font-size: 2.5vh;
        text-align: center;
        margin-bottom: 1vh;
        margin-top: -0.5vh;
    }
    .payment-info-body {
        display: flex;
        height: calc(100% - 4vh);
        gap: 1.5vh;

        .payment-info-left {
            width: calc(50% - 1vh);
            margin-left: 0.5vh;

            span {
                display: block;
            }
            .payment-label {
                font-weight: 700;
                font-size: 2.2vh;
                margin-bottom: 0.7vh;
            }
            .payment-info-detail-number {
                width: calc(100% - 2.5vh);
                font-size: 3.5vh;
                font-weight: 700;
                margin-bottom: 3vh;
            }
            #num-pending {
                font-size: 5vh;
                color: red;
            }
            #payment-label-num-pending {
                margin-top: 1vh;
                font-size: 3vh;
            }
        }
        .payment-info-right {
            width: 50%;

            .qrcode-detail {
                width: 100%;
                text-align: center;
            }
            .qrcode-container-shiftup {
                max-width: 90% !important;
            }
            .qrcode-container {
                margin-top: 1vh;
                margin-bottom: 0.5vh;
                aspect-ratio: 1/1;
                border-style: solid;
                border-width: 1px;
                border-color: #eee;

                img {
                    max-height: 100%;
                    max-width: 100%;
                }
            }
            .qrcode-detail-container {
                position: absolute;
                text-align: center;
                width: 100%;
                font-size: 1.7vh;
            }
            #promptpayLogo {
                background-image: url(../_images/promptpay_logo.png);
                height: 5vh;
                aspect-ratio: 248/108;
                background-repeat: no-repeat;
                background-size: contain;
                background-position: center;
                position: absolute;
                left: 50%;
                transform: translateX(-50%);
                top: -3vh;
            }
        }
    }

    #payment-list-container {
        width: calc(100%);
    }
    #payment-info-and-ads-container {
        #payment-info-container {
            height: 35vh;
        }
        #queue-image-slider-container {
            margin-top: 1.5vh;
            width: 100%;
            aspect-ratio: 1/1;
        }
    }
    #payment-list-container {
        .tablelike:first-child {
            margin-bottom: 1vh;
        }
    }
    #payment-item-footer {
        text-align: right;
        span {
            font-weight: 700;
            font-size: 1.5vw;
        }
        #payment-count {
            margin: 0 1.5vw 0 1.5vw;
        }
    }

}
.cashier-point-template {
    font-size: 4vh;
    padding: 2vh;
    display: block;
    color: white;
    box-shadow: 0.1vh 0.2vh 0.5vh 0.1vh rgba(0, 0, 0, 0.15);
    border-radius: 5vh;
    background: orange;

    &:hover {
        box-shadow: 0.1vh 0.2vh 0.5vh 0.1vh rgba(0, 0, 0, 0.3);
        background: rgb(230, 131, 0);
        cursor: pointer;
    }
}
#cashier-point-list {
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: flex-start;
    gap: 3vh;
    flex-wrap: wrap;
}
#cashier-point-name {
    color: white;
    font-size: 1.8vh;
    position: absolute;
    right: 1vh;
    top: 0.5vh;
    cursor: pointer;
}