body {
    font-family: Mitr-Light;
    font-size: 14px;
}

@font-face {
    font-family: Mitr-Light;
    src: url('../include/font/Mitr-Light.ttf');
}

html.loginpage {
    background-image: url('../image/background/bg1.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    -o-background-size: 100% 100%, auto;
    -moz-background-size: 100% 100%, auto;
    -webkit-background-size: 100% 100%, auto;
    background-size: 100% 100%, auto;
}

html.hino {
    background: linear-gradient(-45deg, #ffffff, #ffffff, #ffffff, #ffffff);
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    -o-background-size: 100% 100%, auto;
    -moz-background-size: 100% 100%, auto;
    -webkit-background-size: 100% 100%, auto;
    background-size: 100% 100%, auto;
}


/*เฟรมขึ้น modal*/
.iframemodal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    border: 0px solid #fff;
    z-index: 2000;
}


/*-------------------index/login--------------------------------------------------*/
Img.logocheckdata {
    width: 400px;
    height: 153px;
    border-radius: 20%;
}


/* Column หน้า index/login เมื่อเม้าส์ไปโดน */
.colcheckdata {
    width: 350px;
    height: 600px;
}

.centercheckdata {
    align-items: center;
    justify-content: center;
    padding-bottom: 15px;
    background-color: #ffffff;
    border-radius: 60px 0px 60px 0px;
}

.centercheckdata:hover {
    box-shadow: 0px 20px 30px 5px rgba(0, 0, 0, 0.5);
}

.bodycheckdata {
    height: 100%;
}

.fontheadercheckdata {
    font-size: 20px;
    color: #5d615f;
    text-align: center;
}


/* ส่วนของ font */
.fonttitle {
    font-size: 24px;
    padding-bottom: 20px;
}

.fontstatus {
    font-size: 20px;
    color: #898d8b;
    text-align: center;
}

.fonthead {
    font-size: 18px;
    color: #063340;
}


/* ส่วนจัดตำแหน่ง */
.centerjustify {
    display: flex;
    justify-content: center;
    padding-bottom: 5px;
}

.centeralignjustify {
    display: flex;
    align-items: center;
    justify-content: center;
}


/*box*/
.boxhead {
    background: linear-gradient(45deg, #addddc, #addddc, #96b8b8, #ffffff, #ffffff);
    padding: 4px;
}

.boxtable {
    background-color: #ffffff;
    border: 1px solid #b1dff1;
    padding-left: 10px;
    padding-right: 10px;
    box-shadow: 1px 2px 15px 2px #afc1c8;
}

.boxbody {
    background-color: #ffffff;
    border: 1px solid #b1dff1;
    padding-left: 10px;
    padding-right: 10px;
    box-shadow: 1px 2px 15px 2px #afc1c8;
    border-radius: 10px;
}


/* ส่วนของตาราง --------------------------------------------------------------------*/
.fonttablecheck {
    font-size: 20px;
}

.fonttableuser {
    font-size: 18px;
}

.fonttableadmin {
    font-size: 12px;
}

.bordertablebody {
    border-top: 1px solid #878787;
    border-bottom: 1px solid #878787;
    text-align: center;
}


/* ส่วนของ textbox --------------------------------------------------------------------*/
.paddingtextbox {
    padding-bottom: 16px;
}

input[type=nobordertext] {
    border: none;
    border-bottom: 2px solid #063340;
    width: 95%;
    padding-top: 15px;
    padding-bottom: 15px;
    font-size: 18px;
}

input[type=nobordertext]:focus {
    outline: none;
}

input[type=noborderpassword] {
    border: none;
    border-bottom: 2px solid #063340;
    -webkit-text-security: disc;
    width: 95%;
    padding-top: 15px;
    padding-bottom: 15px;
    font-size: 18px;
}

input[type=noborderpassword]:focus {
    outline: none;
}

input[type=outlinetext]:focus {
    outline: 1px solid #addddc;
}

/*Date Formate*/
input[type=date]:focus {
    outline: 1px solid #addddc;
}

#dt {
    text-indent: -500px;
    height: 25px;
    width: 200px;
}

#date_input {
    text-indent: -500px;
    height: 25px;
    width: 200px;
}


input[type=select]:focus {
    outline: 1px solid #addddc;
}

input[type=search]:focus {
    outline: 1px solid #addddc;
}


/*ปิดแถบเลื่อนกล่องข้อความประเภท number*/
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number]:focus {
    outline: 1px solid #addddc;
}

.textinput {
    float: left;
    width: 100%;
    min-height: 35px;
    outline: none;
    resize: none;
    border: 1px solid #f0f0f0;
}

.choosefilebackgroundcolor {
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: #EDEDED;
    display: flex;
}


/* ตกแต่ง radio ประเภทผู้ประเมิน */
.option-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    -o-appearance: none;
    appearance: none;
    position: relative;
    top: 5px;
    right: 0;
    bottom: 0;
    left: 0;
    height: 20px;
    width: 20px;
    transition: all 0.15s ease-out 0s;
    background: #cbd1d8;
    border: none;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    margin-right: 0.5rem;
    outline: none;
    position: relative;
    z-index: 1;
}

.option-input:hover {
    background: #9faab7
}

.option-input:checked {
    background: rgb(117, 201, 199)
}

.option-input:checked::before {
    height: 20px;
    width: 20px;
    position: absolute;
    content: "\f111";
    font-family: "Font Awesome 5 Free";
    display: inline-block;
    font-size: 12.2px;
    text-align: center;
    line-height: 20px
}

.option-input:checked::after {
    -webkit-animation: click-wave 0.25s;
    -moz-animation: click-wave 0.25s;
    animation: click-wave 0.25s;
    background: #addddc;
    content: '';
    display: block;
    position: relative;
    z-index: 1000;
}

.option-input.radio {
    border-radius: 50%
}

.option-input.radio::after {
    border-radius: 50%
}


/*checkbox*/
.checkbox {
    width: 100%;
    display: block;
}

.checkbox input[type="checkbox"] {
    width: auto;
    opacity: 0.00000001;
    position: absolute;
}

.checkbox label {
    position: relative;
}

.checkbox label:before {
    content: '';
    position: absolute;
    top: 0;
    width: 20px;
    height: 20px;
    transition: transform 0.28s ease;
    border-radius: 3px;
    border: 2px solid rgb(117, 201, 199);
}

.checkbox label:after {
    content: '';
    display: block;
    width: 10px;
    height: 5px;
    border-bottom: 2px solid #063340;
    border-left: 2px solid #063340;
    -webkit-transform: rotate(-45deg) scale(0);
    transform: rotate(-45deg) scale(0);
    transition: transform ease 0.25s;
    will-change: transform;
    position: absolute;
    top: 7px;
    left: 5px;
}

.checkbox input[type="checkbox"]:checked~label::before {
    color: rgb(117, 201, 199);
}

.checkbox input[type="checkbox"]:checked~label::after {
    -webkit-transform: rotate(-45deg) scale(1);
    transform: rotate(-45deg) scale(1);
}

.checkbox label {
    display: block;
    cursor: pointer;
}

.checkbox label span {
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}

.checkbox input[type="checkbox"]:focus+label::before {
    outline: 0;
}


/*คอมเม้นท์ก่อนเข้าเว็บ*/
.modal-body1 {
    background-color: #e5f7e9;
    color: #063340;
    font-size: 12px;
}


/*----------------ส่วนของปุ่ม-----------------------------------*/
.buttonsave {
    color: white;
    background-color: #7ab3ad;
    border: transparent;
    border-radius: 5px;
    width: 40%;
    height: 40px;
}

.buttonsave:hover {
    background-color: #063340;
    color: white;
}

.buttonreset {
    color: white;
    background-color: #e3e363;
    border: transparent;
    border-radius: 5px;
    width: 40%;
    height: 40px;
}

.buttonreset:hover {
    background-color: #e7b100;
    color: white;
}

.buttonclose {
    color: white;
    background-color: #a7a7a7;
    border: transparent;
    border-radius: 5px;
    font-size: 12px;
    width: 120px;
    height: 40px;
}

.buttonsuccess {
    color: white;
    background-color: #063340;
    border: transparent;
    border-radius: 5px;
    font-size: 12px;
    width: 120px;
    height: 40px;
}

.buttonclear {
    background-color: #063340;
    color: #ffffff;
    border: transparent;
    border-radius: 5px;
    width: 10%;
    height: 34px;
}

.buttondelete {
    color: white;
    background-color: #f43333;
    border: transparent;
    border-radius: 5px;
    font-size: 12px;
    width: 120px;
    height: 40px;
}

.buttoncleareditstatus {
    background-color: transparent;
    border: transparent;
}

.buttonMan:hover {
    background-color: #063a40;
    color: white;
}

.buttonAdd {
    background-color: #dedddd;
    color: #063a40;
    border: transparent;
    border-radius: 5px;
    width: 8%;
    height: 34px;
}

.buttonAdd:hover {
    background-color: #addddc;
}

.buttonAddDrug {
    color: #063a40;
    background-color: #addddc;
    border: transparent;
    border-radius: 5px;
    width: 6%;
    height: 30px;
}


/* ตกแต่งปุ่มเพิ่มไปยัง Excel ของแต่ละ Form เมื่อเมาส์ไปโดน */
.buttoncheck {
    background-color: #92cad2;
    color: white;
    width: 60%;
    border: none;
    height: 40px;
    border-radius: 100px;
    font-size: 20px;
}

.buttoncheck:hover {
    background-color: #063a40;
    color: white;
}


/* ตกแต่งรูปปุ่มแก้ไข (edit) */
.imageedit {
    width: 30px;
    height: 30px;
    padding-bottom: 2px;
}


/* ตกแต่งรูปปุ่มลบ (Delete) */
.imagedelete {
    width: 20px;
    height: 20px
}

.imageexcel {
    width: 30px;
    height: 28px
}

.imagesheet {
    width: 31px;
    height: 29px
}


/* ตกแต่งปุ่มรายงาน */
.buttonreport {
    background-color: #dedddd;
    color: #063340;
    border: transparent;
    border-radius: 5px;
    width: 10%;
    height: 35px;
    padding-bottom: 3px;
}

.buttonreport:hover {
    background-color: #addddc;
}

.buttonedit {
    background-color: #dedddd;
    color: #063340;
    border: transparent;
    border-radius: 5px;
    width: 22%;
    height: 25px;
}

.buttonedit:hover {
    background-color: #eeee14;
}

.buttondel {
    background-color: #dedddd;
    color: #063340;
    border: transparent;
    border-radius: 5px;
    width: 22%;
    height: 25px;
}

.buttondel:hover {
    background-color: #f43333;
}

.buttondeDetailDrug {
    background-color: #dedddd;
    color: #063340;
    border: transparent;
    border-radius: 5px;
    width: 22%;
    height: 25px;
}

.buttondeDetailDrug:hover {
    background-color: #38f2a8;
}

.search {
    background-color: #fff;
    padding: 4px;
    border-radius: 5px
}

::placeholder {
    color: rgba(189, 189, 189, 0.582);
    opacity: 5
}

.search-2 {
    position: relative;
    width: 100%
}

.search-2 input {
    height: 35px;
    border: 2px solid #6c757d;
    width: 100%;
    padding-left: 18px;
    padding-right: 100px
}

.search-2 input:focus {
    border-color: none;
    box-shadow: none;
    outline: none
}

.search-2 i {
    top: 12px;
    left: -10px;
    font-size: 20px;
    color: #eee
}

.search-2 button {
    position: absolute;
    right: 1px;
    top: 0px;
    border: none;
    height: 35px;
    background-color: #063340;
    color: #fff;
    width: 50px;
    border-radius: 4px;
    font-size: 20px;
}


/* ในส่วนของ responsive มือถือ ----------------------------------------------------------------*/
@media screen and (max-width: 720px) {
    body {
        font-size: 16px;
    }

    .buttonsave {
        width: 60%;
    }

    .fonttitle {
        font-size: 18px;
        padding-bottom: 20px;
    }

    .fontstatus {
        font-size: 16px;
        color: #898d8b;
        text-align: center;
    }

    .bordertablebody {
        border-top: 1px solid #878787;
        border-bottom: 1px solid #878787;
        padding-top: 5px;
        padding-bottom: 5px;
        text-align: left;
    }

    .fonttableuser {
        font-size: 14px;
    }

    .fonttableadmin {
        font-size: 10px;
    }

    Img.logocheckdata {
        width: 260px;
        height: 100px;
        border-radius: 20%;
    }

    .divnote {
        width: 300px;
        height: 220px;
        padding: 40px;
        color: #063340;
        background-color: #e5f7e9;
        /*border: 1px solid red;*/
        border-radius: 20px;
    }
}


/* ในส่วนของช่องค้นหา status_user ----------------------------------------------------------------*/
@media (max-width:960px) {
    .search-2 i {
        left: 4px;
    }

    .search-2 input {
        padding-left: 10px;
    }

    .search-2 button {
        height: 35px;
        top: 0px;
        font-size: 16px;
    }
}

/* new style 2025 */
.text-right {
    text-align: right;
}

.pr-4 {
    padding-right: 1.5rem !important;
}

.back-icon, .fa-backward {
    color: #063340;
    cursor: pointer;
    font-size: 18px;
    padding-left: 15px;
}

select {
    cursor: pointer;
}

.history-inf {
    color: #063340;
    text-decoration: none;
}

select.form-control:focus {
    box-shadow: none;
}

.remark {
    color: red;
    font-size: .8rem;
    margin-top: -8px;
    margin-bottom: 4px;
}

.buttonreport, .buttonsearch, .buttonclear {
    height: 36px;
    padding: 0;
    width: 46px;
}

.buttonreport {
    background-color: #063340 !important;
    color: #fff;
}

.buttonclear {
    background-color: red;
}

#employeeTable_wrapper, #infirmaryTable_wrapper, #reportDrugTable_wrapper, #symptomTable_wrapper, #nurseTable_wrapper {
    margin-top: 10px;
}

#employeeTable_filter, #infirmaryTable_filter, #reportDrugTable_filter, #symptomTable_filter, #nurseTable_filter {
    margin-bottom: 10px;
}

.dt-button.buttons-excel.buttons-html5 {
    color: white;
    background: linear-gradient(180deg, #005759, #009092);
    border-radius: 14px;
}

.dt-button.buttons-excel.buttons-html5:hover {
    background: green;
}

.dt-button.buttons-print {
    border-radius: 14px;
}

.search-input {
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    padding: 5px 10px !important;
    margin-left: 5px !important;
    width: 260px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #005759 !important;
    color: white !important;
    border-radius: 10px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: linear-gradient(180deg, #005759, #009092) !important;
    color: white !important;
    border-radius: 10px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    background: #ccc !important;
    color: #666 !important;
    cursor: not-allowed !important;
}

.action-buttons i {
    text-align: center;
}

div.action-buttons {
    display: flex;
    gap: 4px;
    text-align: center;
    width: fit-content;
}

.select2-selection {
    transition: border-color 0.2s ease;
}

.select2-selection:focus {
    outline: none;
}

input[type="text"], input[type="outlinetext"], input[type="search"], input[type="number"], input[type="date"], input[type="time"], select, .select2-container--default .select2-selection--single {
    border: 1px solid #a8adb3;
    border-radius: 4px;
    height: 32px !important;
}
textarea {
    border: 1px solid #a8adb3;
    border-radius: 4px;
}
.select2-dropdown {
    border-radius: 4px;
    border: 1px solid #a8adb3;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 30px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 30px;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    font-size: 20px;
    height: 30px;
    line-height: 1;
}

input:not([type="radio"]), button, select, optgroup, textarea {
    padding: 4px 10px;
}

.table > thead {
    vertical-align: middle;
}

.buttonsearch {
    background-color: royalblue;
    color: #fff;
    border: transparent;
    border-radius: 5px;
    width: 46px;
    height: 36px;
    padding: 0;
}

.btn-info {
    color: #fff !important
}

.form-control {
    line-height: 1;
}

table.dataTable tbody tr {
    border-color: #b0e0e6;
}

/* table.dataTable thead th {
    border-color: #b0e0e6;
} */

@media screen and (max-width: 350px) {
    .dataTables_wrapper .dataTables_filter input {
        width: 100% !important;
    }
}
@media screen and (max-width: 900px) {
    .select2-container {
        width: 100% !important;
    }
}