﻿@charset "UTF-8";

:root {
    --mbgcolor: #BB8FCE;
    --sbgcolor: #8E44AD;
}

/*----------------site master--------------*/
.body {
    margin: 0;
    font-size: 1.2rem;
}

.container {
    width: 97%;
    margin-right: auto;
    margin-left: auto;
}

.body-content {
    width: 97%;
    margin-right: auto;
    margin-left: auto;
}

.footer-content {
    width: 97%;
    margin-right: auto;
    margin-left: auto;
}
/*----------------close site master--------------*/

input {
    font-size: 16px;
    height: 35px;
}

    input[type="text"] {
        border: 1px solid blue;
        border-radius: 6px;
        outline: none;
        box-shadow: rgba(225, 228, 232, 0.2) 0px 1px 0px 0px inset;
        padding: 10px;
        box-sizing: border-box;
    }

        input[type="text"]:focus {
            border-color: #0366d6;
            outline: none;
            box-shadow: rgba(3, 102, 214, 0.3) 0px 0px 0px 3px;
        }

    input[type="password"] {
        border: 1px solid blue;
        border-radius: 6px;
        outline: none;
        box-shadow: rgba(225, 228, 232, 0.2) 0px 1px 0px 0px inset;
    }

        input[type="password"]:focus {
            border-color: #0366d6;
            outline: none;
            box-shadow: rgba(3, 102, 214, 0.3) 0px 0px 0px 3px;
        }

textarea {
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid blue;
}

input[type="checkbox"] {
    width: 1.3rem;
    height: 1.3rem;
    vertical-align: middle;
}

input[type="submit"] {
    display: inline-block;
    outline: none;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    border-radius: 500px;
    transition-property: background-color,border-color,color,box-shadow,filter;
    transition-duration: .3s;
    border: 1px solid transparent;
    letter-spacing: 2px;
    min-width: 100px;
    text-transform: uppercase;
    white-space: normal;
    font-weight: 700;
    text-align: center;
    padding: 10px 20px;
    color: #fff;
    background-color: #1ED760;
    height: 35px;
}

    input[type="submit"]:hover {
        transform: scale(1.04);
        background-color: #21e065;
    }

select {
    background-color: aqua;
    font-size: 16px;
    height: 35px;
    border: none;
    border-radius: 0.5em;
    display: inline-block;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

    select option {
        list-style: none;
        position: absolute;
        top: 3.2em;
        width: 100%;
        border-radius: 0.5em;
    }

        select option:hover {
            background: #1d1f24;
            cursor: pointer;
        }

.table .tr .td {
    vertical-align: top;
}
/*----------------bar--------------*/
.navbar {
    display: flex;
    align-items: center;
    background-color: var(--mbgcolor);
    /*position: sticky;*/
    width: 100%; /* กว้างเต็ม */
    height: 80px;
    padding: 0; /* ระยะห่างบน-ล่าง ซ้าย-ขวา */
    margin: 0;
    box-sizing: border-box; /* รวม padding กับ width */
    position: relative;
    z-index: 1000; /* ให้เป็นชั้นสูงสุด */
}

.navbar-brand {
    flex: 0 0 150px; /* กำหนดความกว้างคงที่ 150px */
    display: flex;
    align-items: center;
    justify-content: flex-start; /* จัดโลโก้ให้ชิดซ้าย */
    padding: 0;
    margin: 0;
}

.navbar-brand-item img {
    width: 150px; /* กำหนดความกว้าง 150px */
    height: 80px; /* กำหนดความสูง 80px */
    object-fit: fill; /* ปรับให้ภาพขยายอัตโนมัติ โดยคงสัดส่วน */
}

.navbar-menu {
    flex: 1; /* ขยายพื้นที่ให้เต็ม */
    display: flex;
    justify-content: flex-start; /* จัดเมนูให้ชิดซ้าย */
    align-items: center;
    height: 80px; /* ความสูงของเมนู */
    padding-left: 20px; /* ระยะห่างจากโลโก้ */
}

.navbar-login {
    flex: 0 0 180px; /* กำหนดความกว้างคงที่ 180px */
    display: flex;
    align-items: center;
    justify-content: flex-end; /* จัดล็อกอินให้ชิดขวา */
    height: 80px; /* ความสูงของล็อกอิน */
    margin-left: auto; /* ดันไปด้านขวาสุด */
}

.navbar-nav-item ul, .navbar-user-item ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 5px; /* ระยะห่างระหว่างเมนู */
}

/* เมนู */
.navbar-nav-item li {
    padding: 15px 15px;
    background-color: var(--mbgcolor);
    border-radius: 5px;
    font-size: 18px; /* ขนาดฟอนต์เมนู 18px */
    transition: background-color 0.3s;
}

    .navbar-nav-item li:hover {
        background-color: var(--sbgcolor);
    }

    .navbar-nav-item li a {
        color: white;
        text-decoration: none;
    }

        .navbar-nav-item li a:hover {
            color: lawngreen;
        }

/* ล็อกอิน */
.navbar-user-item li {
    padding: 10px 15px;
    background-color: var(--mbgcolor);
    border-radius: 5px;
    font-size: 16px; /* ขนาดฟอนต์ล็อกอิน 16px */
    font-weight: bold; /* ตัวหนา */
    text-align: center;
    transition: background-color 0.3s;
    min-width: 180px;
}

    .navbar-user-item li:hover {
        background-color: var(--sbgcolor);
    }

    .navbar-user-item li a {
        color: white;
        text-decoration: none;
    }

        .navbar-user-item li a:hover {
            color: gold;
        }
/*----------------close bar--------------*/

.nav-sub-item {
}

    .nav-sub-item ul {
        list-style: none;
        margin: 0;
        padding-left: 0;
    }

    .nav-sub-item li {
        color: #fff;
        background: var(--subbgcolor);
        display: block;
        float: left;
        padding: 1rem;
        position: relative;
        transition-duration: 0.5s;
        width: max-content;
        border-radius: 0.5em;
        margin-right: 0.1em;
    }

        .nav-sub-item li:hover, .nav-sub-item li:focus {
            background-color: var(--sbgcolor);
            border-radius: 0.5em;
        }

        .nav-sub-item li a {
            color: #fff;
            text-decoration: none;
        }

            .nav-sub-item li a:hover, .nav-sub-item li a:focus {
                color: orangered;
            }

.nav_sub_io {
    float: right;
    margin-top: 0.4rem;
    padding: 0.5rem;
    border-radius: 0.5em;
    background-color: #1ED760;
}

.nav-sub-item {
}

    .nav-sub-item ul {
        list-style: none;
        margin: 0;
        padding-left: 0;
    }

    .nav-sub-item li {
        color: #fff;
        background: var(--subbgcolor);
        display: block;
        float: left;
        padding: 1rem;
        position: relative;
        transition-duration: 0.5s;
        width: max-content;
        border-radius: 0.5em;
        margin-right: 0.1em;
        white-space: nowrap;
    }

        .nav-sub-item li:hover, .nav-sub-item li:focus {
            background-color: var(--sbgcolor);
            border-radius: 0.5em;
        }

        .nav-sub-item li a {
            color: #fff;
            text-decoration: none;
        }

            .nav-sub-item li a:hover, .nav-sub-item li a:focus {
                color: orangered;
            }

.nav_sub_io {
    float: right;
    margin-top: 0.4rem;
    padding: 0.5rem;
    border-radius: 0.5em;
    background-color: #1ED760;
}

/*----------------grid--------------*/
.grid {
    word-wrap: break-word;
    /*table-layout: fixed;*/
    overflow: scroll;
    border: none;
    vertical-align: top;
}

    .grid tr th {
        padding: 2px;
        padding-left: 1rem;
        padding-right: 1rem;
        color: #212f3d;
        background-color: #bdc3c7;
        border: 1px solid black;
        /*position: sticky;*/
        top: 0;
        left: 0;
    }

    .grid td {
        border: 0.1rem solid black;
        padding: 0.2rem;
        padding-left: 1rem;
        padding-right: 1rem;
        white-space: pre-wrap;
    }

        .grid td img {
            /*margin: 0rem 0rem -0.3rem -0.6rem;*/
            margin-top: 0rem;
            margin-bottom: -0.3rem;
        }

    .grid a {
        text-decoration: none;
    }

    .grid pre {
        /*border: 0.1rem solid black;*/
        margin-top: 0rem;
        margin-bottom: 0rem;
    }

.gridbg tr:nth-child(even) {
    background-color: #d6eaf8;
}

.gridbg tr:nth-child(odd) {
    background-color: #fdfefe;
}

.gridth tr th {
    white-space: nowrap;
}

.gridtd tr td {
    white-space: nowrap;
}
/*----------------close grid--------------*/

/*----------------mpe--------------*/
.ModalPopupBG {
    background-color: #666699;
    opacity: 0.7;
}
/*----------------close mpe--------------*/

/*----------------chart--------------*/
.Container1 {
    /*display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    vertical-align: top;
    gap: 4px;*/
    border: 1px solid red;
    width: 100%;
    float: left;
}

.Chart1 {
    border: 1px solid blue;
    /*color: blue;*/
    /*font-size: 1.25rem;*/
    /*display: block;*/
    max-width: fit-content;
    text-align: center;
    float: left;
    /*padding: 1rem 1rem 1rem 1rem;*/
}

.GView1 {
    border: 1px solid green;
    /*color: blue;*/
    /*font-size: 1.25rem;*/
    /*display: block;*/
    max-width: fit-content;
    float: left;
    /*padding: 1rem 1rem 1rem 1rem;*/
}
/*----------------close mpe--------------*/

/*----------------div--------------*/
.center-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    /*height: 80vh;*/
    background-color: #f5f5f5;
}

.form-container {
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.form-container-box {
    position: relative;
    width: 300px;
    height: 500px;
    max-width: 90%;
    overflow: hidden;
}

.form-container h2 {
    text-align: center;
    color: #0000FF;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

    .form-group label {
        display: block;
        font-weight: bold;
        margin-bottom: 5px;
        text-align: left;
    }

    .form-group input, .form-group select, .form-group textarea {
        width: 100%;
        box-sizing: border-box;
    }

        .form-group input[type="file"] {
            padding: 3px;
        }

.form-group-inline {
    display: flex;
    justify-content: space-between;
    gap: 10px; /* Space between items */
    margin-bottom: 15px;
}

.inline-item {
    flex: 1; /* Items take equal width */
    display: flex;
    flex-direction: column;
}

.inline-input {
    width: 100%; /* Ensures inputs take full width of their container */
}

.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

    .button-group button {
        margin: 0 10px;
    }

.alert {
    color: #FF3300;
    margin-top: 15px;
    text-align: center;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    z-index: 0;
    opacity: 0.3; /* ปรับความโปร่งใส */
}

.content-overlay {
    position: relative;
    z-index: 1; /* ให้ข้อความอยู่ด้านหน้า */
    height: 100%; /* เพื่อจัดข้อความในพื้นที่ */
}

.label-top {
    position: absolute;
    font-size: 40px;
    color: #333; /* สีของข้อความ */
    text-decoration: none;
}

.label-top-center {
    position: absolute;
    top: 0px; /* ระยะห่างจากด้านบน (ปรับตามต้องการ) */
    left: 50%; /* จัดกึ่งกลางหน้าจอแนวนอน */
    transform: translateX(-50%); /* เลื่อน Label กลับครึ่งหนึ่งของความกว้าง */
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    padding: 4px 30px; /* ระยะห่างด้านใน */
    border: 2px solid #ccc; /* กรอบ */
    border-radius: 15px; /* มุมโค้งมน */
    background-color: #f9f9f9; /* พื้นหลังสีเทาอ่อน */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1); /* เพิ่มเงา */
    z-index: 10; /* ให้อยู่ด้านหน้าขององค์ประกอบอื่น */
    width: auto; /* ปรับขนาดอัตโนมัติตามข้อความ */
    max-width: 90%; /* จำกัดความกว้างไม่ให้ใหญ่เกินไป */
}


.label-bottom {
    position: absolute;
    bottom: 10px; /* ระยะห่างจากขอบล่าง */
    left: 0;
    right: 0;
    text-align: center; /* จัดข้อความให้อยู่กึ่งกลาง */
    font-size: 14px;
    color: #333; /* สีของข้อความ */
}

/*----------------close div--------------*/

ul.ks-cboxtags {
    list-style: none;
    padding: 0px;
}

    ul.ks-cboxtags li {
        display: inline;
    }

        ul.ks-cboxtags li label {
            display: inline-block;
            background-color: rgba(255, 255, 255, .9);
            border: 2px solid rgba(139, 139, 139, .3);
            color: #adadad;
            border-radius: 25px;
            white-space: nowrap;
            margin: 0.5px 0px;
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
            -webkit-tap-highlight-color: transparent;
            transition: all .2s;
        }

        ul.ks-cboxtags li label {
            padding: 8px 12px;
            cursor: pointer;
        }

            ul.ks-cboxtags li label::before {
                display: inline-block;
                font-style: normal;
                font-variant: normal;
                text-rendering: auto;
                -webkit-font-smoothing: antialiased;
                /*font-family: "Font Awesome 5 Free";
                font-weight: 900;
                font-size: 12px;*/
                padding: 2px 6px 2px 2px;
                content: "+";
                transition: transform .3s ease-in-out;
            }

        ul.ks-cboxtags li input[type="checkbox"]:checked + label::before {
            content: "√";
            transform: rotate(-360deg);
            transition: transform .3s ease-in-out;
        }

        ul.ks-cboxtags li input[type="checkbox"]:checked + label {
            border: 2px solid #1bdbf8;
            background-color: #12bbd4;
            color: #fff;
            transition: all .2s;
        }

        ul.ks-cboxtags li input[type="checkbox"] {
            display: absolute;
        }

        ul.ks-cboxtags li input[type="checkbox"] {
            position: absolute;
            opacity: 0;
        }

            ul.ks-cboxtags li input[type="checkbox"]:focus + label {
                border: 2px solid #e9a1ff;
            }

