.swal2-container .swal2-popup {
  background: #fff;
  border-radius: 20px;
}

.swal2-container h2.swal2-title {
  font-size: 30px;
}

.table-recheck .tb-head:last-child {
  width: 400px;
}

.d-none {
  display: none;
}

.status.-yellow {
  background-color: rgba(255, 193, 7, 0.15);
  /* สีเหลืองอ่อน */
  color: #FFC107;
  /* สีเหลืองเข้ม */
}


.table-form td {
  height: auto;
}


.table-form td .radio-control {
  height: 60px !important;
}

.table-timeline thead td.-note {
  width: 200px;
}

.head-fix {
  max-width: 50px;
}

.table-form td textarea {
  font-size: 15px !important;
}


.form-env .form-block .form-group .form-control.is-invalid {
  border: #f00 solid 1px;
}

.table-form .form-group .form-control.is-invalid {
  border: #f00 solid 1px;
}

.checkbox-control input[type="checkbox"].is-invalid+.icon {
  border: #f00 solid 1px !important;
}

.radio-control input[type="radio"].is-invalid+.icon {
  border: #f00 solid 1px !important;
}

.form-env .form-block .form-group .form-control.is-invalid {
  border: #f00 solid 1px;
}

.status.-blue {
  background-color: rgba(61, 128, 242, 0.15);
  color: #2773F5;
}




.badge--ci {
  background: #d32f2f !important;
  border-color: #d32f2f !important
}

/* แดง */
.badge--ds {
  background: #e64a19 !important;
  border-color: #e64a19 !important
}

/* ส้มแดง */
.badge--ds-le {
  background: #7e57c2 !important;
  border-color: #7e57c2 !important
}

/* ม่วงอ่อน */
.badge--ds-me {
  background: #5e35b1 !important;
  border-color: #5e35b1 !important
}

/* ม่วงกลาง */
.badge--ds-sv {
  background: #1565c0 !important;
  border-color: #1565c0 !important
}

/* น้ำเงิน */
.badge--eq {
  background: #90a4ae !important;
  border-color: #90a4ae !important
}

/* เทาฟ้า */
.badge--ha {
  background: #26a69a !important;
  border-color: #26a69a !important
}

/* เขียวคราม (สะสมมาก) */
.badge--la {
  background: #81c784 !important;
  border-color: #81c784 !important
}

/* เขียวอ่อน (สะสมน้อย) */
.badge--le {
  background: #c5e1a5 !important;
  border-color: #c5e1a5 !important
}

/* เขียวอ่อนมาก (กัดเซาะน้อย) */
.badge--me {
  background: #66bb6a !important;
  border-color: #66bb6a !important
}

/* เขียวกลาง (กัดเซาะปานกลาง) */
.badge--nt-he {
  background: #ffca28 !important;
  border-color: #ffca28 !important
}

/* เหลือง */
.badge--ra {
  background: #ff9800 !important;
  border-color: #ff9800 !important
}

/* ส้ม (เสี่ยง) */
.badge--rm {
  background: #6d4c41 !important;
  border-color: #6d4c41 !important
}

/* น้ำตาล (ปากแม่น้ำ) */
.badge--sv {
  background: #ef6c00 !important;
  border-color: #ef6c00 !important
}

/* ส้มเข้ม (กัดเซาะรุนแรง) */
.badge--ma {
  background: #4db6ac !important;
  border-color: #4db6ac !important
}

/* เขียวฟ้า (สะสมปานกลาง) */
/* สีไอคอน */
.badge--blue {
  background: #1e88e5 !important;
  border-color: #1e88e5 !important;
}

/* ฟ้าเข้ม */
.badge--sky {
  background: #29b6f6 !important;
  border-color: #29b6f6 !important;
}

/* ฟ้าอ่อน */
.badge--orange {
  background: #ffb300 !important;
  border-color: #ffb300 !important;
}

/* เหลืองส้ม */
.badge--magenta {
  background: #d81b60 !important;
  border-color: #d81b60 !important;
}

/* ชมพู/ม่วงแดง */

.form-map .map-area {
  position: relative;
}

.map-canvas {
  width: 100%;
  height: 420px;
  /* ปรับความสูงได้ */
  border-radius: 8px;
  overflow: hidden;
}


/* กล่องค้นหา */
.leaflet-control-geocoder {
  box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e7eb;
  /* เทาอ่อน */
}

.leaflet-control-geocoder-form {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
}

.leaflet-control-geocoder-form input {
  width: 320px;
  /* ปรับกว้างได้ */
  max-width: 58vw;
  /* responsive */
  height: 36px;
  line-height: 36px;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  outline: none;
  font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
}

.leaflet-control-geocoder-form input:focus {
  border-color: #2563eb;
  /* ฟ้า */
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

.leaflet-control-geocoder-icon,
.leaflet-control-geocoder-form-no-error {
  display: none;
}

/* รายการผลลัพธ์ */
.leaflet-control-geocoder-alternatives {
  display: none;
}

.leaflet-control-geocoder-alternatives li {
  padding: 10px 12px;
  border-bottom: 1px dashed #eee;
  font-size: 14px;
  cursor: pointer;
}

.leaflet-control-geocoder-alternatives li:hover {
  background: #f3f4f6;
  /* เทาอ่อน */
}

/* ปุ่มซูมของ Leaflet ให้โค้งมนกลมกลืน */
.leaflet-bar a,
.leaflet-bar a:hover {
  border-radius: 8px;
}

.leaflet-bar a.leaflet-disabled {
  cursor: not-allowed;
  background: #fafafa;
}

/* ให้ control อยู่เหนือ tile เสมอ */
.leaflet-top .leaflet-control {
  z-index: 5000;
}

.map-actions {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  z-index: 500
}

.map-btn {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08)
}

.map-scale-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  z-index: 500
}


.sc-profile .profile-area .body .body-card-propose .box-progress.-green strong {
  color: #29CC39;
  text-align: center;
}

.innermap {
  padding: 0px 0 80px 0 !important;
}



.box-progress.-red {
  color: #ff0000;
}

.sc-profile .profile-area .body .body-card-propose .box-progress.-red .progress-text {
  fill: #ff0000;
}

#budget-table .header-row td {
  position: relative;
}

.budget-del {
  position: absolute;
  top: 4px;
  right: 6px;
  border: 0;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: #dc3545;
}

.budget-del:hover {
  color: #a71d2a;
}

/* .layout-header .nav-brand strong {
  color: var(--color-primary);
   text-shadow:1px 1px 1px #fff;
}

.layout-header.tiny .nav-brand strong {
  color: #fff;
      text-shadow:1px 1px 5px #000;
} */

.layout-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  -webkit-transition: var(--transition);
  transition: var(--transition);
  background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0.1)), to(rgba(0, 0, 0, 0.1))) !important
}

.layout-header .nav-brand span {
  color: #fff;
  text-shadow: 2px 2px 5px #000;
}

a.link.active,
#btnNews2.link.active {
  /* color: var(--color-primary) !important;         */
  /* ตัวอักษร */
}

.layout-header .mainbar .nav-menu .link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  -webkit-transition: var(--transition);
  transition: var(--transition);
  height: 5px;
  border-radius: 3px;
  background-color: var(--color-primary);
  opacity: 0;
}

/* ====== Section Head ====== */
.sec-title {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 1.5rem 0 .75rem;
}

.sec-title .icon {
  display: inline-flex;
  line-height: 1
}

/* ====== Attachments ====== */
.attach-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.attach-item {}

.attach-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  border: 1px solid #e6e6e6;
  border-radius: .75rem;
  background: #fff;
  text-decoration: none;
  color: #222;
  transition: box-shadow .2s, transform .06s;
}

.attach-link:focus-visible {
  outline: 2px solid #2F80ED;
  outline-offset: 2px
}

.attach-link:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06)
}

.attach-link:active {
  transform: translateY(1px)
}

.file-icon {
  width: 36px;
  height: 36px;
  border-radius: .5rem;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f3f5f7;
  color: #444;
  font-size: .85rem;
  font-weight: 700;
  position: relative;
}

.file-icon::after {
  content: attr(data-ext);
}

.file-info {
  display: flex;
  flex-direction: column;
  min-width: 0
}

.file-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.file-meta {
  font-size: .85rem;
  color: #666;
  display: flex;
  align-items: center;
  gap: .35rem
}

.file-meta .dot {
  opacity: .5
}

.btn-download {
  margin-left: auto;
  font-size: .9rem;
  color: #0b62d6
}

/* สีไอคอนตามชนิดไฟล์แบบง่าย */
.file-pdf {
  background: #fdecec !important;
  color: #d93025 !important
}

.file-doc,
.file-docx {
  background: #eaf2ff !important;
  color: #1a73e8 !important
}

.file-xls,
.file-xlsx {
  background: #eaf7ee !important;
  color: #188038 !important
}

.file-ppt,
.file-pptx {
  background: #fff3e6 !important;
  color: #f17f28 !important
}

.file-zip,
.file-7z,
.file-rar {
  background: #f4eaff !important;
  color: #7b1fa2 !important
}

.file-jpg,
.file-jpeg,
.file-png {
  background: #eef7ff !important;
  color: #1a73e8 !important
}



/* ====== Gallery ====== */
.gallery-grid {
  --gap: .75rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--gap);
}

.gallery-item {
  display: block;
  border-radius: .75rem;
  overflow: hidden;
  background: #f7f8f9;
  border: 1px solid #eee;
  transition: transform .2s, box-shadow .2s;
}

.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .08)
}

.gallery-item .ratio {
  position: relative;
  width: 100%;
  padding-top: 56.25%
}

/* fallback */
.gallery-item .ratio-4x3 {
  padding-top: 15%
}

.gallery-item .ratio>img,
.gallery-item .ratio>picture>img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ====== Small screens tweaks ====== */
/* @media (max-width: 575.98px){
  .sec-title{font-size:1.125rem}
  .attach-link{padding:.8rem .9rem}
} */


/* Pagination */
.pager-wrap {
  display: flex;
  justify-content: center;
  margin: 1.25rem 0 2rem
}

.pager {
  display: flex;
  gap: .35rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.pager .page-item {
  display: inline-flex
}

.pager .page-item.disabled .page-link {
  pointer-events: none;
  opacity: .45
}

.pager .page-item.ellipsis .page-link {
  cursor: default
}

.pager .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 .75rem;
  border: 1px solid #e6e6e6;
  border-radius: .6rem;
  background: #fff;
  color: #333;
  text-decoration: none;
  transition: box-shadow .2s, transform .06s, background .2s;
  font-weight: 600;
}

.pager .page-link:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, .06)
}

.pager .page-item.active .page-link {
  background: #0b62d6;
  color: #fff;
  border-color: #0b62d6;
}

@media (max-width:575.98px) {
  .pager .page-link {
    min-width: 36px;
    height: 36px;
    padding: 0 .5rem;
    border-radius: .5rem
  }
}

.sc-profile .profile-area .body .body-card-table table td .status.-orange {
  background-color: rgba(241, 127, 40, 0.15);
  color: #f17f28;
}


#cesiumContainer {
  width: 100%;
  /* height: 120%; */
  margin: 0;
  padding: 0;
  background: #0b1021;
}

/* แพเนลควบคุมลอยหน้าแผนที่ */
#mapOverlay {
  position: absolute;
  top: 190px;
  right: 12px;
  z-index: 3000;
  max-width: 360px;
  font: 14px/1.45 system-ui, Segoe UI, Roboto, Arial;
  color: #111;
}

#mapOverlay .panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .2);
  /* max-height:74vh; overflow:auto; */
}

#mapOverlay .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

#mapOverlay .bullet {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  opacity: .4
}

#mapOverlay hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 10px 0;
}

#mapOverlay select,
#mapOverlay button,
#mapOverlay input[type=checkbox] {
  font: inherit;
}

#mapOverlay select {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

#mapOverlay .btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #0d6efd;
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 4px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(13, 110, 253, .35);
  width: auto;
  margin: auto;
}

#mapOverlay .btn.gray {
  background: #6b7280;
  box-shadow: none;
}

#mapOverlay small {
  color: #666
}

/* กล่องแสดงผลไม้บรรทัด */
#rulerHud {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 3000;
  background: #111827;
  color: #e5e7eb;
  padding: 8px 10px;
  border-radius: 10px;
  font: 13px/1.4 system-ui, Segoe UI, Roboto, Arial;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .3);
}

.cesium-infoBox {
  display: block;
  position: absolute;
  top: 250px !important;
  right: 30% !important;
  width: auto !important;
}

#mapOverlay .row.layer-item.active {
  background: #eef6ff;
  border-left: 3px solid #0d6efd;
  border-radius: 8px;
}

#mapOverlay .row.layer-item .bullet {
  transform-origin: center;
  transition: transform .15s;
}

#mapOverlay .row.layer-item.active .bullet {
  transform: scale(1.3);
}

.signature-wrap {
  border: 1px dashed #c7c7c7;
  border-radius: 10px;
  padding: 12px;
  background: #fff
}

.signature-canvas {
  width: 100%;
  height: 220px;
  display: block;
  border-radius: 8px;
  background: #fdfdfd;
  touch-action: none;
  cursor: crosshair
}

.signature-tools {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 8px
}

.signature-tools .sig-hint {
  color: #666;
  font-size: .9rem
}


.input-group {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-align: stretch;
  -ms-flex-align: stretch;
  align-items: stretch;
  width: 100%;
}

.input-group>.form-control {
  position: relative;
  -webkit-box-flex: 1;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  width: 1%;
  margin-bottom: 0;
}

.input-group-text {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: .375rem .75rem;
  margin-bottom: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #495057;
  text-align: center;
  white-space: nowrap;
  background-color: #e9ecef;
  border: 1px solid #ced4da;
  /* border-radius: .25rem;
  border-top-left-radius: 0.25rem;
  border-bottom-left-radius: 0.25rem; */
  width: 100px;
  height: 100%;
  text-align: center;
}

.input-group .form-control {
  border-radius: 0px !important;
}



/* ========== ธีม: Dark ========== */
html.theme-dark {
  --bg: #121212;
  --text: #EDEDED;
  --muted: #AAAAAA;
  --link: #58a6ff;
  --accent: #1f6feb;
  --focus: #ffb300;
  --border: #2a2a2a;
}

/* ========== ธีม: High-Contrast (ดำ/เหลือง) ========== */
html.theme-hc {
  --bg: #000000;
  --text: #FFD400;
  /* เหลืองบนดำ คอนทราสต์สูงมาก */
  --muted: #FFD400;
  --link: #00E5FF;
  /* ฟ้าสว่าง ตัดกับดำดี */
  --accent: #00FF94;
  /* เขียวสะท้อนแสง */
  --focus: #FF3D00;
  --border: #ffffff;
}

/* ========== ตัวช่วยเพิ่มเติม ========== */
html.a11y-big-text {
  font-size: 112.5%;
}

/* ~18px ถ้า base 16 */
html.a11y-readable-font {
  font-family: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Thai", "Noto Sans", sans-serif;
}

html.a11y-underline a {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 2px;
}

/* ลดแอนิเมชันสำหรับผู้แพ้การเคลื่อนไหว */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ========== สไตล์ toolbar เล็ก ๆ ========== */
.a11y-toolbar {
  /* position: fixed; */
  /* right: 12px;
  bottom: 12px; */
  /* background: var(--bg); */
  color: var(--text);
  /* border: 2px solid var(--border); */
  border-radius: 10px;
  padding: 8px;
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  display: inline-flex;
  gap: .25rem;
  align-items: center;
  margin-left: 5px;
}


.a11y-toolbar .a11y-btn {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.a11y-toolbar .a11y-btn[aria-pressed="true"] {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.a11y-toolbar .a11y-sep {
  opacity: .5;
  margin: 0 .25rem;
}

.a11y-toolbar .a11y-reset {
  border-color: #d33;
  color: #d33;
}

.a11y-toolbar .a11y-reset[aria-pressed="true"],
.a11y-toolbar .a11y-reset:hover {
  background: #d33;
  color: #fff;
}


.a11y-btn {
  color: #fff;
  font-weight: 600;
  display: block;
  float: left;
  width: 30px;
  height: 30px;
  text-align: center;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;
  /* line-height: 28px; */
  border: 1px solid transparent;
}

.a11y-btn.dark {
  background: #000;
  color: #fff;
}

.a11y-btn.hc {
  background: #FFD400;
  color: #000;
}

.a11y-toolbar span {
  color: #fff;
  font-size: 13px;
}

.w3c img {
  width: 100px;
}




/* html.theme-hc */
html.theme-hc img {
  filter: grayscale(1) !important;
}

html.theme-hc .title,
html.theme-hc .desc,
html.theme-hc .link,
html.theme-hc span,
html.theme-hc .txt {
  color: #FFD400 !important;
}

html.theme-hc .nav-menu .link::after {
  background-color: #FFD400 !important;
}

html.theme-hc .layout-footer .footer-policy {
  color: #FFD400 !important;
  background-color: #000 !important;
}

html.theme-hc .btn-gradient,
html.theme-hc .btn-gradient::before,
html.theme-hc .layout-header::after {
  color: #FFD400 !important;
  background-color: #000 !important;
  background: #000 !important;
}

html.theme-hc .sc-service .graphic-obj span {
  background-color: #000 !important;
  background: #000 !important;
}

html.theme-hc .control .link.active::before {
  background-color: #000 !important;
  background: #000 !important;

}

html.theme-hc .body-tab .tab .control .link {
  border: 1px solid #000 !important;
}

html.theme-hc .sc-service .graphic-obj.-obj-top-end .ratio,
html.theme-hc .box-graphic .thumb {
  background: #000 !important;
}

html.theme-hc .sc-service .swiper .link .content::before {
  background: -webkit-gradient(linear, left top, right top, from(#000), to(rgba(1, 146, 206, 0.1))) !important;
  background: linear-gradient(to right, #000 0%, rgba(1, 146, 206, 0.1) 100%) !important;
}


html.theme-hc .sc-publications .box-graphic .icon-wrapper .top {
  background: #000 !important;
}

html.theme-hc .sc-publications .box-graphic .icon-wrapper .bottom {
  background: #666 !important;
}

html.theme-hc .layout-footer {
  background: #666 !important;
}

html.theme-hc .sc-news {
  background: #fff !important;
}

html.theme-hc .sc-publications::before,
html.theme-hc .content::before {
  filter: grayscale(100%);
}

html.theme-hc .sc-about .sc-card {
  background: #fff;
}

html.theme-hc .dropdown-menu .link {
  background: #000 !important;
}

html.theme-hc .dropdown-menu .link:hover {
  background-color: #666 !important;
}





/* html.theme-dark */
html.theme-dark img {
  filter: grayscale(1) !important;
}

html.theme-dark .title,
html.theme-dark .desc,
html.theme-dark .link,
html.theme-dark span,
html.theme-dark .txt {
  color: #000 !important;
}

html.theme-dark .nav-menu .link::after {
  background-color: #000 !important;
}

html.theme-dark .layout-footer .footer-policy {
  color: #000 !important;
  background-color: #000 !important;
}

html.theme-dark .btn-gradient,
html.theme-dark .btn-gradient::before,
html.theme-dark .layout-header::after {
  color: #000 !important;
  background-color: #000 !important;
  background: #000 !important;
}

html.theme-dark .sc-service .graphic-obj span {
  background-color: #000 !important;
  background: #000 !important;
}

html.theme-dark .control .link.active::before {
  background-color: #000 !important;
  background: #000 !important;

}

html.theme-dark .body-tab .tab .control .link {
  border: 1px solid #000 !important;
}

html.theme-dark .sc-service .graphic-obj.-obj-top-end .ratio,
html.theme-dark .box-graphic .thumb {
  background: #000 !important;
}

html.theme-dark .sc-service .swiper .link .content::before {
  background: -webkit-gradient(linear, left top, right top, from(#000), to(rgba(1, 146, 206, 0.1))) !important;
  background: linear-gradient(to right, #000 0%, rgba(1, 146, 206, 0.1) 100%) !important;
}


html.theme-dark .sc-publications .box-graphic .icon-wrapper .top {
  background: #000 !important;
}

html.theme-dark .sc-publications .box-graphic .icon-wrapper .bottom {
  background: #666 !important;
}

html.theme-dark .layout-footer {
  background: #666 !important;
}

html.theme-dark .sc-news {
  background: #fff !important;
}

html.theme-dark .sc-publications::before {
  filter: grayscale(100%);
}

html.theme-dark .sc-about .sc-card {
  background: #fff;
}

html.theme-dark .dropdown-menu .link {
  background: #000 !important;
}

html.theme-dark .dropdown-menu .link:hover {
  background-color: #666 !important;
}


.leaflet-control-layers {
  display: none !important;
}

.cesium-infoBox {
  max-width: 300px !important;
}

.invalid-feedback {
  color: #b42318;
  font-size: .875rem;
  margin-top: .375rem;
}

.is-invalid {
  border-color: #b42318;
}


.layout-header .mainbar .nav-item {
  /* margin-left: 25px; */
}


/* 
@media (max-width: 30rem) {
  .layout-header .mainbar .nav-item {
    margin-left: auto;
  }

  .nav-list {
    display: block;
  }
} */


@media (min-width: 48rem) and (max-width: 64rem) {
  .nav-menu .nav-list {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}



@media (min-width: 64.0625rem) {
  .nav-menu .nav-list {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

/* 
@media (max-width: 30rem) {
 
  .layout-header .mainbar .nav-item {
    margin-left: auto;
  }

 .a11y-toolbar {
    display: block;
    position: fixed;
    bottom: 0px;
    left: 0px;
  }
}

@media (min-width: 30.0625rem) and (max-width: 47.9375rem) {
  .a11y-toolbar {
    display: none;
  }
}

@media (min-width: 48rem) and (max-width: 64rem) {
  .a11y-toolbar {
    display: none;
  }
} */



.btnmember {
  color: var(--text);
  /* border: 2px solid var(--border); */
  border-radius: 10px;
  padding: 8px 10px;
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  display: inline-flex;
  gap: .25rem;
  align-items: center;
  margin-left: 5px;
}

/* .layout-header .mainbar .nav-item {
  margin-left: 0px;
} */

/* @media (min-width: 64.0625rem) {
  .layout-header .mainbar .nav-item {
    margin-left: 0px;
  }
} */

@media (max-width: 1280px) {
  .layout-header .mainbar .nav-item .link {
    background: none;
  }
}

.btnmember.active {
  background: var(--color-gradient);
}

/* 
.asw-wrapper {
  position: fixed;
  right: 0;
  top: 130px;
  bottom: 55px;
  z-index: 5000;
  transform: translateX(100%);
  transition: .3s;
}

.asw-menu-btn, .asw-menu-btn-mobile {
  position: absolute;
  width: max-content;
  top: 80%;
  bottom: 100px;
  left: -80px;
  transform: translateY(-50%);
  transition: .3s;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  transform: scale(1);
  width: 58px;
  height: 58px;
  display: flex;
  cursor: pointer;
  background-color: #0049be;
  border: 2px solid #fff;
  border-right: 0;
  display: flex;
  border: 2px solid #fff;
  outline: 2px solid #0049be !important;
  z-index: 9999;
} */

.table-form .form-group .radio-control .icon {
  border: 1px solid #B5B5B5;
}

@media (max-width: 1280px) {
  .table-form {
    display: block;
  }
}

.cesium-credit-wrapper {
  display: none !important;
}

.list-stack {
  max-height: 200px;
  overflow: auto;
}

.layout-map .h-title {
  /* font-size: var(--typo-md);
  font-weight: var(--fw-semibold);
  color: var(--color-secondary);
  margin-bottom: 0; */
  font-size: 16px;
  font-weight: var(--fw-semibold);
}

.layout-map .form-map .select2-container .select2-selection--single {
  height: auto;
}

.layout-map .form-map .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 0px;
  font-size: 15px;
}

#btnRuler {
  background: #0b62d6;
  font-size: 15px;
}

#btnClearRuler {
  background: #666;
  font-size: 15px
}

html[data-asw-filter="dark-contrast"] .asw-btn.asw-selected span {
  color: #fff !important;
}

@media (max-width: 1280px) {
  .step-progress .step .circle {
    width: 40px;
    height: 40px;
    min-height: 40px;
    min-width: 40px;
  }

  .step-progress .step .circle .icon-step {
    width: 20px;
  }

  .step-progress .step::after {
    display: none;
    top: 0px;
    left: 45px;
  }

}


@media (max-width: 1280px) {

  /*

/* กล่องครอบตารางให้เลื่อนแนวนอนได้ */
  .table-responsive {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    /* เลื่อนลื่นบน iOS */
    scrollbar-gutter: stable both-edges;
  }

  /* กันตารางยุบ: ให้เนื้อหาไม่บีบจนแตกบรรทัด */
  .table-responsive table {
    border-collapse: collapse;
    /* จัดคอลัมน์ตามเนื้อหา (auto) และอนุญาตให้มีความกว้างเกิน container ได้ */
    table-layout: auto;
    /* ถ้าตารางเล็กกว่าจอ ให้กว้าง 100%; ถ้าใหญ่กว่า ให้กินตามเนื้อหาแล้วค่อยเลื่อน */
    min-width: 100%;
    width: max-content;
    max-width: none;
  }

  /* ไม่ให้ข้อความในเซลล์แตกบรรทัด (ช่วยให้คอลัมน์ไม่ยืดสูง) */
  .table-nowrap th,
  .table-nowrap td {
    white-space: nowrap;
  }

  /* (ตัวเลือก) sticky header เวลาเลื่อนข้างๆหรือขึ้นลง */
  .table-sticky thead th {
    position: sticky;
    /* top: 0; */
    background: #fff;
    /* เปลี่ยนตามธีมได้ */
    z-index: 1;
  }

  /* (ตัวเลือก) แต่งสกอร์ลบาร์นิดหน่อย */
  .table-responsive::-webkit-scrollbar {
    height: 10px;
  }

  .table-responsive::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, .25);
    border-radius: 5px;
  }

  .table-responsive::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, .08);
  }

  /* (ตัวเลือก) เพิ่มเงาด้านขวาซ้ายเวลามีส่วนที่เลื่อนต่อ */
  .table-responsive {
    /* mask-image: linear-gradient(to right, transparent 0, black 16px, black calc(100% - 16px), transparent 100%); */
  }

  .table-form thead {
    top: 0px;
  }
}

.btn-outline-danger {
  background: #e64a19;
  border-radius: 5px;
  margin-left: 5px;
}
.input-group-text{
   border-radius: 5px;
   font-size: var(--typo-sm);
  font-weight: var(--fw-medium);
  
}
.input-group-prepend .input-group-text{
  width: auto;
}