@font-face {
  font-family: "CS PraJad";
  src: url(../fonts/CSPraJad.otf);
}

html {
  height: 100%;
  overflow: hidden;
}

body {
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: cover;
}

/* div {
    padding: 5px;
} */

::placeholder {
  /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #ccc;
  opacity: 1;
  /* Firefox */
}

:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: #ccc;
}

::-ms-input-placeholder {
  /* Microsoft Edge */
  color: #ccc;
}

.select2-container--default .select2-selection--single {
  height: 34px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 32px !important;
}

.select2-container--default.select2-container--disabled .select2-selection--single {
  background: transparent !important;
  border: none;
  border-bottom: 1px solid #eee;
  border-radius: 0px;
}

.select2-container--disabled .select2-selection__arrow {
  display: none;
}

button:focus,
a:focus {
  outline: none !important;
  box-shadow: none;
}

.info {
  padding: 20px 0%;
}

.info>* input,
.info>* textarea {
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  text-indent: 8px;
  width: 100%;
  height: 34px;
  margin-top: 10px;
  padding: 10px 10px 2px 10px;
}

.info>* textarea {
  height: auto;
}

.info>* label {
  position: absolute;
  top: 0;
  left: 30px;
  padding: 0 10px;
  background: white;
  color: darkslategray;
  font-size: 13px;
}

.detail-header>div {
  display: inline-block;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

.row {
  margin: 0;
}

.detail-detail {
  text-overflow: ellipsis;
  overflow: hidden;
}

.detail-row {
  border-bottom: 1px solid #ddd;
}

/* input[type="text"] {
    border-width: 0px 0px 1px 0px !important;
} */

input[type="text"]:focus,
textarea:focus,
select:focus {
  border-color: rgb(77, 144, 254);
  outline: 0 none;
}

/* input[type="text"]:disabled,
input[type="number"]:disabled,
textarea:disabled {
    background: #F3F3F3;
    opacity: 0.8;
} */

.label-disabled {
  min-width: 153px;
  text-indent: 8px;
  border: 1px solid #aaa;
  border-width: 0px 0px 1px 0px;
  opacity: 0.7;
}

.fa-calendar {
  font-size: 22px;
}

.fa-calendar:hover {
  color: #337ab7;
  opacity: 1;
  transform: scale(1.1);
}

.show-date-picker {
  display: flex;
  align-items: center;
  gap: 5px;
}

.show-date-picker>input {
  width: calc(95% - 25px);
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  /* margin-top: 10px; */
  /* padding: 10px 10px 2px 10px; */
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  background-color: transparent;
}

.show-date-picker-center {
  position: absolute;
  top: calc(50% + 3px);
  transform: translateY(-50%);
}

.show-calendar {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.show-calendar-form-group {
  position: absolute;
  bottom: 0;
  right: 0;
  padding-right: 20px;
}

.btn-date:hover {
  transform: none;
}

.overlay_list_detail {
  background: none;
  width: 100%;
  /* height: calc(100% - 130px); */
  height: calc(100% - 50px);
  background: pink;
  overflow: hidden;
  overflow-y: scroll;
}

.first {
  position: relative;
  width: 90%;
  /* background: antiquewhite; */
  display: table;
  margin: auto;
  /* padding: 42px 0; */
}

.text-right {
  text-align: right;
}

.box-info {
  width: 90%;
  margin: auto;
}

.option {
  display: grid;
  z-index: 2;
}

.option>* {
  /* display: inline-block; */
  width: auto;
}

.option-status {
  display: flex;
  background-color: #e9ecef;
  margin: 0 auto;
  margin-bottom: 20px;
  border-radius: 10px;
  border: 1px solid #ddd;
}

.option-status>div {
  display: inline-block;
  padding: 5px 0;
  /* width: 140px; */
}

.edit-status>* {
  display: inline-block;
}

.slice-first {
  position: relative;
  display: block;
  width: 100%;
  margin: 10px 0;
  padding: 0 20px;
}

.slice-second {
  position: relative;
  display: inline-block;
  vertical-align: top;
  width: 49%;
  margin: 10px 0;
  padding: 0 20px;
}

.slice-third {
  position: relative;
  display: inline-block;
  vertical-align: top;
  width: 32%;
  margin: 15px 0;
  margin: 10px 0;
  padding: 0 20px;
}

.slice-fourth {
  position: relative;
  display: inline-block;
  vertical-align: top;
  width: 24.5%;
  margin: 15px 0;
  margin: 10px 0;
  padding: 0 20px;
}

.slice-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  height: 38px;
  border: 1px solid #cfcfcf;
  border-radius: 3px;
  margin-top: 10px;
  padding: 10px 10px 2px 10px;
}

.slice-center {
  display: flex;
  justify-content: center;
}

.slice-text-center {
  position: absolute !important;
  width: 120px;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%);
}

.radio {
  margin-bottom: 0px !important;
  margin-top: 2px !important;
  margin: 0.5rem;
}

.radio input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.radio input[type="radio"]+.radio-label:before {
  content: "";
  /* background: #f4f4f4; */
  background: #fff;
  border-radius: 100%;
  border: 1px solid #b4b4b4;
  display: inline-block;
  width: 1.4em;
  height: 1.4em;
  position: relative;
  top: -0.2em;
  margin-right: 1em;
  vertical-align: top;
  cursor: pointer;
  text-align: center;
  -webkit-transition: all 250ms ease;
  transition: all 250ms ease;
}

.radio input[type="radio"]:checked+.radio-label:before {
  background-color: #3197ee;
  box-shadow: inset 0 0 0 4px #f4f4f4;
}

.radio input[type="radio"]:focus+.radio-label:before {
  outline: none;
  border-color: #3197ee;
}

/* .radio input[type="radio"]:disabled+.radio-label:before {
  box-shadow: inset 0 0 0 4px #f4f4f4;
  border-color: #b4b4b4;
  background: #b4b4b4;
} */
.radio input[type="radio"]:disabled+.radio-label:before {
  background: #fff;
  border-color: #b4b4b4;
  box-shadow: none;
  cursor: not-allowed;
  opacity: .7;
}

.radio input[type="radio"]:checked:disabled+.radio-label:before {
  background: #fff;
  border-color: #b4b4b4;
  box-shadow: inset 0 0 0 4px #b4b4b4;
  opacity: 1;
}

.radio input[type="radio"]+.radio-label:empty:before {
  margin-right: 0;
}

.radio input[type="radio"]+.radio-label.lws-radio-label:before {
  display: none;
}

.option-status input[type="radio"]:checked+label {
  background-color: #ffffff;
  /* เปลี่ยนเป็นสีขาว */
  color: #1a4d80;
  /* ตัวหนังสือสีน้ำเงินธีมหลัก */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  /* เพิ่มเงาให้ดูเด้งออกมา */
}

.lws-radio-label {
  flex: 1;
  text-align: center;
  padding: 6px 30px !important;
  /* padding: 8px 5px !important; */
  margin: 0 !important;
  cursor: pointer;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  transition: all 0.2s ease-in-out;
  /* background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15); */
}

.lws-radio-label:hover {
  background-color: rgba(255, 255, 255, 0.4) !important;
  color: #333 !important;
}

input[type="radio"]:checked+.lws-radio-label:hover {
  background-color: #ffffff !important;
  cursor: default;
}

.checkbox input[type="checkbox"] {
  width: 10px;
  height: 10px;
  margin-left: -26px !important;
}

.checkbox,
.radio {
  margin-bottom: 16px;
  padding-left: 12px;
}

.checkbox label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* .width-name {
    width: 50%;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 2vh;
    margin-top: 2vh;
} */

.line-odd {
  display: flow-root;
  border-radius: 5px;
  background: aliceblue;
  background: #ffe6fa;
  background: #e6fffa;
}

/* .line-odd > * input, */
.line-odd>* label {
  background: aliceblue;
  background: #ffe6fa;
  background: #e6fffa;
}

.toggle1_fam:hover,
.toggle2_fam:hover,
.toggle1_cert:hover,
.toggle2_cert:hover {
  cursor: pointer;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* input[type="number"] {
  -moz-appearance: textfield;
  outline: 0 none;
  border-width: 0px 0px 1px 0px;
} */

input:-internal-autofill-selected {
  background-color: white;
}

.title {
  position: relative;
  height: 50px;
  font-size: 33px;
  font-weight: 400;
  text-align: center;
  width: 90%;
  margin: auto;
  /* margin-top: 80px; */
}

.title-detail {
  position: absolute;
  width: inherit;
  top: 55%;
  left: 52%;
  transform: rotate(0deg) translate(-50%, -50%);
  font-size: 46px;
  font-weight: 700;
  text-shadow: #4d94ff 3px 3px 3px;
}

.title-bg1 {
  height: 100%;
  position: absolute;
  top: 50%;
  left: calc(52% - 237px);
  transform: translate(-50%, -50%);
  z-index: 2;
}

.title-bg2,
.title-bg3 {
  width: 64px;
  height: 50%;
  position: absolute;
  bottom: 0%;
  left: calc(52% - 338px);
  /* background-image: url(/lws/public/images/bg6.png); */
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  z-index: 1;
}

.btn-date {
  cursor: pointer;
}

table.dataTable {
  width: 92% !important;
  margin: 0 4% !important;
}

.dataTable thead tr th {
  font-weight: bold !important;
  color: #1a4d80 !important;
}

.bf-btn-info {
  display: inline-block;
}

.lws-button {
  display: inline-block;
  width: 100px;
  line-height: 36px;
  text-align: center;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  box-shadow: #4d94ff 1.95px 1.95px 2.6px;
  background: #0a4b7f;
  color: #fff;
}

.lws-button:focus,
.lws-button:hover {
  color: white !important;
  text-decoration: none !important;
  transform: translateY(2px);
  box-shadow: inset -4px -4px 10px rgba(255, 255, 255, 0.45),
    inset 4px 4px 10px rgba(0, 0, 0, 0.35);
  background: #053a68;
}

.lws-button,
.lws-button:link,
.lws-button:visited,
.lws-button:hover,
.lws-button:active {
  text-decoration: none !important;
  color: white !important;
}

.lws-button-info {
  display: inline-block;
  width: 100px;
  line-height: 36px;
  text-align: center;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  box-shadow: #053a68 1.95px 1.95px 2.6px;
  background: #e5e7eb;
  color: #374151;
}

.lws-button-info a:focus,
.lws-button-info:hover {
  /* color: white !important; */
  text-decoration: none !important;
  transform: translateY(2px);
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.25),
    /* เงาด้านใน */
    inset -2px -2px 5px rgba(255, 255, 255, 0.8);
  /* ไฮไลท์ */
  /* background: #d1d5db; */
  background: linear-gradient(#f0f3f5, #d4d8dc);
}

.btn-light:hover {
  color: #212529;
  background-color: #e2e6ea;
  border-color: #dae0e5;
}

body.lws-bg {
  background-color: #f0f3f5;
  /* font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; */
}

.lws-wrapper {
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 50px;
}

.lws-container-head {
  flex: 0 0 auto;
  position: sticky;
  width: 100%;
  top: 0;
  z-index: 1000;
  background: #fff;
  padding: 5px 15px;
  z-index: 2;
}

.lws-container {
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
  width: 90%;
  margin: auto;
}

.lws-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #003366;
  margin-top: 15px;
  border-left: 5px solid #003366;
  padding-left: 15px;
}

.lws-card {
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  margin-bottom: 30px;
}

.lws-card>div {
  margin-bottom: 3px;

}

.lws-mb {
  margin-bottom: 3px !important;
}

.lws-mb-10 {
  margin-bottom: 10px !important;
}

.lws-mr {
  margin-right: 3px !important;
}

.lws-ml {
  margin-left: 3px !important;
}

.lws-card>.panel-heading {
  background-color: #003366 !important;
  /* พื้นหลังน้ำเงินเข้ม */
  color: #ffffff !important;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 8px 8px 0 0;
}

.lws-card>.panel-body {
  padding: 25px;
  background-color: #ffffff;
}

.lws-padding-bottom {
  padding-bottom: 20px;
}

.form-group label {
  color: #888;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  padding-right: 20px;
  padding-left: 0px !important;
}

.form-control {
  /* border: 1px solid #ccd6dd;
  border-radius: 4px;
  height: 40px;
  box-shadow: none;
  transition: border-color 0.2s; */
  border-radius: 6px !important;
}

.form-control:focus {
  border-color: #003366;
  box-shadow: 0 0 8px rgba(0, 51, 102, 0.15);
}

.lws-btn-default {
  background: #ffffff !important;
  /* color: #555 !important;
  border: 1px solid #e0e0e0 !important;
  padding: 8px 18px !important; 
  transition: all 0.3s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); */
  border-radius: 8px !important;
  font-weight: 500;
  text-decoration: none !important;
  color: #4a4a4a !important;
  /* border: 1px solid #d1d1d1 !important; */
  border: 1px solid #004488 !important;
  /* padding: 6px 20px !important; */
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.lws-btn-default:hover {
  /* background: #f8f9fa !important;
  border-color: #003366 !important;
  color: #003366 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08); */

  background: #ffffff !important;
  border-color: #004488 !important;
  color: #004488 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 68, 136, 0.12);
}

.lws-btn-default:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.lws-btn-submit {
  /* background: linear-gradient(135deg, #003366 0%, #002244 100%) !important; */
  background: linear-gradient(135deg, #004488 0%, #003366 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  /* padding: 6px 20px !important; */
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  /* box-shadow: 0 4px 15px rgba(0, 51, 102, 0.2); */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lws-btn-submit:hover {
  /* background: linear-gradient(135deg, #004488 0%, #003366 100%) !important; */
  /* box-shadow: 0 6px 20px rgba(0, 51, 102, 0.3); */
  background: linear-gradient(135deg, #003366 0%, #002244 100%) !important;
  box-shadow: 0 6px 12px rgba(0, 51, 102, 0.3);
  transform: translateY(-2px);
  color: #fff !important;
}

.lws-btn-submit:active,
.lws-btn-secondary:active,
.lws-btn-success:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.lws-btn-secondary {
  background: #e3f0ff !important;
  color: #003366 !important;
  border: 1px solid #7fb0df !important;
  border-radius: 8px !important;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(0, 51, 102, 0.12);
}

.lws-btn-secondary:hover {
  background: #cfe4fb !important;
  border-color: #4f93d1 !important;
  box-shadow: 0 5px 10px rgba(0, 51, 102, 0.2);
  transform: translateY(-2px);
}

.lws-btn-success {
  background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(40, 167, 69, 0.2);
}

.lws-btn-success:hover {
  background: linear-gradient(135deg, #218838 0%, #19692c 100%) !important;
  box-shadow: 0 6px 12px rgba(40, 167, 69, 0.3);
  transform: translateY(-2px);
}


.lws-btn-info {
  background: #17a2b8;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 6px 20px;
  display: inline-flex;
  align-items: center;
  line-height: normal;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(23, 162, 184, 0.2);
}

.lws-btn-info:hover {
  color: #ffffff !important;
  background: #138496 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(23, 162, 184, 0.3);
}

.lws-btn-info:active {
  transform: translateY(0);
}

.lws-btn-add {
  background-color: transparent;
  color: #0D3B66;
  border: 2px solid #0D3B66;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.lws-btn-add:hover {
  background-color: #E6F0FA;
  color: #0D3B66;
}

.lws-btn-add:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(13, 59, 102, 0.25);
}

.lws-btn-add:active {
  transform: translateY(1px);
}

.lws-btn-reject {
  /* ใช้ Gradient โทนแดง-ส้มอิฐ เพื่อแจ้งเตือน แต่ไม่ดูรุนแรงเกินไป */
  background: linear-gradient(135deg, #e63946 0%, #bd1f2d 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  /* padding: 6px 20px !important; */
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lws-btn-reject:hover {
  /* ตอนเอาเมาส์วาง ให้สีเข้มขึ้นเล็กน้อย */
  background: linear-gradient(135deg, #bd1f2d 0%, #94131f 100%) !important;
  /* ปรับเงาให้เป็นโทนแดงจางๆ เพื่อความสมจริง */
  box-shadow: 0 6px 12px rgba(189, 31, 45, 0.3);
  transform: translateY(-2px);
  color: #fff !important;
}

.lws-btn-reject:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.lws-btn-submit i,
.lws-btn-default i,
.lws-btn-info i,
.lws-btn-add i,
.lws-btn-reject i {
  font-size: 16px;
}

.lws-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  background: #fff;
}

.lws-card .actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.lws-search-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.lws-search-container>div {
  padding: 0;
}

.glyphicon-new-window {
  font-size: 10px;
  color: #003366;
}

#deleteMessage {
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
}

.dt-responsive-wrap {
  width: 100%;
  /* overflow-x: auto; */
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.dt-responsive-wrap table.dataTable,
.dt-responsive-wrap table#table-info {
  /* width: 100% !important; */
  max-width: 100% !important;
}

.dt-responsive-wrap table.dataTable th,
.dt-responsive-wrap table.dataTable td {
  /* white-space: nowrap;    */
  /* ถ้าคุณอยากให้เลื่อนได้แนวนอน */
  white-space: normal;
  word-break: break-word;

}

.form-control[disabled],
.form-control[readonly],
fieldset[disabled] .form-control {
  background-color: transparent !important;
  /* เอาสีเทา Bootstrap ออก */
  border: none !important;
  /* เอาเส้นขอบกล่องออก */
  box-shadow: none !important;
  /* เอาเงาที่ทำให้ดูเหมือนช่องกรอกออก */
  cursor: default;
  /* เปลี่ยนเมาส์ไม่ให้เป็นรูปตัวไอ (I-beam) */
  padding-left: 0 !important;
  /* ชิดซ้ายให้ตรงกับแนว Label */
  color: #333 !important;
  /* ปรับตัวหนังสือให้เข้มชัดเจน (ปกติ readonly จะสีจาง) */
  font-size: 15px;
  border-bottom: 1px solid #eee !important;
  /* เส้นใต้บางๆ สีเทาจาง */
  border-radius: 0 !important;
}

select[disabled] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.toolbar-control,
.toolbar-btn {
  height: 38px;
}

.toolbar-btn {
  width: 100%;
  white-space: nowrap;
}

.status-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status-badge.label-default {
  background-color: #f3f4f6;
  color: #4b5563;
}

.status-badge.label-primary {
  background-color: #dbeafe;
  color: #1d4ed8;
}

.status-badge.label-success {
  background-color: #dcfce7;
  color: #16a34a;
}

.status-badge.label-warning {
  background-color: #fef3c7;
  color: #d97706;
}

.status-badge.label-danger {
  background-color: #fee2e2;
  color: #dc2626;
}

.mobile-item {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}