/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

@font-face {
  font-family: 'Prompt', sans-serif;
  font-weight: 400;
  font-style: normal;
}

    /* ปรับแต่งกล่อง Dropdown */
    .ui-autocomplete {
        font-family: 'Prompt'; /

    }

    /* ปรับแต่งแต่ละบรรทัด */
    .ui-menu-item div {
        font-family: 'Prompt'; /
    }

    /* (แถม) เปลี่ยนสีตอนเอาเมาส์ชี้ */
    .ui-state-active,
    .ui-widget-content .ui-state-active,
    .ui-widget-header .ui-state-active,
    a.ui-button:active,
    .ui-button:active,
    .ui-button.ui-state-active:hover {
        background-color: #007bff !important; /* สีพื้นหลังตอนเลือก */
        color: #ffffff !important;            /* สีตัวหนังสือตอนเลือก */
        border-color: #007bff !important;
    }


body {
  font-family: 'Prompt', sans-serif;
  font-weight: 400;
  font-style: normal;
  background-color: #ffd200;
}

input:focus, textarea:focus, select:focus , button:focus{
        outline: none;
    }
h1 {
  font-size: 18px;
  font-weight: Bold; 
}
h2 {
  font-weight: Bold; 
  font-size: 18px;
}
h3 {
  font-weight: Bold; 
  font-size: 30px;
}
ol, ul {
  list-style: none;
}
a:link, a:visited, a:hover, a:active{ 
  color: #000 ;
}

.menu_a {
  font-size: 16px;
}
.menu_a a:link,
.menu_a a:visited, 
.menu_a a:hover, 
.menu_a a:active { 
    color: #fff; 
}

.border-bottom {
  border-bottom: 1px solid #4b545c;
}

.log_link a:link,
.log_link a:visited, 
.log_link a:hover, 
.log_link a:active { 
    color: #f83636; 
}


#banner {
  background-color: #2b5288;
  border-bottom: 5px solid #848383;
}
#banner li {
  padding-left: 10px;
}
.bg-banner {
  background-color: #A21514;
  color: #FFFFFF;
}

#content {
  background-color: #fff;
  padding-top: 30px;
}
#content #formSent {
  text-align: center;
  padding-bottom: 50px;
}
.contentHome {
  text-align: center;
}
.contentHome p {
  color: darkblue;
}
.contentHome p a{
  color: red;
}

#expireMessage {
  border: none;
  background-color: #00BFFF;
}
#login{
  text-align: center;
  padding-top: 30vh;
  padding-bottom: 30vh;
  height: 100vh;
  background-color: #a6e9ff;
}
#login input[type="submit"] {
    background-color: #4CAF50; /* Green */
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
   /* border-radius : 5px;*/
}

#showData{
  text-align: center;
  padding-top: 30px;
  padding-bottom: 100px;
  background-color: #a6e9ff;
  height: 100%;
}
#showData h4{
  text-align: left;
  padding-left: 10px;
  line-height: 30px;
  font-size: 16px;
}

#showEdit h4{
  font-size: 18px;
  text-align: center;
}
#showEdit table th,td{
  padding-left: 10px;
  padding-right: 10px;
}
th .tb_head{
  text-align: center;
}
.tb_head{
  text-align: center;
  font-weight: bold;
}
.tb_in_center{
  text-align: center;
  vertical-align: text-top;
}
.tb_in_left{
  text-align: left;
  vertical-align: text-top;
}
.tb_in_black{
  color: #000;
}
.tb_in_red{
  color: red;
}
.tb_in_green{
  color: green;
}
.tb_in_blue{
  color: blue;
}
table .tb_nonborder{
  border: none;
}
table tr td a{
    display:block;
    height:100%;
    width:100%;
} 
table th{
  padding-top: 10px;
  padding-bottom: 10px;
} 
table tr td{
  padding-top: 10px;
  padding-bottom: 10px;
} 
.text-center{
  text-align: center;
}
.button{
  text-align: center;
}
#showEditsave p{
  text-align: center;
}
#importData p{
  text-align: center;
}
.textRed{
  color: red;
  padding-left: 65px;
}
.textBlack{
  color: black;
}
.textRed_A {
  font-family: 'Prompt', sans-serif;
  padding-left: 5px;
}
.textWhite{
  color: #ffffff;
  padding-left: 65px;
}
.textWhite_A {
  font-family: 'Prompt', sans-serif;
  padding-left: 5px;
}
.text-bottom {
 padding-bottom: 100px;
}
.logo-user{
  font-size: 150px;
}

[class*=sidebar-dark-] {
    background-color: #A21514;
}
[class*=sidebar-dark-] .nav-treeview>.nav-item>.nav-link.active, [class*=sidebar-dark-] .nav-treeview>.nav-item>.nav-link.active:focus, [class*=sidebar-dark-] .nav-treeview>.nav-item>.nav-link.active:hover {
  
  color: #FFFFFF;
  background-color: #ff8080;
}
[class*=sidebar-dark-] .nav-header {
  color: #FFFFFF;
}
[class*=sidebar-dark-] .nav-treeview>.nav-item>.nav-link {
  color: #FFFFFF;
}
[class*=sidebar-dark] .brand-link {
  border-bottom: none;
}
.textWhite{
  color: white;
}
.wait {
  color: #61AA7D;
}
.succes {
  color: #EB3F49;
}
#showFile{
  text-align: center;
}
.tb_member_in_left{
  color: #000;
  text-align: left;
  border-bottom: 1px solid #007777;
}

.email_left_header{
  font-weight: bold;
  color: #000;
  text-align: left;
}
.email_left{
  color: #000;
  text-align: left;
}
#email input[type="submit"] {
    background-color: #4CAF50; /* Green */
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    font-family: 'Prompt', sans-serif;
   /* border-radius : 5px;*/
}
#email input[type="reset"] {
    background-color: #DC143C; /* Green */
    border: none;
    color: white;
    padding: 10px 20px;
    margin-left: 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    font-family: 'Prompt', sans-serif;
   /* border-radius : 5px;*/
}
.newnormal{
  position: fixed;
  bottom: 62px;
  right: 0px;
}
.newnormal img{
  text-align: center;
}
#e-studentloan {
  text-align: center;

}
#e-studentloan button {
    /*background-color: #4CAF50; /* Green */
    border: none;
    color: white;
    padding: 35px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 20px;
    width: 600px;
}
#loan {
  text-align: center;
}
#loan button {
    /*background-color: #4CAF50; /* Green */*/
    border: none;
    color: white;
    padding: 35px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 20px;
    width: 600px;
}
#volunteer {
  text-align: center;
}
#volunteer button {
    /*background-color: #4CAF50; /* Green */*/
    border: none;
    color: black;
    padding: 35px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 20px;
    width: 600px;
}
#reg {
  text-align: center;
}
#reg button {
    /*background-color: #4CAF50; /* Green */*/
    border: none;
    color: white;
    padding: 35px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 20px;
    width: 600px;
}
#other {
  text-align: center;
}
#other button {
    /*background-color: #4CAF50; /* Green */*/
    border: none;
    color: white;
    padding: 35px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 20px;
    width: 600px;
}
#dataFrom{
  padding-top: 30px;
  padding-bottom: 30vh;
}
#dataFrom h1{
  text-align: center;
}

/*Animation checkmark*/
.checkmark__circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: #7ac142;
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: block;
  stroke-width: 2;
  stroke: #fff;
  stroke-miterlimit: 10;
  margin: 5% auto;
  box-shadow: inset 0px 0px 0px #7ac142;
  animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark__check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}
@keyframes scale {
  0%, 100% {
    transform: none;
  }
  50% {
    transform: scale3d(1.1, 1.1, 1);
  }
}
@keyframes fill {
  100% {
    box-shadow: inset 0px 0px 0px 30px #7ac142;
  }
}

svg {
  width: 100px;
  display: block;
  margin: 40px auto 0;
}

.path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 0;
  &.circle {
    -webkit-animation: dash .9s ease-in-out;
    animation: dash .9s ease-in-out;
  }
  &.line {
    stroke-dashoffset: 1000;
    -webkit-animation: dash .9s .35s ease-in-out forwards;
    animation: dash .9s .35s ease-in-out forwards;
  }
  &.check {
    stroke-dashoffset: -100;
    -webkit-animation: dash-check .9s .35s ease-in-out forwards;
    animation: dash-check .9s .35s ease-in-out forwards;
  }
}

@-webkit-keyframes dash {
  0% {
    stroke-dashoffset: 1000;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes dash {
  0% {
    stroke-dashoffset: 1000;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@-webkit-keyframes dash-check {
  0% {
    stroke-dashoffset: -100;
  }
  100% {
    stroke-dashoffset: 900;
  }
}

@keyframes dash-check {
  0% {
    stroke-dashoffset: -100;
  }
  100% {
    stroke-dashoffset: 900;
  }
}


#loader{
  margin-bottom: 50px;
}

.loader {
  margin-left: auto;
  margin-right: auto;
  border: 16px solid #e3e3e3; /* Light grey */
  border-top: 16px solid #3498db; /* Blue */
  border-radius: 50%;
  width: 120px;
  height: 120px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.table-lineborder th{
  border: solid 1px;
}
.table-lineborder td{
  border: solid 1px;
}
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {display:none;}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}
.centerrow {
  padding-top: 15vh;
  padding-bottom: 20vh;
  justify-content: space-evenly;
  text-align: center;
}
.text_code {
  font-size: 50px;
  color: red;
}


#signup{
  color: #26387F;
  text-align: center;
  padding-top: 5vh;
  padding-bottom: 10vh;
}
#signup input[type="submit"] {
    background-color: #4CAF50; /* Green */
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
   border-radius : 5px;
}
#signup input[type="reset"] {
    background-color: #DC143C; /* Green */
    border: none;
    color: white;
    padding: 10px 20px;
    margin-left: 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
   border-radius : 5px;
}
.signup {
  color: #26387F;
}
.labelname {
  background-color: #A21514;
  padding: 9px;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  border: solid 1px #A21514;
  font-size: 16px;
  color: #fff;

}
.text_username{
  padding: 9px;
  background-color: #fff;
  border: 0;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
  border: solid 1px #A21514;
  font-family: 'Prompt', sans-serif;
  color: #000;
  padding-right: 35px; 
  text-transform: uppercase;
}
.text_password{
  padding: 9px;
          padding-right: 35px; 
  background-color: #fff;
  border: 0;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
  border: solid 1px #A21514;
  font-family: 'Prompt', sans-serif;
}
.text_email{
  text-transform: uppercase;
}
.text_labele{
  font-weight: bold;
}
.password-wrapper {
    position: relative;
    display: inline-block;
}
.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    z-index: 10;
}
/* ซ่อนปุ่มดูรหัสผ่านของ Browser (Edge/IE) */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

.logout {
  color: red;
}


#footer {
  bottom: 0px;
  left: 0px;
  right: 0px;
  padding-top: 10px;
  padding-bottom: 5px;
  background-color: #A21514;
  color: #fff;
  font-size: 12px;
  /* position: absolute; */
    /* width: 100%; */
    /* height: auto;  */
    /* หรือกำหนดความสูงที่แน่นอนถ้าต้องการ */
    
}
.footer-main {
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1032;
}
.footer-fix{
  position: fixed;
}
#footer p {
text-align: center;
margin: 0px;
}
.bg-footer {
  background-color: #00BFFF;
}
.main-footer {
  font-size: 12px;
}
.cra-card-title{
  font-weight: bold;
}
/* device screen */
@-ms-viewport {
  width: device-width;
}
.visible-xs,
.visible-sm,
.visible-md,
.visible-lg {
  display: none !important;
}
.visible-xs-block,
.visible-xs-inline,
.visible-xs-inline-block,
.visible-sm-block,
.visible-sm-inline,
.visible-sm-inline-block,
.visible-md-block,
.visible-md-inline,
.visible-md-inline-block,
.visible-lg-block,
.visible-lg-inline,
.visible-lg-inline-block {
  display: none !important;
}
@media (max-width: 767px) {
  .visible-xs {
    display: block !important;
  }
  table.visible-xs {
    display: table;
  }
  tr.visible-xs {
    display: table-row !important;
  }
  th.visible-xs,
  td.visible-xs {
    display: table-cell !important;
  }
}
@media (max-width: 767px) {
  .visible-xs-block {
    display: block !important;
  }
}
@media (max-width: 767px) {
  .visible-xs-inline {
    display: inline !important;
  }
}
@media (max-width: 767px) {
  .visible-xs-inline-block {
    display: inline-block !important;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  .visible-sm {
    display: block !important;
  }
  table.visible-sm {
    display: table;
  }
  tr.visible-sm {
    display: table-row !important;
  }
  th.visible-sm,
  td.visible-sm {
    display: table-cell !important;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  .visible-sm-block {
    display: block !important;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  .visible-sm-inline {
    display: inline !important;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  .visible-sm-inline-block {
    display: inline-block !important;
  }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .visible-md {
    display: block !important;
  }
  table.visible-md {
    display: table;
  }
  tr.visible-md {
    display: table-row !important;
  }
  th.visible-md,
  td.visible-md {
    display: table-cell !important;
  }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .visible-md-block {
    display: block !important;
  }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .visible-md-inline {
    display: inline !important;
  }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .visible-md-inline-block {
    display: inline-block !important;
  }
}
@media (min-width: 1200px) {
  .visible-lg {
    display: block !important;
  }
  table.visible-lg {
    display: table;
  }
  tr.visible-lg {
    display: table-row !important;
  }
  th.visible-lg,
  td.visible-lg {
    display: table-cell !important;
  }
}
@media (min-width: 1200px) {
  .visible-lg-block {
    display: block !important;
  }
}
@media (min-width: 1200px) {
  .visible-lg-inline {
    display: inline !important;
  }
}
@media (min-width: 1200px) {
  .visible-lg-inline-block {
    display: inline-block !important;
  }
}
@media (max-width: 767px) {
  .hidden-xs {
    display: none !important;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  .hidden-sm {
    display: none !important;
  }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .hidden-md {
    display: none !important;
  }
}
@media (min-width: 1200px) {
  .hidden-lg {
    display: none !important;
  }
}
.visible-print {
  display: none !important;
}
@media print {
  .visible-print {
    display: block !important;
  }
  table.visible-print {
    display: table;
  }
  tr.visible-print {
    display: table-row !important;
  }
  th.visible-print,
  td.visible-print {
    display: table-cell !important;
  }
}
.visible-print-block {
  display: none !important;
}
@media print {
  .visible-print-block {
    display: block !important;
  }
}
.visible-print-inline {
  display: none !important;
}
@media print {
  .visible-print-inline {
    display: inline !important;
  }
}
.visible-print-inline-block {
  display: none !important;
}
@media print {
  .visible-print-inline-block {
    display: inline-block !important;
  }
}
@media print {
  .hidden-print {
    display: none !important;
  }
}
/* Loading*/
.lds-facebook {
  margin-top: 100px;
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
  text-align: center;
}
.lds-facebook div {
  display: inline-block;
  position: absolute;
  left: 8px;
  width: 16px;
  background: #0c599c;
  animation: lds-facebook 1.2s cubic-bezier(0, 0.5, 0.5, 1) infinite;
}
.lds-facebook div:nth-child(1) {
  left: 8px;
  animation-delay: -0.24s;
}
.lds-facebook div:nth-child(2) {
  left: 32px;
  animation-delay: -0.12s;
}
.lds-facebook div:nth-child(3) {
  left: 56px;
  animation-delay: 0;
}
@keyframes lds-facebook {
  0% {
    top: 8px;
    height: 64px;
  }
  50%, 100% {
    top: 24px;
    height: 32px;
  }
}
.text-badge{
  font-size: 16px;
  font-weight: normal;

}

.menu-left-text-black{
  font-size: 15px;
}

#backToTopBtn {
  position: fixed; /* ให้ลอยอยู่กับที่ ไม่เลื่อนตาม */
  bottom: 20px;    /* ห่างจากขอบล่าง 20px */
  right: 30px;     /* ห่างจากขอบขวา 30px */
  z-index: 9999;   /* ให้ลอยอยู่เหนือทุกอย่าง */
  border: none;
  outline: none;
  background-color: #26387F; /* สีเขียว (เปลี่ยนได้ตามใจชอบ) */
  color: white;    /* สีลูกศร */
  cursor: pointer;
  padding: 15px;   /* ความใหญ่ของปุ่ม */
/* ทำเป็นวงกลม */
  font-size: 10px; /* ขนาดไอคอน */
  box-shadow: 2px 2px 5px rgba(0,0,0,0.9); /* เงาปุ่ม */
  transition: 0.1s; /* เอฟเฟกต์ตอนเอาเมาส์ชี้ */
}

#backToTopBtn:hover {
  background-color: #A21514; /* เปลี่ยนสีเข้มขึ้นตอนเอาเมาส์ชี้ */
  transform: scale(1.1); /* ขยายใหญ่ขึ้นนิดนึง */
}
.sso-button {
    display: flex;
    align-items: center;
    justify-content: center; /* เปลี่ยนจาก left เป็น center เพื่อให้ไอคอนกับข้อความอยู่กลางปุ่ม */
    width: 250px;           /* ปรับความกว้างให้เหมาะสม */
    margin: 20px auto;      /* ใส่ auto ซ้าย-ขวา เพื่อให้ปุ่มอยู่กึ่งกลางหน้าจอ */
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 4px;
    text-decoration: none;
    color: #495057;
    font-size: 16px;
}
.sso-button:hover {
    background-color: #e2e6ea;
    text-decoration: none;
}
.sso-icon {
    width: 24px;
    margin-right: 15px;
    opacity: 0.7; /* ปรับไอคอนให้ดูนุ่มนวลขึ้น */
}

