﻿/*

NOTE:
------
PLACE HERE YOUR OWN SCSS CODES AND IF NEEDED, OVERRIDE THE STYLES FROM THE OTHER STYLESHEETS.
WE WILL RELEASE FUTURE UPDATES SO IN ORDER TO NOT OVERWRITE YOUR STYLES IT'S BETTER LIKE THIS.  */
.landing-img {
    max-width: 100%;
    max-height: 100%;
}

.badge-small {
    padding: 0.1rem 0.3rem !important;
    font-size: .4rem !important;
}

.corner-right {
    position: absolute;
    right: 0;
    z-index: 100;
    background-color: #FFFFFF;
    padding: 4px;
    border-radius: 50%;
    margin-top: -10px;
    margin-right: -10px;
}

.nav-bg {
    background: url(../../app-assets/images/nav_bg.jpg) no-repeat;
    background-size: auto;
    background-size: cover;
}

.indent3-5 {
    text-indent: 3.5rem;
}

.indent2 {
    text-indent: 0.3rem;
}

.indent3 {
    text-indent: 0.6rem;
}

.boxcard {
    position: relative;
    border: none;
    box-shadow: 0 2px 18px 1px rgba(49,53,72,.1);
    /* border-radius: .45rem;*/
    color: #fff;
    text-align: center;
}

.boxcard-inner {
    position: relative;
    border: none;
    box-shadow: 0 2px 18px 1px rgb(0, 119, 195);
    /* border-radius: .45rem;*/
    color: #fff;
    text-align: center;
}

.boxcard-inner2 {
    position: relative;
    border: none;
    box-shadow: 0 2px 18px 1px rgb(240, 240, 240);
    /* border-radius: .45rem;*/
    color: #fff;
    text-align: center;
}

.boxcard-caption {
    position: absolute;
    right: 0%;
    bottom: 0px;
    /*! right:15%; */ bottom: 0px;
    /*! left:15%; */ z-index: 10;
    padding-top: 20px;
    padding-bottom: 20px;
    color: #333;
    text-align: center;
    background-color: #ffffffc4;
    padding: 5px 10px 5px 10px;
    width: 100%;
}

.bordor-radius45 {
    border-radius: .45rem;
}

.bg-tran-whtie {
    background-color: #8A8B8F00 !important;
}

th {
    text-align: center !important;
}

.btn-group .or {
    position: relative;
    float: left;
    width: .3em;
    height: 1.3em;
    z-index: 3;
    font-size: 12px
}

    .btn-group .or:before {
        position: absolute;
        top: 50%;
        left: 50%;
        content: 'or';
        background-color: #fff;
        margin-top: -.1em;
        margin-left: -.9em;
        width: 1.8em;
        height: 1.8em;
        line-height: 1.55;
        color: #797979;
        font-style: normal;
        font-weight: 400;
        text-align: center;
        border-radius: 500px;
        -webkit-box-shadow: 0 0 0 1px rgba(0,0,0,.1);
        box-shadow: 0 0 0 1px rgba(0,0,0,.1);
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        -ms-box-sizing: border-box;
        box-sizing: border-box
    }

    .btn-group .or:after {
        position: absolute;
        top: 0;
        left: 0;
        content: ' ';
        width: .3em;
        height: 2.84em;
        border-top: .6em solid #fff;
        border-bottom: .6em solid #fff
    }

    .btn-group .or.or-lg {
        height: 1.3em;
        font-size: 16px
    }

        .btn-group .or.or-lg:after {
            height: 2.85em
        }

    .btn-group .or.or-sm {
        height: 1em
    }

        .btn-group .or.or-sm:after {
            height: 2.5em
        }

    .btn-group .or.or-xs {
        height: .25em
    }

        .btn-group .or.or-xs:after {
            height: 1.84em;
            z-index: -1000
        }

.profile-card-image-cover-1 {
    background: url("/app-assets/images/menu/logo1.jpg") 0 30%;
}

.profile-card-with-cover .card-profile-image {
    position: absolute;
    top: 130px;
    width: 100%;
    text-align: center;
}

    .profile-card-with-cover .card-profile-image img.img-border {
        border: 5px solid #fff;
    }

.profile-card-with-cover .profile-card-with-cover-content {
    padding-top: 4rem;
}

wid-50 {
    width: 50px !important;
}

wid-80 {
    width: 80px !important;
}

wid-100 {
    width: 100px !important;
}

wid-120 {
    width: 120px !important;
}

wid-150 {
    width: 150px !important;
}

.wid-200 {
    width: 200px !important;
}

.wid-220 {
    width: 220px !important;
}

.wid-250 {
    width: 250px !important;
}

@media only screen and (min-width: 600px) {
    .img-menu {
        /*height: auto;display: block;*/
        max-width: 100%;
        max-height: 40px;
        align-self: center !important;
    }

    .banner .img-fluid {
        height: auto;
        max-width: 100%;
        width: 100%;
        height: 400px;
        object-fit: cover;
    }
}

@media only screen and (min-width: 768px) {
    /* For desktop: */
    .img-menu {
        /*height: auto;display: block;*/
        max-width: 100%;
        max-height: 60px;
        align-self: center !important;
    }

    .banner .img-fluid {
        height: auto;
        max-width: 100%;
        width: 100%;
        height: 400px;
        object-fit: cover;
    }
}

.scrtabs-tab-container * {
    box-sizing: border-box;
}

.scrtabs-tab-container {
    height: 42px;
}

    .scrtabs-tab-container .tab-content {
        clear: left;
    }

    .scrtabs-tab-container.scrtabs-bootstrap4 .scrtabs-tabs-movable-container > .navbar-nav {
        -ms-flex-direction: row;
        flex-direction: row;
    }

.scrtabs-tabs-fixed-container {
    float: left;
    height: 42px;
    overflow: hidden;
    width: 100%;
}

.scrtabs-tabs-movable-container {
    position: relative;
}

    .scrtabs-tabs-movable-container .tab-content {
        display: none;
    }

.scrtabs-tab-container.scrtabs-rtl .scrtabs-tabs-movable-container > ul.nav-tabs {
    padding-right: 0;
}

.scrtabs-tab-scroll-arrow {
    border: 1px solid #dddddd;
    border-top: none;
    color: #428bca;
    cursor: pointer;
    display: none;
    float: left;
    font-size: 12px;
    height: 42px;
    margin-bottom: -1px;
    padding-left: 2px;
    padding-top: 13px;
    width: 20px;
}

    .scrtabs-tab-scroll-arrow:hover {
        background-color: #eeeeee;
    }

    .scrtabs-tab-scroll-arrow.scrtabs-disable {
        color: #ddd;
        cursor: default;
    }

.scrtabs-tabs-fixed-container ul.nav-tabs > li {
    white-space: nowrap;
}
/* hide the tabs and panes to prevent flash of tabs on page
 * load/refresh before plugin has time to wrap them in the 
 * scroller; .nav-tabs are automatically unhidden by the 
 * plugin when they're ready, and .tab-content is unhidden 
 * in st-demo.js when the 'ready.scrtabs' event fires */
/*.nav-tabs,
.tab-content {
    display: none;
}*/

.st-demo-header {
    background-color: #666666;
    color: white;
    font-size: 24px;
    padding: 8px 24px;
}

    .st-demo-header button {
        color: black;
        font-size: 12px;
    }

.st-demo-subheader {
    background-color: #f0f0f0;
    color: #333;
    font-size: 16px;
    height: 65px;
    margin-top: 50px;
    padding: 8px 24px;
}

    .st-demo-subheader:first-child {
        margin-top: 0;
    }

.btn-group .or {
    position: relative;
    float: left;
    width: .3em;
    height: 1.3em;
    z-index: 3;
    font-size: 12px
}

    .btn-group .or:before {
        position: absolute;
        top: 50%;
        left: 50%;
        content: 'or';
        background-color: #fff;
        margin-top: -.1em;
        margin-left: -.9em;
        width: 1.8em;
        height: 1.8em;
        line-height: 1.55;
        color: #797979;
        font-style: normal;
        font-weight: 400;
        text-align: center;
        border-radius: 500px;
        -webkit-box-shadow: 0 0 0 1px rgba(0,0,0,.1);
        box-shadow: 0 0 0 1px rgba(0,0,0,.1);
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        -ms-box-sizing: border-box;
        box-sizing: border-box
    }

    .btn-group .or:after {
        position: absolute;
        top: 0;
        left: 0;
        content: ' ';
        width: .3em;
        height: 2.84em;
        border-top: .6em solid #fff;
        border-bottom: .6em solid #fff
    }

    .btn-group .or.or-lg {
        height: 1.3em;
        font-size: 16px
    }

        .btn-group .or.or-lg:after {
            height: 2.85em
        }

    .btn-group .or.or-sm {
        height: 1em
    }

        .btn-group .or.or-sm:after {
            height: 2.5em
        }

    .btn-group .or.or-xs {
        height: .25em
    }

        .btn-group .or.or-xs:after {
            height: 1.84em;
            z-index: -1000
        }



/* สีพื้นหลังเมนูและข้อความ */
.main-menu,
.main-menu .main-menu-content,
.main-menu .navigation-main,
.main-menu .navigation-main .nav-item {
    background-color: #0A52A4 !important;
}

.navigation-main .nav-item > a,
.navigation-main .nav-item a span {
    color: white !important;
    font-size: 14px;
}

/* เส้นคั่น module */
.navigation-header span {
    color: #B3B3B3 !important;
    font-weight: bold !important;
    font-size: 14px !important;
}

/* ปรับระยะข้อความเมนู */
.menu-name-wrap {
    white-space: normal; 
    word-break: break-word; 
    display: inline-block;
    max-width: 180px;
    vertical-align: middle;
}


.menu-divider hr {
    border: none;
    color: #B3B3B3 !important;
    border-top: 2px solid rgba(255, 255, 255, 0.2); /* สีเส้นจางแบบตัวอย่าง */
    margin: 0.5rem 1rem;
}

.error-required {
    color: red;
    font-size: 0.8em;
}

label.required::after {
    content: " *จำเป็น";
    color: red;
    font-size: 1em; /* ปรับขนาดใหญ่ขึ้น */
    vertical-align: top; /* ทำให้ * อยู่สูงขึ้นนิดนึง */
}

/* ปรับความสูงของ select2 ให้เท่า input */
.select2-container--default .select2-selection--single {
    height: 46px !important; /* Bootstrap default height */
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 6px 12px;
}

    /* ขยับข้อความให้กลางเหมือน input */
    .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 36px !important;
    }

    /* ซ่อนลูกศรใน select2 เดิม แล้วใช้อันที่จัดเอง */
    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 36px !important;
        right: 10px;
        top: 1px;
    }