html,
body{
    height:100%;
}

body{
    font-family: Mitr-Light;
    font-size:14px;

    display:flex;
    flex-direction:column;

    min-height:100vh;

    padding-top:50px;
    margin:0;
}

@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.toyota {
    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 {

    height: 123px;
    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: 40px ;
}

.centercheckdata:hover {
 box-shadow:
0 15px 35px rgba(0,0,0,.18);


transform:translateY(-3px);
}

.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: 15px;
}

.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;
    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,.buttonplus {
    background-color: #dedddd;
    color: #063340;
    border: transparent;
    border-radius: 5px;
    width: 22%;
    height: 25px;
}

.buttonedit:hover {
    background-color: #eeee14;
}

.buttonplus:hover {
    background-color: #3a9bf5;
}

.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: 160px;
        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,#surveyTable_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;
    justify-content: center;  /* จัดกลาง */
    align-items: center;
    gap: 4px;
    width: 100%;              /* สำคัญมาก */
}

.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;
    }

}

.page-header-modern {
    margin-bottom: 25px;
}

.page-title-modern {
    font-size: 26px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-subtitle-modern {
    font-size: 15px;
    color: #6c757d;
    margin-top: 5px;
}

.card-modern {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    padding: 30px;
}


  .stock-card {
    border-radius: 10px;
    padding: 14px 16px;
    background: #fafafa;
    box-shadow: none;
    border: 1px solid #e5e7eb;
  }

  .stock-card.green {
    border-left: 4px solid #16a34a;
  }

  .stock-card.red {
    border-left: 4px solid #dc2626;
  }

  .stock-card .title {
    font-size: 14px;
    color: #374151;
    margin-bottom: 8px;
  }

  .row-line {
    display: flex;
    justify-content: space-between;
    margin: 6px 0;
  }


  .total {
    font-size: 16px;
    font-weight: bold;
  }

  .stock-summary {
    padding: 16px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
  }

  .stock-summary.danger {
    border-color: #fca5a5;
  }

  .stock-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
  }

  .stock-main {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
  }

  .stock-main .label {
    font-size: 14px;
    color: #6b7280;
  }

  .stock-main .value {
    font-size: 26px;
    font-weight: 700;
    color: #111827;
  }

  .stock-sub {
    margin-top: 6px;
    font-size: 13px;
    color: #6b7280;
  }

  .plus {
    color: #16a34a;
  }

  .minus {
    color: #dc2626;
  }

  .main-ui-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    border-top: 4px solid #f59e0b;
  }

  /* ===== Header ===== */
  .page-header {
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
  }

  .page-title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    align-items: center;
    gap: 10px;
  }

  .page-title i {
    color: #f59e0b;
    font-size: 20px;
  }

  .page-subtitle {
    margin-top: 4px;
    font-size: 14px;
    color: #6b7280;
  }

.paddingtextbox{
  margin-bottom:20px;
  margin: 0 auto;
}

.btn-save{
  background:#11794f;
  color:#fff;
  border:none;
  padding:12px 28px;
  border-radius:10px;
  font-size:15px;
  font-weight:600;
  letter-spacing:.3px;
  transition:.2s;
}

.btn-save:hover{
  background:#0f6b45;
  transform:translateY(-1px);
  box-shadow:0 8px 18px rgba(0,0,0,.15);
}

.btn-save:active{
  transform:scale(.98);
}

.main-footer{
    margin-top:auto;

    padding:14px 30px;

    background:white;

    border-top:1px solid #e5e7eb;

    display:flex;

    justify-content:space-between;

    align-items:center;

    font-size:13px;

    color:#6b7280;

    box-shadow:0 -2px 8px rgba(0,0,0,0.05);
}

html{
  height:100%;
}
.main-content{
    flex:1 0 auto;
    background-color:white;
    padding-bottom:20px;
}

/* ---------- PERSONNEL (Teal) ---------- */

body.page-personnel .boxhead{
  border-left:6px solid #0d9488;
  color:#0d9488;
}

body.page-personnel thead tr{
  background:#f0fdfa;
  color:#115e59;
  border-bottom:2px solid #99f6e4;
}

body.page-personnel .buttonAdd{
  background:#0d9488;
  border-color:#0f766e;
}

body.page-personnel .buttonAdd:hover{
  background:#0f766e;
}


/* ---------- CLINIC (Medical Blue) ---------- */

body.page-clinic .boxhead{
  border-left:6px solid #2563eb;
  color:#2563eb;
}

body.page-clinic thead tr{
  background:#eff6ff;
  color:#1e3a8a;
  border-bottom:2px solid #bfdbfe;
}

body.page-clinic .buttonAdd{
  background:#2563eb;
  border-color:#1d4ed8;
}

body.page-clinic .buttonAdd:hover{
  background:#1d4ed8;
}

/* ---------- MEDICINE (Soft Purple) ---------- */

body.page-medicine .boxhead{
  border-left:6px solid #7c3aed;
  color:#7c3aed;
}

body.page-medicine thead tr{
  background:#f5f3ff;
  color:#5b21b6;
  border-bottom:2px solid #ddd6fe;
}

body.page-medicine .buttonAdd{
  background:#7c3aed;
}

body.page-medicine .buttonAdd:hover{
  background:#6d28d9;
}


/* ---------- DISEASE (Soft Rose) ---------- */

body.page-disease .boxhead{
  border-left:6px solid #e11d48;
  color:#e11d48;
}

body.page-disease thead tr{
  background:#fff1f2;
  color:#9f1239;
  border-bottom:2px solid #fecdd3;
}

body.page-disease .buttonAdd{
  background:#e11d48;
}

body.page-disease .buttonAdd:hover{
  background:#be123c;
}


body.page-setup .boxhead{
  border-left:6px solid #f59e0b;
  color:#b45309;
}

body.page-setup thead tr{
  background:#fffbeb;
  color:#92400e;
  border-bottom:2px solid #fde68a;
}

body.page-setup .buttonAdd{
  background:#f59e0b;
  border-color:#d97706;
  color:white;
}

body.page-setup .buttonAdd:hover{
  background:#d97706;
}
/* Common Adjustments เพื่อให้ดูโมเดิร์นขึ้น */
.boxhead {
    padding: 10px 15px;
    background: #f8f9fa;
}

.table thead th {
    border: none;
    text-align: center;
}

.buttonAdd {
    color: white;
    transition: all 0.3s;
    border-radius: 5px;
    padding: 8px 15px;
}

.buttonAdd:hover {
    filter: brightness(90%);
    transform: translateY(-1px);
}

.nav-item.active-medicine{
background:#7c3aed;
}

.nav-item.active-personnel{
background:#2563eb;
}

.nav-item.active-clinic{
background:#16a34a;
}

.nav-item.active-disease{
background:#ef4444;
}

table{
border-radius:10px;
overflow:hidden;
}

table thead th{
font-size:13px;
font-weight:600;
}

table tbody tr{
background:white;
transition:0.15s;
}

table tbody tr:hover{
background:#f9fafb;
}

table td{
vertical-align:middle;
}

.action-btn{
width:34px;
height:34px;
border-radius:8px;
background:#f3f4f6;
border:none;
display:flex;
align-items:center;
justify-content:center;
}

.action-btn:hover{
background:#e5e7eb;
}

html.loginpage::before{
content:"";
position:fixed;
inset:0;

background:
linear-gradient(
135deg,
rgba(240,253,244,.9),
rgba(220,252,231,.8),
rgba(187,247,208,.7)
),
url('../image/background/bg1.png');



background-size:cover;
background-position:center;
filter: blur(5px) brightness(.75) contrast(1.15);
transform: scale(1.05);

z-index:-1;
}



html.loginpage::after{
content:"";
position:fixed;
inset:0;

background:radial-gradient(
circle,
transparent 40%,
rgba(0,0,0,.35) 100%
);

z-index:-1;
}





.login-title{
font-size:26px;
font-weight:700;
color:#0f172a;
letter-spacing:.5px;
}

.login-subtitle{
font-size:13px;
color:#64748b;
letter-spacing:2px;
margin-bottom:10px;
}

.centeralignjustify{
display:flex;
align-items:center;
justify-content:center;

}

.logo-wrapper{
display:flex;
justify-content:center;
align-items:center;
margin-bottom:10px;
}
.logocheckdata{
height:85px;

padding:10px 20px;

background:white;
border-radius:14px;

box-shadow:
0 10px 25px rgba(0,0,0,.15);


transition:.3s;
}
.logocheckdata{
height:90px;
margin-bottom:15px;

filter: drop-shadow(0 6px 12px rgba(0,0,0,.25));

transition:.3s;
}

.logocheckdata:hover{
transform:scale(1.05);
}

.logo-wrapper{
display:flex;
justify-content:center;
align-items:center;
margin-bottom:10px;
}

.logocheckdata{
height:85px;

padding:10px 20px;

background:white;
border-radius:14px;

box-shadow:
0 10px 25px rgba(0,0,0,.15);

margin-bottom:18px;

transition:.3s;
}

.logocheckdata:hover{
transform:translateY(-3px);
box-shadow:
0 18px 35px rgba(0,0,0,.25);
}


.select-modern{

width:100%;
height:50px;

padding:0 16px;

font-size:15px;
color:#0f172a;

border:1px solid #d1d5db;
border-radius:12px;

background-color:white;

appearance:none;

transition:.25s;

cursor:pointer;
}

.select-modern{

background-image:url("data:image/svg+xml;utf8,<svg fill='%2364748b' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");

background-repeat:no-repeat;
background-position:right 14px center;
background-size:18px;
}

.select-modern:hover{
border-color:#94a3b8;
}

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;
}

.select-modern{

height:50px !important;

border-radius:12px !important;

border:1px solid #d1d5db !important;

font-size:15px;

padding:0 16px;

background-color:white;

appearance:none;

cursor:pointer;

background-image:url("data:image/svg+xml;utf8,<svg fill='%2364748b' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");

background-repeat:no-repeat;
background-position:right 14px center;
background-size:18px;

transition:.2s;
}


.clinic-row{

display:flex;
align-items:center;

width:95%;
height:50px;

border:1px solid #d1d5db;
border-radius:12px;

overflow:hidden;
background:white;

}

.clinic-label{

padding:0 16px;
font-size:14px;
color:#475569;

border-right:1px solid #e5e7eb;

background:#f8fafc;
}
.clinic-row{

display:flex;
align-items:center;

width:280px;   /* กำหนดความกว้างจริง */
height:50px;

margin:0 auto; /* ทำให้อยู่กลาง */

border:1px solid #d1d5db;
border-radius:12px;

overflow:hidden;
background:white;

}
.clinic-select{

flex:1;

height:100%;

border:none;
outline:none;

padding:0 14px;

font-size:15px;
color:#0f172a;

background:transparent;

appearance:none;

background-image:url("data:image/svg+xml;utf8,<svg fill='%2364748b' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");

background-repeat:no-repeat;
background-position:right 12px center;
background-size:18px;

cursor:pointer;

}

.clinic-row:hover{

border-color:#94a3b8;

}

#username,#password{
letter-spacing:1px;
}

#username::placeholder , #password::placeholder{
letter-spacing:1.2px;
color:#94a3b8;
}

#password::placeholder{

font-size:17px;

letter-spacing:1.5px;

color:#94a3b8;

}


.page-main-title{
  margin:10px 0 20px 0;
  padding:0 20px;
}



.title-text i{
  color:#22c55e;
}

.title-text{
  font-size:24px;
  font-weight:700;
  color:#1f2937;
  display:flex;
  align-items:center;
  justify-content:center;   /* เพิ่มบรรทัดนี้ */
  gap:10px;
}

.title-subtext{
  font-size:14px;
  color:#6b7280;
  margin-top:4px;
  text-align:center;        /* อันนี้ให้ subtitle อยู่กลาง */
}

.btn-excel{
background: linear-gradient(135deg,#28c76f,#1cc88a) !important;
color:white !important;
border:none !important;
border-radius:8px !important;
padding:6px 16px !important;
font-size:14px !important;
font-weight:600 !important;
box-shadow:0 3px 8px rgba(0,0,0,0.15);
transition:all .2s ease;
}

.btn-excel:hover{
transform:translateY(-1px);
box-shadow:0 5px 12px rgba(0,0,0,0.2);
background: linear-gradient(135deg,#1cc88a,#17a673) !important;
}

.btn-excel:active{
transform:translateY(0px);
box-shadow:0 2px 5px rgba(0,0,0,0.15);
}

.clinic-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  border-radius: 999px;
   background: #f5576c;
}


#drugSuggestion{
  position:absolute;
  width:400px;
  z-index:9999;
  max-height:250px;
  overflow-y:auto;
}

#drugSuggestion .list-group-item{
  cursor:pointer;
}

#drugSuggestion .list-group-item:hover{
  background:#eef6ff;
}


