﻿/* จอเล็ก */
@media (max-width: 576px) {
    .ajax__calendar {
        /*display:inline-block !important;*/
        left: 0 !important;
        right: auto !important;
    }
}

/* CalendarExtender กรอบและพื้นหลังปฏิทิน */
.ajax__calendar_container {
    background-color: #ffffff !important;
    padding: .5rem !important;
    width: 350px !important;
    font-family: 'THSarabunNew' !important;
    font-size: 18px !important;
}

/* โครงร่างภายใน */
.ajax__calendar_body {
    width: 100% !important;
    height: 160px !important;
}

.ajax__calendar_days {
    width: 100% !important;
}

    .ajax__calendar_days table {
        width: 350px !important;
        margin: auto !important;
        text-align: center !important;
    }

    .ajax__calendar_days td {
        width: auto !important;
    }

.ajax__calendar_day {
    font-size: 18px !important;
    padding: 2px 0 2px 0 !important; /* บน ขวา ล่าง ซ้าย */
}

/* Today (วันนี้) */
.ajax__calendar_today .ajax__calendar_day {
    border: none !important;
    font-weight: bold !important;
    color: #0d6efd !important;
}

.ajax__calendar_day {
    width: auto !important;
    font-weight: bold !important;
}

.ajax__calendar_other {
    color: rgba(0,0,0,0.25) !important; /* ดำ 25% */
    width: auto !important;
}

.ajax__calendar_dayname {
    font-size: 16px !important;
    width: auto !important;
}
/*////////////////////////////////////////////////////////////////////////*/

/* จอใหญ่ */
@media (min-width: 576px) {
    .w-sm-15 {
        width: 15% !important;
    }
}

@media (min-width: 576px) {
    .w-sm-auto {
        width: auto !important;
        flex-grow: 0 !important;
    }
}

/* จอเล็ก */
@media (max-width: 576px) {
    .w-xs-100 {
        width: 100% !important;
    }
}

@media (max-width: 576px) {
    .w-xs-15 {
        width: 15% !important;
    }
}

/* พื้นหลังกราฟ สีขาว */
@media (prefers-color-scheme: dark) {
    .highcharts-background {
        fill: #ffffff !important; /* พื้นหลังกราฟ */
    }

    .highcharts-title,
    .highcharts-axis-title,
    .highcharts-axis-labels text,
    .highcharts-data-label text,
    .highcharts-legend-item text {
        fill: #000000 !important; /* สีข้อความ */
    }

    .highcharts-tooltip,
    .highcharts-tooltip-box,
    .highcharts-button-box {
        fill: #ffffff !important;
    }

    .highcharts-container {
        overflow: visible !important;
        z-index: 1 !important;
    }
}


table th a {
    text-decoration: none; /* ลบ เส้นใต้ หัวตาราง */
}


/* ครอบคลุมทุก RadioButtonList ที่ถูก Render เป็น <table> */
table[id*="RadioButtonList"] td {
    padding-right: 10px;
}




/*พี้นหลังดีสสิเบิล*/
.aspNetDisabled {
    background-color: #f8f9fa !important; /* เปลี่ยนสีพื้นหลัง */
}

/*gridview ตรึงแถวบน*/
.sticky-header {
    position: relative;
}

.sticky-header-row {
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: white;
    outline: 1px solid #dee2e6;
    border-bottom: 0px solid white;
}







/* GridView fixed-column PagerStyle*/
.fixed-column-yam {
    position: sticky;
    left: 0;
    background-color: white;
    z-index: 1;
    outline: 1px solid #dee2e6;
}

.gridview-pager table {
    position: sticky !important;
    left: 10px;
    z-index: 2 !important;
}

.gridview-pager td {
    padding-right: 10px !important; /* เพิ่มระยะห่างด้านขวาในเซลล์ของ Pager */
}

    .gridview-pager td a {
        text-decoration: none !important; /* ลบเส้นใต้ของลิงก์ใน Pager */
    }


/* black to top*/
#myBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    font-size: 18px;
    border: none;
    outline: none;
    /*background-color: red;*/
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 4px;
    z-index: 999;
}

    #myBtn:hover {
        background-color: #555;
    }


/*zoom font*/
.textsize-control.btn-group > .btn-control {
    font-size: 1em;
    border-color: #eaeaea;
}

.btn-sm, .btn-group-sm > .btn {
    padding: 0.55rem 0.75rem;
    font-size: 0.925rem;
    line-height: 1.35;
    border-radius: 0.42rem;
}

/*จัดรูปแบบเซลล์ไม่ห่อ*/
.nowrap-table th,
.nowrap-table td {
    white-space: nowrap;
}


/*สตาย c*/
.parent-btn {
    top: 133%;
    width: auto;
    padding-right: 0%;
    z-index: 10;
    display: inline-block;
}

.btn.-btcnormal, .btn.-btcblack, .btn.-btcyellow {
    font-size: 1.4em;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    border: 1px solid #3f3f3f;
    line-height: 1em;
    padding: 0;
    display: inline-block;
    font-weight: normal;
    width: 2rem;
    height: 2rem;
}

    .btn.-btcnormal .text, .btn.-btcblack .text, .btn.-btcyellow .text {
        position: relative;
        top: 1px;
    }

.btn.-btcnormal {
    color: #3f3f3f;
    background-color: #fff;
}

.btn.-btcblack {
    color: #fff;
    background-color: #000;
}

.btn.-btcyellow {
    color: #ff0;
    background-color: #000;
}

.linkyam a {
    /* display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #B0B9AE;
    font-weight: normal;*/
    text-transform: capitalize;
    transition: .3s;
}

    .linkyam a::before {
        position: relative;
        /*content: "\f105";*/
        /*font-family: "Font Awesome 5 Free";*/
        font-weight: 900;
        /*margin-right: 10px;*/
    }

    .linkyam a:hover {
        /*color: var(--light);*/
        letter-spacing: 1px;
        box-shadow: none;
    }
/*** Service ***/
.service-item .service-text {
    position: relative;
    width: 100%;
    top: 0;
    left: 0;
    text-align: center;
    background: #FFFFFF;
    /*box-shadow: 0 0 45px rgba(0, 0, 0, .06);*/
    transition: .5s;
    z-index: 2;
    box-shadow: -4px 6px 9px 0 rgba(25,42,70,.13);
    margin-bottom: 0.5rem
}

.service-item:hover .service-text {
    top: -1.5rem;
}

.service-item .service-text h5 {
    transition: .5s;
}

.service-item:hover .service-text h5 {
    color: var(--primary);
}

.service-item .service-btn {
    position: absolute;
    width: 80%;
    height: 3rem;
    left: 10%;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
    transition: .5s;
    z-index: 1;
}

.service-item:hover .service-btn {
    bottom: -1.5rem;
}
/*header*/
.bg-header {
    background: url(../IMG/Web/logobg.png);
    background-repeat: no-repeat;
    background-position: center right;
    background-color: #006738;
    /* box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);*/
}

#header .logo {
    -webkit-transition: all 0.2s ease-in 0.2s;
    -moz-transition: all 0.2s ease-in 0.2s;
    transition: all 0.2s ease-in 0.2s;
    margin: 0;
    padding: 5px 0;
    display: table-cell;
    vertical-align: middle;
    height: 100%;
    color: transparent;
}

    #header .logo a {
        position: relative;
        z-index: 1;
    }

    #header .logo img {
        position: relative;
        color: transparent;
        width: auto !important;
    }


/*ajax__calendar*/
.ajax__calendar_container {
    position: absolute;
    z-index: 100003 !important;
}





/*fullcalendar6*/

.fc-header {
    font-size: 5pt;
}


/*marquee ตัวหนังสือเลื้อน*/
.marquee {
    width: 100%;
    height: 30px;
    margin: 0px auto;
    overflow: hidden;
    position: relative;
    /*border: 0px solid #3498db;*/
    /* background-color: #006738;*/
    /* -webkit-border-radius: 5px;
    border-radius: 0px;
    -webkit-box-shadow: inset 0px 2px 2px rgba(0, 0, 0, .5), 0px 1px 0px rgba(250, 250, 250, .2);
    box-shadow: inset 0px 2px 2px rgba(0, 0, 0, .5), 0px 1px 0px rgba(250, 250, 250, .2);
    -webkit-transition: background-color 350ms;
    -moz-transition: background-color 350ms;*/
    transition: background-color 350ms;
}

    .marquee p {
        position: absolute;
        width: 100%;
        height: 100%;
        margin: 0;
        line-height: 30px;
        text-align: center;
        /* color: #fff;*/
        /*text-shadow: 1px 1px 0px #000000;*/
        filter: dropshadow(color=#000000, offx=1, offy=1);
        transform: translateX(100%);
        -moz-transform: translateX(100%);
        -webkit-transform: translateX(100%);
    }

        .marquee p:nth-child(1) {
            animation: left-one 20s ease infinite;
            -moz-animation: left-one 20s ease infinite;
            -webkit-animation: left-one 20s ease infinite;
        }

        .marquee p:nth-child(2) {
            animation: left-two 20s ease infinite;
            -moz-animation: left-two 20s ease infinite;
            -webkit-animation: left-two 20s ease infinite;
        }

    .marquee.down p {
        transform: translateY(-100%);
        -moz-transform: translateY(-100%);
        -webkit-transform: translateY(-100%);
    }

        .marquee.down p:nth-child(1) {
            animation: down-one 20s ease infinite;
            -moz-animation: down-one 20s ease infinite;
            -webkit-animation: down-one 20s ease infinite;
        }

        .marquee.down p:nth-child(2) {
            animation: down-two 20s ease infinite;
            -moz-animation: down-two 20s ease infinite;
            -webkit-animation: down-two 20s ease infinite;
        }

    .marquee.up p {
        transform: translateY(100%);
        -moz-transform: translateY(100%);
        -webkit-transform: translateY(100%);
    }

        .marquee.up p:nth-child(1) {
            animation: up-one 20s ease infinite;
            -moz-animation: up-one 20s ease infinite;
            -webkit-animation: up-one 20s ease infinite;
        }

        .marquee.up p:nth-child(2) {
            animation: up-two 20s ease infinite;
            -moz-animation: up-two 20s ease infinite;
            -webkit-animation: up-two 20s ease infinite;
        }

/*================================
	Move the Marquee to the Left
==================================*/

/** Mozilla Firefox Keyframes **/
@-moz-keyframes left-one {
    0% {
        -moz-transform: translateX(100%);
    }

    10% {
        -moz-transform: translateX(0);
    }

    40% {
        -moz-transform: translateX(0);
    }

    50% {
        -moz-transform: translateX(-100%);
    }

    100% {
        -moz-transform: translateX(-100%);
    }
}

@-moz-keyframes left-two {
    0% {
        -moz-transform: translateX(100%);
    }

    50% {
        -moz-transform: translateX(100%);
    }

    60% {
        -moz-transform: translateX(0);
    }

    90% {
        -moz-transform: translateX(0);
    }

    100% {
        -moz-transform: translateX(-100%);
    }
}
/** Webkit Keyframes **/
@-webkit-keyframes left-one {
    0% {
        -webkit-transform: translateX(100%);
    }

    10% {
        -webkit-transform: translateX(0);
    }

    40% {
        -webkit-transform: translateX(0);
    }

    50% {
        -webkit-transform: translateX(-100%);
    }

    100% {
        -webkit-transform: translateX(-100%);
    }
}

@-webkit-keyframes left-two {
    0% {
        -webkit-transform: translateX(100%);
    }

    50% {
        -webkit-transform: translateX(100%);
    }

    60% {
        -webkit-transform: translateX(0);
    }

    90% {
        -webkit-transform: translateX(0);
    }

    100% {
        -webkit-transform: translateX(-100%);
    }
}

/*================================
	Move the Marquee Downwards
==================================*/

/** Mozilla Firefox Keyframes **/
@-moz-keyframes down-one {
    0% {
        -moz-transform: translateY(-100%);
    }

    10% {
        -moz-transform: translateY(0);
    }

    40% {
        -moz-transform: translateY(0);
    }

    50% {
        -moz-transform: translateY(100%);
    }

    100% {
        -moz-transform: translateY(100%);
    }
}

@-moz-keyframes down-two {
    0% {
        -moz-transform: translateY(-100%);
    }

    50% {
        -moz-transform: translateY(-100%);
    }

    60% {
        -moz-transform: translateY(0);
    }

    90% {
        -moz-transform: translateY(0);
    }

    100% {
        -moz-transform: translateY(100%);
    }
}

/** Webkit Keyframes **/
@-webkit-keyframes down-one {
    0% {
        -webkit-transform: translateY(-100%);
    }

    10% {
        -webkit-transform: translateY(0);
    }

    40% {
        -webkit-transform: translateY(0);
    }

    50% {
        -webkit-transform: translateY(100%);
    }

    100% {
        -webkit-transform: translateY(100%);
    }
}

@-webkit-keyframes down-two {
    0% {
        -webkit-transform: translateY(-100%);
    }

    50% {
        -webkit-transform: translateY(-100%);
    }

    60% {
        -webkit-transform: translateY(0);
    }

    90% {
        -webkit-transform: translateY(0);
    }

    100% {
        -webkit-transform: translateY(100%);
    }
}

/*================================
	Move the Marquee Upwards
==================================*/

/** Mozilla Firefox Keyframes **/
@-moz-keyframes up-one {
    0% {
        -moz-transform: translateY(100%);
    }

    10% {
        -moz-transform: translateY(0);
    }

    40% {
        -moz-transform: translateY(0);
    }

    50% {
        -moz-transform: translateY(-100%);
    }

    100% {
        -moz-transform: translateY(-100%);
    }
}

@-moz-keyframes up-two {
    0% {
        -moz-transform: translateY(100%);
    }

    50% {
        -moz-transform: translateY(100%);
    }

    60% {
        -moz-transform: translateY(0);
    }

    90% {
        -moz-transform: translateY(0);
    }

    100% {
        -moz-transform: translateY(-100%);
    }
}

/** Webkit Keyframes **/
@-webkit-keyframes up-one {
    0% {
        -webkit-transform: translateY(100%);
    }

    10% {
        -webkit-transform: translateY(0);
    }

    40% {
        -webkit-transform: translateY(0);
    }

    50% {
        -webkit-transform: translateY(-100%);
    }

    100% {
        -webkit-transform: translateY(-100%);
    }
}

@-webkit-keyframes up-two {
    0% {
        -webkit-transform: translateY(100%);
    }

    50% {
        -webkit-transform: translateY(100%);
    }

    60% {
        -webkit-transform: translateY(0);
    }

    90% {
        -webkit-transform: translateY(0);
    }

    100% {
        -webkit-transform: translateY(-100%);
    }
}

/*----------------------------------------------------------------------------*/

.yamCombox {
    display: grid !important;
    padding: unset !important;
    margin: unset !important;
    border: unset !important;
}

.ajax__combobox_inputcontainer { /*table*/
    display: grid !important;
    top: unset !important;
}



.ajax__combobox_textboxcontainer { /*td*/
    width: 100% !important;
}

    .ajax__combobox_textboxcontainer input { /*td input*/

        margin: unset !important;
        width: 100% !important;
        /*padding: unset !important;*/
        font-size: 1rem;
        font-weight: 400;
        line-height: 2.07 !important;
        color: #212529;
        background-color: #fff;
        background-clip: padding-box;
        border: 1px solid #ced4da;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        border-radius: 0.175rem;
        transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
        height: 47px;
    }

.ajax__combobox_itemlist {
    /*width: 100% !important;*/
    line-height: 2.07;
    padding: 0.375rem 0.75rem;
    border: 1px solid #ced4da;
}

.ajax__combobox_buttoncontainer button {
    --bs-btn-padding-x: 0.75rem;
    --bs-btn-padding-y: 0.0rem;
    /*    --bs-btn-font-family: ;*/
    --bs-btn-font-size: 1rem;
    --bs-btn-font-weight: 400;
    --bs-btn-line-height: 2.07;
    --bs-btn-color: #212529;
    --bs-btn-bg: transparent;
    --bs-btn-border-width: 1px;
    --bs-btn-border-color: transparent;
    --bs-btn-border-radius: 0.375rem;
    --bs-btn-hover-border-color: transparent;
    --bs-btn-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075);
    --bs-btn-disabled-opacity: 0.65;
    --bs-btn-focus-box-shadow: 0 0 0 0.25rem rgba(var(--bs-btn-focus-shadow-rgb), .5);
    display: inline-block;
    padding: var(--bs-btn-padding-y) var(--bs-btn-padding-x);
    font-family: var(--bs-btn-font-family);
    font-size: var(--bs-btn-font-size);
    font-weight: var(--bs-btn-font-weight);
    line-height: var(--bs-btn-line-height);
    color: var(--bs-btn-color);
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    border: var(--bs-btn-border-width) solid var(--bs-btn-border-color);
    border-radius: var(--bs-btn-border-radius);
    background-color: var(--bs-btn-bg);
    /*    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;*/
    --bs-btn-color: #000;
    --bs-btn-bg: #c6c7c8;
    --bs-btn-border-color: #f8f9fa;
    --bs-btn-hover-color: #000;
    --bs-btn-hover-bg: #d3d4d5;
    --bs-btn-hover-border-color: #c6c7c8;
    --bs-btn-focus-shadow-rgb: 211, 212, 213;
    --bs-btn-active-color: #000;
    --bs-btn-active-bg: #c6c7c8;
    --bs-btn-active-border-color: #babbbc;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #000;
    --bs-btn-disabled-bg: #f8f9fa;
    --bs-btn-disabled-border-color: #f8f9fa;
}




@media screen and (min-width: 991px) {
    div .rText
    /**/ {
        text-align: right;
        /*color: darkgreen;*/
        /*font-size:12px;*/
    }
}

@media screen and (max-width: 990px) {
    div.rText {
        text-align: left;
        /*color: darkgreen;*/
    }
}

/*''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''*/
.ajax__tab_xp .ajax__tab_header .ajax__tab_tab {
    height: 21px !important;
}


.ajax__tab_xp .ajax__tab_tab {
    height: 21px;
    min-height: 21px;
}

/*''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''*/


#mask {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 9000;
    background-color: #000;
    display: none;
}

#boxes .window {
    position: absolute;
    left: 0;
    top: 0;
    width: 900px;
    /*height: 490px;*/
    display: none;
    z-index: 9999;
    padding: 0px;
    border-radius: 15px;
    text-align: center;
}

#boxes #dialog {
    width: 890px;
    height: 500px;
    padding: 10px;
    background-color: #ffffff;
    font-family: 'Segoe UI Light', sans-serif;
    font-size: 15pt;
}

#popupfoot {
    font-size: 16pt;
    position: absolute;
    bottom: 50px;
    /*width: 250px;*/
    left: 300px;
}

/*table
{
font-size:10pt;
font-family:verdana,Arial,Tahoma;
color:#333333;20
margin-right: 0px;
margin-top: 0px;
}*/

#gotoTop {
    position: fixed;
    margin: auto;
    right: 0px;
    bottom: 0px;
    border: 0px;
    cursor: pointer;
    z-index: 99;
    display: none;
}

#tooplate_middle {
    background-position: center top;
    clear: both;
    overflow: hidden;
    background: url(//www.mhc9dmh.com/pic/tooplate_middle.png) no-repeat;
    width: 900px;
    height: 240px;
    padding: 22px 30px 51px 30px;
}

/* ================ link manu ====
A
{

font-family:verdana,Arial;
color:Blue;
text-decoration: underline;
}
a:link
{
color: Blue;
font-family:verdana,Arial;
}

a:hover 
{
color: red;
text-decoration:none;
font-family:verdana,Arial;
}

a:active 
{
color: Blue;
font-family:verdana,Arial;
}
============== */

/* ================ link manu ================== */

/* ================ Menu ========================= */
.MenuBg {
    background-image: url('//www.mhc9dmh.com/pic/gridhd_bg.gif');
    background-repeat: repeat;
}

.MenuBg2 {
    background-position: left top;
    color: Navy;
    background-image: url('//www.mhc9dmh.com/pic/more_btn2.png');
    background-repeat: repeat-y;
}

.MenuMain {
    padding: 0 0 0 0;
    font-size: 0.92em;
    color: Navy;
}

.MenuStatic {
    padding: 0 0 0 3px;
    font-size: 0.92em;
    color: Navy;
}

.MenuDynamic {
    z-index: 100;
    font-size: 0.92em;
    background-color: Silver;
    border: solid 1px;
}

.MenuDynamicItem {
    padding: 3px 3px 3px 3px;
    color: Navy;
}

.MenuOver {
    background-image: url('//www.mhc9dmh.com/pic/menu_bg_over.gif');
    background-repeat: repeat;
    color: Maroon;
}

.MenuSel {
    color: Navy;
}

.MenuMain, .MenuStatic, .MenuDynamic, .MenuDynamicItem, .MenuOver, .MenuSel {
    font-size: 14px;
}

.MenuBg, .MenuMain {
    height: 30px;
}

.MenuStatic, .MenuDynamicItem, .MenuOver {
    height: 30px;
}
/* ================ End Menu ====================== */

.aManu:link {
    color: Blue;
    font-family: verdana,Arial;
}

.aManu:hover {
    font-size: 11pt;
    color: red;
    text-decoration: none;
    font-family: verdana,Arial;
    font-weight: bold;
}

.aManu:active {
    color: Blue;
    font-family: verdana,Arial;
}
/* ================ ปุ่ม ================== */

.ButtonDefault {
    color: White;
}

    .ButtonDefault:hover {
        font-family: verdana,Arial;
        font-weight: bold;
        color: #dcbd02;
    }

.defaultBtn {
    background-color: #40bf40;
}


    .defaultBtn:hover {
        background-color: #339933;
    }
/* ================ ไร่สี ================== */
.G1 {
    FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=1,StartColorStr='#00bfff',EndColorStr='white');
}

.G2 {
    FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=1,StartColorStr='white',EndColorStr='#507cd1');
}
