﻿
@font-face {
    font-family: 'THSarabun';
    src: url('../fonts/Content/THSarabun.eot');
    src: url('../fonts/Content/THSarabun.eot?#iefix') format('embedded-opentype'), url('../fonts/Content/THSarabun.woff2') format('woff2'), url('../fonts/Content/THSarabun.woff') format('woff'), url('../fonts/Content/THSarabun.ttf') format('truetype'), url('../fonts/Content/THSarabun.svg#db_chidlom_xregular') format('svg');
    font-weight: normal;
    font-style: normal;
}

:root {
    --font-size-xs: .75rem;
    --font-size-s: .875rem;
    --font-size-m: 1rem;
    --color-brand-blue: #303030;
    --color-brand-cyan: #303030;
    --color-brand-violet: #F49454;
    --color-brand-violet-dark: #d68147;
    --color-gray-0: #f8f9fa;
    --color-gray-2: #e9ecef;
    --color-gray-4: #ced4da;
    --color-gray-5: #adb5bd;
    --color-gray-7: #495057;
    --color-gray-8: #343a40;
    --color-gray-9: #212529;
    --select-primary-color: #FF5733;
    --color-util-danger: #fa5252;
    --border-radius-default: 8px;
    --border-radius-s: 4px;
    --transition-default: all ease-in-out 200ms;
    --box-shadow-s: 0 12px 6px -12px rgba(0, 0, 0, .15);
    --box-shadow-m: 0 16px 12px -12px rgba(0, 0, 0, .15);
    --box-shadow-l: 0 16px 24px -12px rgba(0, 0, 0, .2);
    --box-shadow-button: 0 12px 6px -12px rgba(235, 100, 45, 1);
    --box-shadow-danger: 0 12px 6px -12px rgba(250, 82, 82, .5);
}



body {
    height: 100%;
/*    display: flex;
    justify-content: center;
    align-items: center;
    font-size: var(--font-size-m);
    line-height: 1.5;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;*/
}




/* ANIMATIONS =================================================================== */
@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fade-out {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes fade-in-up {
    from {
        transform: translateY(48px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fade-out-down {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(48px);
        opacity: 0;
    }
}

@keyframes shake {
    0%, to {
        transform: translateZ(0)
    }

    10%, 30%, 50%, 70%, 90% {
        transform: translate3d(-10px, 0, 0)
    }

    20%, 40%, 60%, 80% {
        transform: translate3d(10px, 0, 0)
    }
}


* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    outline-color: var(--color-brand-violet);
    animation-duration: 0.5s;
}


.c-background {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    background-color: var(--color-brand-violet);
    opacity: 0;
    animation-name: fade-in;
    animation-fill-mode: forwards;
    animation-duration: 150ms;
    animation-delay: 100ms;
}

.c-background__shape {
    fill: var(--color-brand-cyan);
}



/* LOGIN
   =================================================================== */
.c-login {
    opacity: 0;
    animation-name: fade-in-up;
    animation-fill-mode: forwards;
    animation-delay: 500ms;
}

.c-login__container {
    width: 320px;
    max-width: 100%;
    padding: 24px 24px 16px 24px;
    border-radius: var(--border-radius-default);
    background-color: white;
    box-shadow: var(--box-shadow-l);
}

    .c-login__container.has-error {
        animation-name: shake;
        animation-fill-mode: forwards;
        animation-duration: 750ms;
    }



/* LINKS
   =================================================================== */
.c-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.c-links__item {
    display: block;
    padding: 4px 0;
    font-size: var(--font-size-xs);
    color: var(--color-gray-7);
    text-decoration: none;
}

    .c-links__item:hover,
    .c-links__item:focus,
    .c-links__item:active {
        text-decoration: underline;
    }
/* FORM
   =================================================================== */
.c-form {
    display: grid;
    grid-gap: 16px;
}

.f-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    width: 100%;
    padding: 0;
}

.f-label {
    position: absolute;
    top: 50%;
    left: 0;
    padding: 0 6px;
    margin-left: 6px;
    font-size: var(--font-size-s);
    font-weight: 700;
    transition: var(--transition-default);
    transform: translateY(-50%);
    background-color: white;
    color: var(--color-gray-8);
}

.f-text {
    width: 100%;
    border: none;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--color-gray-2);
    border-radius: var(--border-radius-s);
    order: -1;
    font-size: var(--font-size-m);
    box-shadow: none;
    transition: var(--transition-default);
    background-color: transparent;
    color: var(--color-gray-9);
    -webkit-appearance: none;
    -moz-appearance: none;
}

    .f-text:hover,
    .f-text:focus {
        outline: none;
        border-color: var(--color-gray-5);
    }

    .f-text:focus {
        box-shadow: var(--box-shadow-s);
    }

        .f-text:focus + .f-label,
        .f-text.is-filled + .f-label {
            font-size: var(--font-size-s);
            top: 0;
        }

    .f-text.has-error {
        border-color: var(--color-util-danger);
    }

.f-submitted .c-background {
    animation-name: fade-out;
    animation-fill-mode: forwards;
    animation-duration: 750ms;
    animation-delay: 500ms;
    opacity: 1;
}

.f-submitted .c-login {
    animation-name: fade-out-down;
    animation-fill-mode: forwards;
    animation-duration: 750ms;
    animation-delay: 0ms;
    opacity: 1;
}



.c-reveal {
    position: absolute;
    right: 12px;
    border: none;
    background-color: white;
    cursor: pointer;
}

    .c-reveal > .c-icon--eye {
        fill: var(--color-gray-5);
    }

    .c-reveal:focus {
        outline: none;
        fill: var(--color-gray-4);
    }

        .c-reveal:hover > .c-icon--eye,
        .c-reveal:focus > .c-icon--eye {
            fill: var(--color-gray-7);
        }

.f-text[type="text"] ~ .c-reveal > .c-icon--eye {
    fill: var(--color-brand-violet-dark);
}


.c-icon {
    display: block;
    width: 24px;
    height: 24px;
    transition: var(--transition-default);
}

.center_screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    text-align: center;
    background-color: #fff;
    vertical-align: middle;
    padding: .5rem;
    z-index: 5;
}

/* Set gray background color and 100% height */
.sidenav {
    background-color: #fff;
    height: 100%;
}

@media only screen and (min-width: 1440px) {
    .container-fluid {
        min-height: 500px;
        margin-top: 100px;
        padding-right: 15px;
        padding-left: 15px;
        margin-right: auto;
        margin-left: auto;
    }
}

@media only screen and (max-width: 1439px) {
    .container-fluid {
        min-height: 500px;
        margin-top: 0px;
        padding-right: 15px;
        padding-left: 15px;
        margin-right: auto;
        margin-left: auto;
    }
}
/* On small screens, set height to 'auto' for the grid */
@media screen and (max-width: 767px) {
    .row.content {
        height: auto;
    }
}

.fontfooter {
    font-family: 'TH SarabunPSK',THSarabun,'Cordia New',sans-serif;
    font-size: 13pt;
    font-weight: 500;
    font-style: normal;
    color: #000;
}

.fontlabel20 {
    font-family: 'TH SarabunPSK',THSarabun,'Cordia New',sans-serif;
    font-size: 20pt;
    font-weight: bold;
    font-style: normal;
    color: #000;
}

.fontlabel18 {
    font-family: 'TH SarabunPSK',THSarabun,'Cordia New',sans-serif;
    font-size: 18pt;
    font-weight: bold;
    font-style: normal;
    color: #000;
}

.fontlabel16 {
    font-family: 'TH SarabunPSK',THSarabun,'Cordia New',sans-serif;
    font-size: 16pt;
    font-weight: bold;
    font-style: normal;
    color: #fff;
}

.fontlabel14 {
    font-family: 'TH SarabunPSK',THSarabun,'Cordia New',sans-serif;
    font-size: 14pt;
    font-weight: bold;
    font-style: normal;
    color: #000;
    margin-left: 5px;
}

.fontlabel14w {
    font-family: 'TH SarabunPSK',THSarabun,'Cordia New',sans-serif;
    font-size: 14pt;
    font-weight: bold;
    font-style: normal;
    color: #fff;
    margin-left: 5px;
}

.fonttextbox_small {
    font-family: 'TH SarabunPSK',THSarabun,'Cordia New',sans-serif;
    font-size: 14pt;
    font-weight: bold;
    font-style: normal;
    color: #000;
    border: 1px solid #333;
    border-radius: 2px;
    min-width: 200px;
    width: 200px;
    margin: 2px 2px 2px 5px;
}

.fonttextbox {
    font-family: 'TH SarabunPSK',THSarabun,'Cordia New',sans-serif;
    font-size: 14pt;
    font-weight: bold;
    font-style: normal;
    color: #000;
    background-color: #fff;
    border: 1px solid #adacab;
    border-radius: 2px;
    min-width: 200px;
    width: 300px;
    height: 35px;
    padding: 5px 5px;
}

.fontpopup {
    font-family: 'TH SarabunPSK',THSarabun,'Cordia New',sans-serif;
    font-size: 16pt;
    font-weight: bold;
    color: #fff;
    text-align: center;
    background-color: #4d4d4d;
    padding: 3px 8px 3px 8px;
}

.linklabel {
    font-family: 'TH SarabunPSK',THSarabun,'Cordia New',sans-serif;
    font-size: 14pt;
    font-weight: bold;
    font-style: normal;
    color: #F49454;
    height: 23px;
}

    .linklabel:hover {
        color: #d68147;
    }

.checklabel {
    font-family: 'TH SarabunPSK',THSarabun,'Cordia New',sans-serif;
    font-size: 14pt;
    font-weight: bold;
    font-style: normal;
    color: #666;
}

.btn_login {
    font-family: 'TH SarabunPSK',THSarabun,'Cordia New',sans-serif;
    font-size: 14pt;
    font-weight: bold;
    color: #fff;
    background: #F49454;
    padding: 0px 2px 1px 2px;
    vertical-align: middle;
    min-width: 70px;
    width: 304px;
    height: 35px;
    border: 1px #F49454;
    border-radius: 2px;
}

.c-button {
    font-family: 'TH SarabunPSK',THSarabun,'Cordia New',sans-serif;
    font-size: 14pt;
    font-weight: bold;
    font-size: 19px;
    font-weight: 700;
    border: 1px solid transparent;
    border-radius: var(--border-radius-s);
    padding: 12px;
    background-color: var(--color-brand-violet);
    color: white;
    transition: var(--transition-default);
    cursor: pointer;
    padding: 0px 2px 1px 2px;
    width: 304px;
    height: 35px;
}


    .c-button:hover,
    .c-button:focus,
    .c-button:active {
        background-color: var(--color-brand-violet-dark);
    }

    .c-button:focus,
    .c-button:active {
        box-shadow: var(--box-shadow-button);
        outline: none;
    }

.errorlabel {
    font-family: 'TH SarabunPSK',THSarabun,'Cordia New',sans-serif;
    font-size: 14pt;
    font-weight: bold;
    color: #C00000;
    font-style: italic;
}

.pOverlay {
    opacity: 0.8;
    filter: alpha(opacity=00);
    background-color: #8b8b8b;
    position: fixed;
    z-index: 5;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
}

.pOverlayProgress {
    position: fixed;
    top: 50%;
    left: 40%;
    margin: -20px 0px -30px -69px;
    z-index: 1010;
    width: 390px;
    height: 200px;
    vertical-align: middle;
    text-align: center;
    /*border: 1px solid #B0E0E6;*/
    font-size: 9px;
    color: #999999;
    padding: 0px 0px 0px 0px;
    /* border: 3px solid #AFAFAF;*/
    -moz-background-clip: padding; /* Firefox 3.6 */
    -webkit-background-clip: padding-box; /* Safari 4? Chrome 6? */
    background-clip: padding-box; /* Firefox 4, Safari 5, Opera 10, IE 9 */
    /*      border: 4px solid rgba(110,110,110,0.4);*/
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    /*        border-radius: 3px;*/
}

.pBlur {
    opacity: 1;
    filter: alpha(opacity=80);
    background-color: #000000;
    position: fixed;
    z-index: 4;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
}

.pBlurOverlay {
    opacity: 1;
    filter: alpha(opacity=80);
    background-color: #666666;
    position: fixed;
    z-index: 5;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
}

.load-wrapp1 {
    width: 390px;
    height: 190px;
    text-align: center;
    position: fixed;
    justify-content: center;
    
    vertical-align: middle;
    text-align: center;
}

.pPwd {
    z-index: 5;
    position: fixed;
    padding: 10px;
    left: 35%;
    top: 25%;
    /* width: 320px;*/
    /* height: 330px;*/
    background-color: #fff;
    vertical-align: middle;
    text-align: center;
}

.pPwdReset {
    font-family: 'TH SarabunPSK',THSarabun,'Cordia New',sans-serif;
    font-size: 14pt;
    font-weight: bold;
    font-style: normal;
    color: #000;
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 100;
    padding: 0px;
    background-color: #FEFEFE;
    vertical-align: middle;
    text-align: center;
    -moz-background-clip: padding; /* Firefox 3.6 */
    -webkit-background-clip: padding-box; /* Safari 4? Chrome 6? */
    background-clip: padding-box; /* Firefox 4, Safari 5, Opera 10, IE 9 */
    border: 4px solid rgba(110,110,110,0.4);
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    width: 480px;
    height: 270px;
    margin-top: -120px;
    margin-left: -240px;
}

.WaterMarkedTextBox {
    font-family: 'TH SarabunPSK',THSarabun,'Cordia New',sans-serif;
    font-size: 14pt;
    font-weight: bold;
    font-style: normal;
    color: #000;
    border: 1px solid #333;
    border-radius: 2px;
    /*height: 25px;*/
    min-width: 200px;
    /*width:200px;*/
    margin-left: 5px;
    display: inline;
    background-color: lightgray;
    visibility: visible;
}


.btn_style {
    cursor: pointer;
    transition-duration: 0.4s;
    font-family: 'TH SarabunPSK',THSarabun,'Cordia New',sans-serif;
    font-size: 14pt;
    font-weight: 900;
    font-style: normal;
    color: #fff;
    min-width: 55px;
    width: 80px;
    text-align: center;
    background-color: #F49454;
    border: 1px solid #F49454;
    border-radius: 3px;
    height: 30px;
    padding: 1px 2px 1px 2px;
    margin: 2px 2px 2px 5px;
}

    .btn_style :hover {
        color: #F49454;
        background-color: #f0f0f0;
        border: 1px solid #f0f0f0;
        border-radius: 3px;
    }

.btn_close {
    cursor: pointer;
    transition-duration: 0.4s;
    font-family: 'TH SarabunPSK',THSarabun,'Cordia New',sans-serif;
    font-size: 14pt;
    font-weight: 900;
    font-style: normal;
    color: #fff;
    min-width: 55px;
    width: 80px;
    text-align: center;
    background-color: #666;
    border: 1px solid #666;
    border-radius: 3px;
    height: 30px;
    padding: 1px 2px 1px 2px;
    margin: 2px 2px 2px 5px;
}

    .btn_close :hover {
        color: #fdfdfd;
        background-color: #666;
        border: 1px solid #666;
        border-radius: 3px;
    }
