:root{
    --main-dark-blue:#668BCC;
    --blue-green-03:rgba(0,206,200,0.3);
    --blue-booking-button:#35DDF7;
}

*, * {
    box-sizing:border-box;
    font-family:Kanit,Roboto-flex,Helvetica,Arial,sans-serif;
}
    ::-webkit-scrollbar{ 
        width:5px;
        height:8px;
    }
    ::-webkit-scrollbar-track{
        -webkit-box-shadow: inset 0 0 6px #668BCC;
        border-radius:2px;
    }
    ::-webkit-scrollbar-thumb {
        background: #668BCC;
        border-radius: 2px;
      }
    /* ::-webkit-scrollbar-thump{
        border-radius: 2px;
        background:red;
        -webkit-box-shadow: inset 0 0 6px rgba(255,0,0,1);
    }
     */
body {
    position:relative;
    background: #E4F2FE;
    overflow:hidden;
}

ul {
    padding:0px;
}
.hidden {
    display:none !important;
}
button {
    cursor:pointer;
}
.act-as-btn{
    cursor:pointer;
}
    .act-as-btn:active{
        transform:scale(0.9,0.9);
        transform-origin:center center;
    }
.btn-bg-ini{
    background:rgba(240,240,240,1);
    cursor:pointer;
}
    .btn-bg-ini:active{
        transform:scale(0.9,0.9);
        transform-origin:center center;
    }
    input{
        outline:none;
    }
    input.input-view-only {
        background:rgba(0,0,0,0.1);
    } 
.whole-page-block{
    position:fixed;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow:hidden;
    width:100vw;
    height:100vh;
    top:0;
    left:0;
    margin:0;
    background-color:rgba(255,255,255,0.1);
    z-index:999;
}
.main-container {
    position:fixed;
    display: block; 
    left:0;
    margin:0;
}
.main-form-app{
    position: relative;
    width: 1366px !important;
    height: 96vh;
    min-width:1142px;
    min-height: 480px;
    margin: auto;
    border-radius: 6px;
    box-shadow: 0px 0px 14px -3px #668BCC;
}

.mode-banner{
    position: fixed;
    top: 0.5rem;
    left: 2rem;
    width: max-content;
    height: max-content;
    padding: 0.5rem 2rem;
    border-radius: 5px;
    box-shadow: 5px 4px 12px 0px rgba(0,0,0,0.3);
    background-color: rgba(255,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: flex-start;
    font-size: 1.1rem;
    z-index: 9;
    color: whitesmoke;
}

@media screen { /* Login Page */
    .login-Form {
        position:absolute;
        display: block;
        width: 100%;
        min-width: 1280px !important;
        height: 100vh;
        min-height: 578px !important;
        margin: 0;
    }
        .login-txt-logo {
            position: absolute;
            width: 20vh;
            height: 10vh;
            min-width: 200px;
            background: url(../img/logo_text.png) no-repeat top right;
            background-size: 100%;
            right: 2vw;
            top: 0;
            opacity:0.6;
        }
            .error-authentext{
                font-weight:800;
                color:red;
                width: 34vh;
                min-width: 460px;
                max-width: 600px;
                margin:30vh auto 0 auto;
                text-align:center;
            }
            .login-contain {
                display: flex;
                flex-direction: column;
                justify-content: flex-start;
                align-items: center;
                width: 40%;
                min-width: 480px;
                max-width: 600px;
                border-radius: 25px;
                box-shadow: 0px 0px 100px -3px #668BCC;
                height: 45vh;
                background: #668bcc;
                margin: 1vh auto auto;
            }
                .login-contain .headban {
                    display: block;
                    font-family: Roboto-Flex;
                    font-size: 26px;
                    font-weight:500;
                    font-style: italic;
                    width: 100%;
                    height: auto;
                    margin: 0px auto 10vh;
                    text-align: center;
                    color: rgba(228,242,254,1);
                    padding: 10px 0px;
                }
                .login-contain .row-input {
                    display: flex;
                    flex-direction:row;
                    justify-content:flex-start;
                    align-items: flex-start;
                    width: 70%;
                    height: 30px;
                    border: 1px solid #E4F2FE;
                    border-width: 0px 0px 1px;
                    margin: 0px auto 5vh auto;
                }
                    .login-contain .row-input > input{
                        height:calc( 100% - 2px );
                        width:88%;
                        background:rgba(255,255,255,0.1) !important;
                        border: 0 solid white;
                        color:rgba(228,242,254,1);
                        font-size:15pt;
                    }
                        .login-contain .row-input > input:focus-visible{
                            border:0px solid rgba(0,0,0,0);    
                        }
                    
        
                    #usr-login-icon {
                        display: inline-block;
                        width: 10%;
                        height: 100%;
                        margin-right:2%;
                        background: url(../img/user-icon-blue.png) no-repeat center center;
                        background-size: contain; 
                    }
                    #key-login-icon {
                        display: inline-block;
                        width: 10%;
                        height: 100%;
                        margin: -1px 2% auto auto;
                        background: url(../img/pwdUnlock-blue.png) no-repeat center center;
                        background-size: contain; 
                    }
                .login-contain .row-button{
                    display:block;
                    width:70%;
                    height:30px;
                    text-align:center;
                    border:0px solid rgba(255,255,255,0);
                    margin:auto;
                }   
                    .login-button {
                        display:inline-block;
                        width: 67%;
                        height: 40px;
                        line-height:40px;
                        border-radius:25px;
                        background:ButtonFace;
                        margin: -20px auto auto;
                    }
                        .login-button > p{
                            display: block;
                            height: 100%;
                            width: 100%;
                            margin: auto;
                            cursor: pointer;
                        }
        .login-copy-right{
            position: absolute;
            display: flex;
            flex-direction: row;
            justify-content: flex-start;
            align-items: flex-end;
            font-size: 10pt;
            font-weight: 100;
            font-style:italic;
            bottom:3vh;
            left:20px;
        }                
            .login-copy-right p {
                font-family:Kanit-Thin !important;
                font-weight:600 !important;
            }
}

@media screen  { /* Homepage */
    .main-homepage{
        display:flex;
        flex-direction:row;
        justify-content:flex-start;
        align-items:center;
    }
        .home-left-panel {
            display:block;
            width:20%;
            height:100%;
            background-color:#668BCC;
        }
            .home-left-panel > .top-box {
                display:block;
                width:100%;
                height:14%;
                background-color:rgba(255,255,255,0.75);
                padding-top:13%;
            }
                .home-left-panel > .top-box > p{
                    display:block;
                    text-align:center;
                    font-family:Audiowide,Tahoma,Vernada !important;
                    width:100%;
                    height:auto;
                    font-size:16pt;
                    margin:0px;
                    color:#668BCC;
                }
            .home-left-panel > .bottom-box {
                display:block;
                width:100%;
                height:86%;
                background-color:rgba(255,255,255,0);
            }
            .home-left-panel > .bottom-box{
                display:block;
                width:100%;
                height:86%;
            }                
            .home-left-panel > .bottom-box > div {
                display:block;
                width:100%;
                height:auto;
                border:0px solid rgba(255,255,255,0);
                color:white;
            }
                .home-left-panel > .bottom-box > div > p{
                    display: block;
                    width: 100%;
                    height: auto;
                    font-weight: 400;
                    margin: 10px auto 10px 40px;
                    font-family: Kanit-Thin;
                    font-size: 14pt;
                }
                    .home-left-panel > .bottom-box > div > p:hover{
                        transform:scale(1.1,1.1);
                        transform-origin:left center;
                    }
                    .home-left-panel > .bottom-box > div > p:active{
                        transform:scale(0.9,0.9);
                        transform-origin:left center;
                        opacity:0.75;
                    }
                .home-left-panel > .bottom-box > div:nth-child(1) > div{
                    display: block;
                    width: 100%;
                    margin: 10px auto 10px 2px;
                    font-size: 16pt;
                    font-weight: 600;
                    font-family: Roboto-flex !important;
                }
                .home-left-panel > .bottom-box > div:nth-last-child(2){
                    height:60%;
                }
                .home-left-panel > .bottom-box > div:last-child{
                    margin:auto auto 10% auto;                    
                }    
                    .home-left-panel .homepage-logout{
                        display: block;
                        width: 100%;
                        height: 100%;
                        text-align: center;
                        font-size: 15pt;
                        font-family: Roboto-flex !important;
                        font-weight: 600;
                        margin: 10% auto 0px auto;
                    }

                    .home-left-panel .homepage-logout:hover{
                        transform:scale(1.1,1.1);
                        transform-origin:center center;
                    }
        .home-left-link{            
            cursor:pointer;
        }
            .home-left-link:active{
                transform:scale(0.9,0.9);
                transform-origin:center center;
                opacity:0.75;
            }

        .home-right-panel {
            display:block;
            width:80%;
            height:100%;
            background-color:rgba(255,255,255,0);
            overflow:hidden;
        }
            .home-right-panel > .top-box{
                display:flex;
                flex-direction:row;
                justify-content:flex-start;
                align-items:center;
                background-color:white;
                width:100%;
                height:14%;
                border:1px solid #EEF3F6;
            }
                .home-top-right {
                    display: block;
                    width: 20%;
                    height: 100%;
                    border: 0px;
                }
                .home-right-panel > .top-box > div:nth-child(2){
                    width: 51%;
                    max-width: 626px;
                }
                .home-right-panel > .top-box > div:nth-child(3){
                    display: flex;
                    flex-direction: column;
                    justify-content: flex-end;
                    align-items: flex-end;
                    padding: 0px;
                    font-size: 20pt;
                    opacity: 0.5;
                }
                .home-right-panel > .top-box > div:last-child{
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    align-items: center;
                    width:15%;
                    max-width:100px;
                }
                    .home-right-panel > .top-box > div:nth-child(3)>p{
                        margin:auto 2px 2px auto;
                    }
                    .home-top-right .homepage-logo {
                        position: relative;
                        width: 140%;
                        height: 100%;
                        min-width: 200px;
                        background: url("../img/logo_text.png") no-repeat left center;
                        background-size: 100%;  
                        opacity:0.65;
                    }
                    .home-top-right .user-logo{
                        display:block;
                        width:70px;
                        height:70px;
                        border-radius:50%;
                        border:2px solid #668BCC;
                        background: url(../img/user-icon-blue.png) no-repeat center center;
                        background-size: 72%; 
                    }
            .home-right-panel > .bottom-box{
                display: flex;
                flex-direction: column;
                justify-content: flex-start;
                align-items: flex-start;
                background-color: rgba(255,255,255,0);
                height: 86%;
                padding: 2rem;
                gap: 0.5rem;
            }
                .main-content-card {
                    display: flex;
                    flex-direction: column;
                    width: 250px;
                    height: 120px;
                    justify-content: flex-start;
                    align-items: center;
                    background: #668BCC;
                    box-shadow: 3px 4px 18px 0px rgba(0,0,0,0.2);
                    border-radius: 8px;
                    cursor: pointer;
                }
                    .main-content-card:active {
                        transform:scale(0.9);
                    }
                    .card-image{
                        width:100%;
                        height:calc( 100% - 30px );
                        background-color:rgba(255,255,255,0.9);
                        border-radius:8px 8px 0 0;
                    }
                        .card-report01{
                            background-image: url(../img/reservation-completed-icon.png);
                            background-repeat: no-repeat;
                            background-position: center center;
                            background-size: 65px;
                        }
                    .card-topic{
                        width: 100%;
                        height: 30px;
                        text-align: center;
                        line-height: 30px;
                        color:white;
                        border-radius:0 0 8px 8px;
                    }


}

@media screen { /* Email Console */
    .email-Console-over{
        display:flex;
        flex-direction:column;
        justify-content:flex-start;
        align-items:flex-start;
        width:98%;
        height:100%;
        margin:0px auto;
    }
        .email-Console-over > .emailCon-body-top {
            display:flex;
            flex-direction:row;
            justify-content:space-between;
            align-items:center;
            width:100%;
            height:auto;
            min-height: 60px;
            border:0px solid rgba(0,0,0,0);
        }  
            .email-console-head{
                display:block;
                text-align:left;
                width:100%;
                min-width:150px;
                height:30px;
                font-size:16pt;
            }
        .email-Console-over > .email-table-panel {
            display:flex;
            flex-direction:column;
            justify-content:flex-start;
            align-items:flex-start;
            width:100%;
            height: 80%;
            border:1px solid rgba(217,217,217,1);
        }
            .email-table-head{
                display: flex;
                flex-direction: row;
                justify-content: flex-start;
                align-items: center;
                background-color: rgba(105,129,81,1);
                width: 100%;
                height: 60px;
            }
            .email-table-head > div{ 
                color:white;
                height:100%;
                line-height:60px;
                text-align:center;
            }
            .email-table-head > div:first-child{ width: calc( 52% - 12px ); }
            .email-table-head > div:nth-child(2){ width: 12%; }
            .email-table-head > div:nth-child(3){ width: 12%; }
            .email-table-head > div:nth-child(4){ width: 12%; }
            .email-table-head > div:nth-child(5){ width: 12%; }
            .email-table-head > div:last-child{ width: 12px; }
        .email-table-body{
            display:flex;
            flex-direction:column;
            justify-content:flex-start;
            align-items:center;
            background:white;
            width:100%;
            height:100%;
            overflow-x:hidden;
            overflow-y:scroll;
        }
        .email-table-body > div{
            display: flex;
            flex-direction: row;
            justify-content: space-around;
            align-items: flex-start;
            width:100%;
            height:auto;
            font-size:10pt;
            font-weight:200;
            overflow:hidden;
            border:solid #D9D9D9;
            border-width:0 0 1px 0; 
        }    
            .email-table-body > div > label{
                display:block;
                text-align:center;
            }    
            .email-table-body > div > label:first-child{ 
                width: 10%; 
                cursor:pointer;
            }
            .email-table-body > div > label:first-child:hover{ 
                font-weight:bold;
            }
            .email-table-body > div > label:first-child:active{ 
                font-weight:bold;
                transform:scale(0.9,0.9);
                transform-origin:center center;
            }
            .email-table-body > div > label:first-child{ width: calc( 52% - 12px ); }
            .email-table-body > div > label:nth-child(2){ width: 12%; }
            .email-table-body > div > label:nth-child(3){ width: 12%; }
            .email-table-body > div > label:nth-child(4){ width: 12%; }
            .email-table-body > div > label:nth-child(5){ width: 12%; }
            .email-table-body > div > label:nth-child(6){ width: calc( 12% - 12px ); }
}
@media screen { /* Email Form */   
    .mail-Form-over {
        display: block;
        width: 95%;
        height: 100%;
        overflow-x: hidden;
        overflow-y: hidden;
        text-align: center;
        margin: auto;
    }
        .mail-form-head {
            display:block;
            text-align:left;
            width:100%;
            min-width:150px;
            height:35px;
            margin:10px auto -1px auto;
            font-size:16pt;
            background:white;
            padding:0px 0px 0px 20px;
        }
        .mail-record-form{
            display:flex;
            flex-direction:column;
            justify-content:flex-start;
            align-items:flex-start;
            width:100%;
            height:auto;
            min-height:400px;
            background:white;
            margin: 0 auto;
            padding:0 0 120px 0;            
        }
            .mail-record-form input[type=text] {
                border: 1px solid rgba(0,0,0,0.3);
                height: 27px;
                border-radius: 4px;
            }
            .mail-record-form .row-single {
                display:flex;
                flex-direction:row;
                justify-content:flex-start;
                align-items:flex-start;
                width:100%;
                height: auto;
                min-height:30px;
                margin: 10px auto 0 auto;
            }
            .mail-record-form .row-single > label{
                display:block;
                width:15%;
                text-align:right;
                height:100%;
                padding-right:20px;
                font-weight:600;
                font-size:13pt;
            }
            .row-01 > div {
                display:block;
                width:85%;
                height:100%;
                text-align:left;
            }
            .mail-record-form .row-01 input[type=text] {
                width: 90%;
                margin: auto;
            }
            .mail-record-form .row-single textarea {
                display: block;
                width: 90%;
                height: 250px;
                margin: auto 0;
                border-radius: 7px;
                padding: 10px;
                border:1px solid rgba(0,0,0,0.3);
            }
            .mail-record-form .row-single .message-html {
                display: block;
                width: 77%;
                height: 500px;
                margin: auto 0;
                border-radius: 7px;
                padding: 10px;
                font-size:10pt;
                border: 1px solid rgba(0,0,0,0.3);
                overflow-x: hidden;
                overflow-y: scroll;
            }
            .mail-record-form .row-button {
                display:flex;
                flex-direction:row;
                justify-content: flex-end;
                align-items: center;
                width: 100%;
                height: 80px;
                margin: 10px auto auto auto;
            }
                .mail-record-form .row-button > div {
                    display: block;
                    width: 100px;
                    height: 50px;
                    text-align:center;
                    margin:0 50px 0 0;
                    background-color:#EDEDED;
                    border-radius: 10px;
                    box-shadow: 3px 3px 9px -3px rgba(0,0,0,0.4)
                }
                    .mail-record-form .row-button > div:first-child {
                        display: none;
                        text-align: left;
                        background-color: rgba(255,255,255,0);
                        box-shadow: 0 0 0 0 rgba(255,255,255,0);
                        width: calc( 85% - 200px );
                        font-size: 17pt;
                        color: red;
                    }
                    #save-email-form {
                        background:#EDEDED url('/img/SaveIcon_White.png') no-repeat center center;
                        background-size: 40%;
                        display:none !important;
                    }
                    #sendout-email {
                        background:#EDEDED url('/img/EmailOut_White.png') no-repeat center center;
                        background-size: 40%;
                    }
}
@media screen { /*POOLING*/
    .autocomplete {
        display:inline-block;
        position:relative;
    }    
    .autocomplete-items {
        position: absolute;
        border: 1px solid #d4d4d4;
        z-index: 99;
        /*position the autocomplete items to be the same width as the container:*/
        top: 100%;
        left: 8px;
        right: 8px;
        }
        .autocomplete-items div {
        padding: 10px;
        cursor: pointer;
        background-color: #fff;
        border-bottom: 1px solid #d4d4d4;
        }
        .autocomplete-items div:hover {
        /*when hovering an item:*/
        background-color: #e9e9e9;
        }
        .autocomplete-active {
        /*when navigating through the items using the arrow keys:*/
        background-color: DodgerBlue !important;
        color: #ffffff;
        } 
}
@media screen { /* Modal Popup  */
    .modal-popup-01 {
        display: grid;
        grid-template-rows: 65px 220px 67px;
        width: 550px;
        background: white;
        box-shadow: 0 0 16px 1px rgba(0,0,0,0.8);
        list-style-type:none;
        z-index:999;
    }
    .modal-popup-01 > li:first-child {
        display:grid;
        grid-template-columns:auto 65px;
        background:#668BCC;
        color:white;
    }
        .modal-popup-01 .modal01-head-text{
            display:block;
            width:100%;
            text-align:left;
            padding-left:10%;
            height:65px;
            line-height:65px;
            font-size:1.5em;
        }
        .modal-popup-01 .modal01-head-closeX{
            display:block;
            height:65px;
            line-height:65px;
            font-size:16pt;
            cursor:pointer;
        }
    .modal-popup-01 > li:nth-child(2) {
        border:1px solid #668BCC;
        border-width:0 0 1px 0;
        display:grid;
        grid-template-rows: 130px auto;
        width:100%;
        height:100%
    }        
        .modal-popup-01 .modal01-body-icon {
            display:block;
            font-size:7em;
            text-align:center;
            width:100%;
            height:130px;
            line-height:130px;
            color:tomato;
        }
        .modal-popup-01 .modal01-body-text{
            text-align: center;
            width: 80%;
            margin: 5px auto;
        }
    .modal-popup-01 > li:last-child {
        display:grid;
        grid-template-columns: 400px 150px;
        grid-template-rows:67px;
        justify-content:center;
        align-items:center;
    }
    .modal-popup-01 .modal01-button-close {
        display:block;
        border:1px solid #668BCC;
        width:100px;
        height:40px;
        line-height:40px;
        cursor:pointer;
        border-radius:5px;
    }
    .modal-popup-01 .modal01-button:active{
        transform:scale(0.8,0.8);
        transform-origin:center center;
    }

    .confirm-popup-01 {
        display: grid;
        grid-template-rows: 65px 220px 67px;
        width: 550px;
        background: white;
        box-shadow: 0 0 16px 1px rgba(0,0,0,0.8);
        list-style-type:none;
        z-index:999;
    }
    .confirm-popup-01 > li:first-child {
        display:grid;
        grid-template-columns:auto 65px;
        background:#668BCC;
        color:white;
    }
        .confirm-popup-01 .head-text{
            display:block;
            width:100%;
            text-align:left;
            padding-left:10%;
            height:65px;
            line-height:65px;
            font-size:1.5em;
        }
        .confirm-popup-01 .head-closeX{
            display:block;
            height:65px;
            line-height:65px;
            font-size:16pt;
            cursor:pointer;
        }
    .confirm-popup-01 > li:nth-child(2) {
        border:1px solid #668BCC;
        border-width:0 0 1px 0;
        display:grid;
        grid-template-rows: 130px auto;
        width:100%;
        height:100%
    }        
        .confirm-popup-01 .body-icon {
            display:block;
            font-size:7em;
            text-align:center;
            width:100%;
            height:130px;
            line-height:130px;
            color:tomato;
        }
        .confirm-popup-01 .body-text{
            text-align: center;
            width: 80%;
            margin: 5px auto;
        }
    .confirm-popup-01 > li:last-child {
        display:grid;
        grid-template-columns: 250px 150px 150px;
        grid-template-rows:67px;
        justify-content:center;
        align-items:center;
    }
    .confirm-popup-01 .confirm-button-OK {
        display:block;
        border:1px solid #668BCC;
        width:100px;
        height:40px;
        line-height:40px;
        cursor:pointer;
        border-radius:5px;
    }
    .confirm-popup-01 .confirm-button-close {
        display:block;
        border:1px solid rgba(118,118,118,0.3);
        width:100px;
        height:40px;
        line-height:40px;
        cursor:pointer;
        border-radius:5px;
    }
    .confirm-popup-01 .confirm-button:active{
        transform:scale(0.8,0.8);
        transform-origin:center center;
    }
}
@media screen { /* MA Page */ 
    .ma-main-content{
        display: grid;
        list-style-type: none;
        grid-template-columns: 100vw;
        grid-template-rows: repeat(4,60px);
        text-align: center;
        align-items: center;
        margin: 10vw auto auto;
        row-gap: 0px;
    }
        .ma-main-content > li{
            display: block;
            width: 800px;
            text-align: left;
            margin: auto;
            background: white;
            line-height: 60px;
            padding-left: 30px;
            font-size: 16pt;
        }
        .ma-main-content > li:first-of-type{
            font-weight: 400;
            background: salmon;
            color: white;
            line-height: 60px;
            font-size: 20pt;
        }
        .ma-main-content > li:last-of-type{
            text-align:right;
            padding-right:30px;
            line-height: 60px;
        }
        .ma-main-content > li:last-of-type > button {
            width: 120px;
            height: 40px;
            font-size: 13pt;
            cursor: pointer;
            border-radius: 4px;
        }
            .ma-main-content button:active{
                transform:scale(0.8,0.8);
                transform-origin:center center;
            }

}
