html,
body {
  height: 100%;
  font-size: 14px;
  scroll-behavior: auto !important;
}
@font-face {
    font-family: Krungthep;
    src: url('../fonts/Krungthep.ttf')  format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: Kanit;
    src: url('../fonts/Kanit.ttf')  format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: SukhumvitSet-bold;
    src: url('../fonts/SukhumvitSet-bold.ttf')  format('truetype');
    font-weight: bold;
    font-style: normal;
}
@font-face {
    font-family: SukhumvitSet-light;
    src: url('../fonts/SukhumvitSet-light.ttf')  format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: RSU;
    src: url('../fonts/RSU_Regular.ttf')  format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: cs-prakasFD;
    src: url('../fonts/csprakasfd-bold.ttf')  format('truetype');
    font-weight: bold;
    font-style: normal;
}
@font-face {
    font-family: BaiJamjuree;
    src: url('../fonts/BaiJamjuree-Light.ttf')  format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: CmPrasanmit;
    src: url('../fonts/CmPrasanmit-Regular.ttf')  format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: THSarabun;
    src: url('../fonts/THSarabun.ttf')  format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: angsanaUPC;
    src: url('../fonts/angsanaUPC.ttf')  format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: DilleniaUPC;
    src: url('../fonts/DilleniaUPC.ttf')  format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: DilleniaUPC-bold;
    src: url('../fonts/DilleniaUPC-Bold.ttf')  format('truetype');
    font-weight: bold;
    font-style: normal;
}
@font-face {
    font-family: TH-Baijam;
    src: url('../fonts/TH-Baijam.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: TH-Baijam-Bold;
    src: url('../fonts/TH-Baijam-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.bg-rgt {
  background-color: #3F529F;
}
.loader {
  border: 4px solid #728bf1;
  border-top: 4px solid rgba(0, 0, 0, 0);
  border-radius: 50%;
  width: 25px;
  height: 25px;
  animation: spin 1s linear infinite;
  margin: auto;
}
.overlay {
  height: 100%;
  width: 100%;
  display: none;
  position: fixed;
  z-index: 1062;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.loading-box {
  margin: auto;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 20px;
}
.rgt-mask-loading {
  background: white;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0.8;
  align-items: center;
  display: flex;
  z-index: 1060;
}
a:hover {
  cursor: pointer;
}
.hover:hover {
  background-color: rgba(255, 255, 255, 0.1)!important;
}
.hover-dark:hover {
  background-color: rgba(0, 0, 0, 0.05);
}
.sidebar-item > div {
  transition: none;
}
.sidebar-item:hover > div {
  background-color: rgba(44, 123, 229, 0.08);
  color: rgb(44, 123, 229);
}
.hover-boder-blue {
  border: 1px solid rgba(0, 0, 0, 0.2);
  transition: transform 200ms ease;
}
.hover-boder-blue:hover {
  border: 1px solid #0d6efd!important;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}
.hide {
  display: none;
}

.notify-position {
  position: fixed;
  z-index: 1070;
  top: 50px;
  left: 50%;
  display: block;
  text-align: center;
  transform: translate(-50%, -50%);
}
.notify-content {
  display: inline-block;
  padding: 10px 15px;
  margin: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.notify-success {
  background-color: #d1e7dd;
  color: #0f5132;
  border: 1px solid #badbcc;
}
.notify-error {
  background-color: #f8d7da;
  color: #842029;
  border: 1px solid #f5c2c7;
}
.btn-light {
  border: 1px solid rgba(0, 0, 0, 0.1);
}
.btn-light:hover {
  border: 1px solid rgba(0, 0, 0, 0.2);
}
.highlight {
  background-color: yellow;
}

.table tbody tr:nth-child(odd) {
  background: #f8f9fa;
}

.rgt-autocomplete {
  font-size: 16px;
}

.rgt_highlight_box {
  background-color: #f5f5f5;
  padding: 10px 10px 10px 10px;
  border: solid;
  border-width: thin;
  border-color: #e3e3e3;
  border-radius: 6px;
}
.rgt_highlight_box .rgt_single_search,
.rgt_highlight_box div {
  margin-bottom: 0px;
}
.rgt_highlight_box input {
  margin-bottom: 0px;
}
/*
.rgt_autocomplete_append {
  opacity: 0.4;
  margin-left: -20px;
  margin-top: 7px;
  position: absolute;
  z-index: 10;
}*/
.rgt_autocomplete_search {
  padding: 4px 20px 4px 6px;
}
.autocomplete-result {
  position: absolute;
  border: 1px solid #b8c7d9;
  display: block;
  background-color: #f5faff;
  z-index: 999;
}
.autocomplete-result .heading {
  font-weight: bold;
  padding: 0px;
  margin: 0px;
}
.autocomplete-result .content {
  padding: 0px;
  margin: 0px;
}
.autocomplete-result .detail {
  font-size: 0.8em;
  color: gray;
  padding: 0px;
  margin: 0px;
}
.autocomplete-result-box {
  padding: 5px;
  cursor: pointer;
}
.autocomplete-result .current {
  background-color: #cedff2;
}
.autocomplete-input-box {
  flex-wrap: nowrap !important;
}
.autocomplete-show-box {
  flex-wrap: nowrap !important;
}
.rgt_autocomplete_tag_show {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  -moz-border-radius-topright: 4px;
  -moz-border-radius-bottomright: 4px;
  border-left-width: 1px;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  -moz-border-radius-bottomleft: 4px;
  -moz-border-radius-topleft: 4px;
  padding: 3px 8px;
  text-decoration: none;
  background-color: #fff;
  border: 1px solid #ddd;
  padding-top: 6px;
  padding-bottom: 6px;
  word-wrap: break-word;
  white-space: normal !important;
  text-align: left !important;
  width:100%;
}
/* SEARCH FORM */
#suggestions {
  position: absolute;
  width: 470px;
  display: block;
  z-index: 999;
}
/* SEARCHRESULTS */
#searchresults {
  margin-top: -5px;
  border-width: 1px;
  border-color: #b8c7d9;
  border-style: solid;
  width: 470px;
  background-color: #b8c7d9;
  line-height: 14px;
}
#searchresults .searchbox {
  display: block;
  background-color: #f5faff;
  clear: left;
  height: 45px;
  text-decoration: none;
}
#searchresults .current {
  background-color: #cedff2;
}
#searchresults .searchbox img {
  float: left;
  padding: 5px 10px;
}
#searchresults .searchbox p.searchheading {
  font-size: 14px;
  font-weight: bold;
  padding: 7px 5px 3px 70px;
  color: #191919;
}

#searchresults .searchbox p {
  font-size: 10px;
  padding-left: 70px;
  margin: 0px 10px 0px 0px;
  color: #555555;
}

#searchresults a:hover {
  text-decoration: none;
}
#searchresults span.category {
  font-size: 11px;
  margin: 5px;
  display: block;
  color: #ffffff;
}
#searchresults span.seperator {
  float: right;
  padding-right: 15px;
  margin-right: 5px; /*background-image:url(../images/shortcuts_arrow.gif);*/
  background-repeat: no-repeat;
  background-position: right;
}
#searchresults span.seperator a {
  background-color: transparent;
  display: block;
  margin: 5px;
  height: auto;
  color: #ffffff;
}

/* SEARCH FORM */
.autocomplete_tag_suggestions {
  position: absolute;
  max-width: 470px;
  display: block;
  z-index: 999;
}
/* SEARCHRESULTS */
.autocomplete_tag_searchresults {
  border-width: 1px;
  border-color: #b8c7d9;
  border-style: solid;
  max-width: 470px;
  background-color: #b8c7d9;
  line-height: 14px;
}
.autocomplete_tag_searchresults .searchbox {
  display: block;
  background-color: #f5faff;
  clear: left;
  height: auto;
  text-decoration: none;
}
.autocomplete_tag_searchresults .current {
  background-color: #cedff2;
}
.autocomplete_tag_searchresults .searchbox img {
  float: left;
  padding: 5px 10px;
}
.autocomplete_tag_searchresults .searchbox p.searchheading {
  font-size: 14px;
  font-weight: bold;
  padding: 7px 5px 3px 70px;
  color: #191919;
}
.autocomplete_tag_searchresults
  .searchbox
  p.searchheading.rgt_searchheading_float_left {
  padding-left: 5px;
  font-weight: normal;
}
.autocomplete_tag_searchresults
  .searchbox
  p.searchheading.rgt_searchheading_float_left_bold {
  padding-left: 5px;
}

.autocomplete_tag_searchresults .searchbox p {
  font-size: 10px;
  padding-left: 70px;
  margin: 0px;
  color: #555555;
}
.autocomplete_tag_searchresults .searchbox .rgt_searchdetail_float_left {
  font-size: 10px;
  padding-left: 5px;
  padding-right: 5px;
  margin: 0px;
  color: #555555;
}

.autocomplete_tag_searchresults a:hover {
  text-decoration: none;
}
.autocomplete_tag_searchresults span.category {
  font-size: 11px;
  margin: 5px;
  display: block;
  color: #ffffff;
}
.autocomplete_tag_searchresults span.seperator {
  float: right;
  padding-right: 15px;
  margin-right: 5px; /*background-image:url(../images/shortcuts_arrow.gif);*/
  background-repeat: no-repeat;
  background-position: right;
}
.autocomplete_tag_searchresults span.seperator a {
  background-color: transparent;
  display: block;
  margin: 5px;
  height: auto;
  color: #ffffff;
}
.rgt_autocomplete_loading {
  margin-left: -28px;
  position: absolute;
  z-index: 100;
  margin-top: 5px;
}
/*     End autocomplete person    */
.legend {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 10px;
  margin-bottom: 15px;
  margin-top: 15px;
}
.profile-pencil {
  position: absolute;
  right: 10px;
  top: 10px;
}
.form-actions {
  padding-left: 160px;
}
.btn-onclick {
  padding: 0px !important;
  border: 0px !important;
  background-color: transparent !important;
}
.btn-circle {
  display: inline-flex;        /* ให้ข้างในจัดกลาง */
  align-items: center;         /* จัดแนวตั้ง */
  justify-content: center;     /* จัดแนวนอน */
  width: 40px;                 /* กำหนดความกว้าง */
  height: 40px;                /* กำหนดความสูง เท่ากับความกว้าง */
  border-radius: 50%;          /* ทำให้กลม */
  border: 0 !important;
  padding: 0;                  /* กัน padding ทำให้เพี้ยน */
  font-size: unset;
  border-top-right-radius: 50% !important;
  border-bottom-right-radius: 50% !important;
}
.btn-circle:hover {
  background-color: rgba(0, 0, 0, 0.03);
}
.hover-filter:hover {  filter: brightness(90%)!important;
}
.btn-options {
  border: 1px solid rgb(222, 226, 230);;   /* กรอบสีเทาอ่อน */
  border-radius: 8px;       /* มุมโค้ง (ถ้าอยากให้สวย) */
  padding: 8px;             /* ระยะห่างด้านใน */
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.btn-options:hover {
  border-color: rgb(208, 208, 208);
}
/* ตอนเลือก (radio ถูก check) */
.btn-check:checked + .btn-options {
  border-color: #007bff;    /* ใช้สีหลัก Bootstrap (ฟ้า) */
  background-color: #f0f8ff; /* หรือใส่ background อ่อน ๆ */
}
/* ตอนคลิก (active) */
.btn-check + .btn-options:active {
  border-color: #0056b3!important;      /* ฟ้าเข้ม */
  background-color: #e6f2ff;  /* ฟ้าอ่อนกว่า */
}

.modal-picture {
  position: fixed;
  z-index: 1062;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.7);
}
.modal-picture-content {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80%;
  border: 5px solid white;
  width: auto;
}
.modal-picture-tools {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}
.drop-image {
  height: 380px;
  min-width: 300px;
  border: 2px dashed rgba(0, 0, 0, 0.3);
  color: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.drop-image-over,
.drop-image:hover {
  border: 2px dashed #0d6efd;
  color: #0d6efd;
}
.drop-image input {
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}
.drop-image input:focus {
  outline: none;
}
.box--image {
  position: relative;
  max-width: 200px;
  outline: solid 1px red;
}
.upload-picture-cropper-box {
  max-width: 100%;
  max-height: 65vh;
  overflow: hidden;
}
.cropper-view-box {
  outline: 1px solid rgba(255, 255, 255, 0.8);
}
.cropper-point {
  background-color: #fff;
  width: 20px !important;
  height: 3px !important;
  border-radius: 0;
  opacity: 1;
}
.cropper-point.point-n,
.cropper-point.point-s {
  width: 20px !important;
  height: 3px !important;
}
.cropper-point.point-e,
.cropper-point.point-w {
  width: 3px !important;
  height: 20px !important;
}
.cropper-point.point-ne,
.cropper-point.point-nw,
.cropper-point.point-se,
.cropper-point.point-sw {
  width: 20px !important;
  height: 20px !important;
  background-color: transparent;
  border-color: #fff;
  border-style: solid;
  border-width: 0;
}
.cropper-point.point-nw { border-top-width: 3px; border-left-width: 3px; }
.cropper-point.point-ne { border-top-width: 3px; border-right-width: 3px; }
.cropper-point.point-sw { border-bottom-width: 3px; border-left-width: 3px; }
.cropper-point.point-se { border-bottom-width: 3px; border-right-width: 3px; }
.cropper-line {
  background-color: rgba(255, 255, 255, 0.3);
}
.cropper-dashed {
  border-color: rgba(255, 255, 255, 0.3);
}
.crop-wrapper {
  position: relative;
  display: block;
}

.crop-target {
  display: block;
  max-width: 100%;
  max-height: 500px;
}
.crop-picture-show img {
  display: block;
  max-width: 100%;
  max-height: 500px;
  margin: 0 auto;
}
.profile-table {
  font-size: 14px;
  width: 100%;
}
.profile-table th {
  color: gray;
  text-align: right;
  padding-right: 10px;
  font-weight: normal;
  width: 120px;
  padding-top: 3px;
  padding-bottom: 3px;
}
.person-picture-album-left {
  left: 15px;
  top: 50%;
  position: fixed;
  color: #f1f1f1;
  font-size: 24px;
  font-weight: bold;
  transform: translate(0, -50%);
}

.person-picture-album-right {
  right: 15px;
  top: 50%;
  position: fixed;
  color: #f1f1f1;
  font-size: 24px;
  font-weight: bold;
  transform: translate(0, -50%);
}
.hover-upload {
  position: absolute;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.3);
  color: rgba(0, 0, 0, 0.5);
  opacity: 0;
}
.hover-upload:hover {
  opacity: 1;
}
table.table {
  vertical-align: middle;
  font-size: 14px;
}
.form-control,
.form-select {
  font-size: 16px;
}
.rgt-modal {
  background-color: white;
  min-width: 300px;
  width: 90vw;
  max-width: 650px;
  max-height: 90%;
  z-index: 1050;
}
@media (min-width: 992px) {
  .rgt-modal:has(#upload-picture) {
    max-width: 900px;
  }
}
.otp-container {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.otp-input {
  width: 50px;
  height: 55px;
  font-size: 24px;
  text-align: center;
  border: 2px solid #ccc;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
}
.otp-input:focus {
  border-color: #007bff;
  box-shadow: 0 0 4px rgba(0,123,255,0.5);
}
@media (max-width: 649px) {
  .rgt-modal {
    width: 100vw;
    max-width: 100vw;
    max-height: 100%;
    border-radius: 0;
  }
}
.sidebar-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  width: 46px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.15rem;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
  cursor: pointer;
}
.sidebar-toggle-btn:hover {
  background-color: rgba(255, 255, 255, 0.12);
}
#rgt-content {
  position: relative;
  z-index: 1;
}
/* === Sidebar === */
#side-bar-container {
  position: sticky;
  top: 40px;
  z-index: 2;
  width: 200px;
  min-width: 200px;
  height: calc(100vh - 40px);
  height: calc(100dvh - 40px);
  overflow: hidden;
  background-color: rgb(248, 249, 250);
  box-shadow: rgba(0, 0, 0, 0.1) -1px 0px 0px 0px inset;
  color: rgb(33, 37, 41);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              min-width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#side-bar-container #rgt-sidebar {
  width: 200px;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 1;
  transition: opacity 0.15s ease 0.2s;
}
#side-bar-container:not(.sidebar-open) {
  width: 0;
  min-width: 0;
  padding: 0 !important;
  overflow: hidden;
}
#side-bar-container:not(.sidebar-open) #rgt-sidebar {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.1s ease;
}
/* === Sidebar Scroll Indicators === */
.sidebar-scroll-indicator {
  position: absolute;
  left: 0;
  right: 0;
  height: 32px;
  display: flex;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.sidebar-scroll-indicator.visible {
  opacity: 1;
}
.sidebar-scroll-indicator i {
  font-size: 0.65rem;
  color: rgba(33, 37, 41, 0.45);
}
.sidebar-scroll-up {
  top: 0;
  align-items: flex-start;
  padding-top: 4px;
  background: linear-gradient(to bottom, rgb(248, 249, 250) 40%, transparent);
}
.sidebar-scroll-down {
  bottom: 0;
  align-items: flex-end;
  padding-bottom: 4px;
  background: linear-gradient(to top, rgb(248, 249, 250) 40%, transparent);
}
#side-bar-container:not(.sidebar-open) .sidebar-scroll-indicator {
  display: none;
}
/* === Collapsible Submenu Group === */
.sidebar-collapse-trigger:hover div {
  background-color: rgba(0, 0, 0, 0.04);
}
.sidebar-collapse-group.collapse-open > .sidebar-collapse-trigger .bi {
  transform: rotate(90deg);
}
.sidebar-collapse-items {
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  margin-left: 12px;
}
/* === Nav Menu Search (popup โปรแกรม) === */
.nav-menu-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}
.nav-menu-search-icon {
  color: #aaa;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.nav-menu-search-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 16px;
  color: #333;
  min-width: 0;
}
.nav-menu-search-input::placeholder { color: #bbb; }
mark.nav-menu-search-hl {
  background: #fff176;
  color: inherit;
  padding: 0 1px;
  border-radius: 2px;
}
/* === Responsive: Mobile < 800px === */
@media (max-width: 799px) {
  .logo-rgt { display: block; }
  .logo-rgtcenter { display: none; }
  #hide-sidebar-logo { display: none; }
  #show-sidebar-logo { display: block; }
  .navbar-rgt-name, .navbar-rgt-logo { display: none; }
  .insert-button-container, .insert-button-container a { width: 100%; }
  #side-bar-container {
    position: fixed;
    top: 40px;
    left: 0;
    bottom: 0;
    max-height: none;
    z-index: 1040;
    transition: none;
    box-shadow: none;
    width: 0;
    min-width: 0;
    padding: 0 !important;
    overflow: hidden;
  }
  #side-bar-container #rgt-sidebar {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  /* is-mobile: ซ่อนทันทีแม้ PHP set sidebar-open (ก่อน JS โหลด) */
  html.is-mobile #side-bar-container {
    width: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
  html.is-mobile #side-bar-container #rgt-sidebar {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  /* sidebar-open: เปิด sidebar บนมือถือ */
  #side-bar-container.sidebar-open {
    width: 200px;
    min-width: 200px;
    padding: 1rem 0 !important;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
  }
  #side-bar-container.sidebar-open #rgt-sidebar {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}
/* === Responsive: Desktop >= 800px === */
@media (min-width: 800px) {
  .logo-rgt { display: none; }
  .logo-rgtcenter { display: block; }
  #show-sidebar-logo { display: none; }
  #hide-sidebar-logo { display: block; }
  .navbar-rgt-name { display: block; }
  .navbar-rgt-logo { width: 154px; }
}

@media (max-width: 1099px) {
  .rgt_searchbar {
    flex-direction: column;
  }
  .rgt-projectbar {
    width: 100%;
    margin-bottom: 10px;
    order: -1;
  }
  .rgt-projectbar .input-group {
    flex-direction: column;
  }
  .rgt-projectbar .input-group > select.form-select {
    width: 100% !important;
    border-radius: 0.375rem !important;
  }
  .rgt-projectbar .input-group > select.form-select:first-child {
    margin-bottom: 5px;
  }
  .rgt_searchbar .input-append {
    width: 100%;
  }
  .searchbox-index {
    width: auto;
  }
}

@media (min-width: 1100px) {
  .rgt-projectbar {
    flex: 0 1 auto;
    max-width: 50%;
    margin-bottom: 0px;
    order: 1;
  }
  .rgt-projectbar .input-group {
    flex-wrap: nowrap;
    width: auto;
  }
  .rgt-projectbar .input-group > select.form-select {
    width: auto !important;
    flex: 0 1 auto;
  }
  .rgt_searchbar .input-append {
    flex: 1;
    max-width: 500px;
  }
  .searchbox-index {
    flex: 1;
  }
}
.table-bordered {
  border-top: 1px solid rgb(222, 226, 230);
}
.table-bordered  td, .table-bordered  tr {
  border-top-color: rgb(222, 226, 230)
}
.table-bordered  tbody td, .table-bordered  tbody tr {
  border-top-width: 0px;
}
.table-bordered  thead th {
  border-top-width: 1px;
  border-bottom-width: 1px;
}
/*Loading*/
.overlay-content {
  position: relative;
  text-align: center;
}
.modal-confirm {
  max-width: 325px;
}
.modal-confirm .modal-content {
  padding: 20px;
  border-radius: 5px;
  border: none;
  background-color: #FFFF;
}
.modal-confirm .modal-header {
  border-bottom: none;
  position: relative;
}
.modal-confirm .modal-footer {
  border: none;
  text-align: center;
  border-radius: 5px;
  font-size: 13px;
  display: block;
}
.icon-box {
  color: #fff;
  margin: 0 auto;
  left: 0;
  right: 0;
  top: -70px;
  width: 95px;
  height: 95px;
  border-radius: 50%;
  z-index: 9;
  padding: 5px;
  text-align: center;
  box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.1);
  font-size: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-confirm .icon-box {
  color: #fff;
  position: absolute;
}
.bg-alert-success {
  background: #65bd0d;
}
.text-header-success {
  color: #304b12;
}
.bg-alert-danger {
  background: #d44b4b;
}
.text-header-danger {
  color: #8f1f1f;
}
.bg-alert-warning {
  background: #f0ad4e;
}
.text-header-warning {
  color: #7a4f10;
}
.reserve-box {
  position: relative;
}
.reserve-box:before {
  content: "";
  position: absolute;
  left: 25%;
  bottom: 0;
  height: 1px;
  width: 50%; /* or 100px */
  border-bottom: 1px solid rgb(206, 206, 206);
}
.web-button {
  border: 1px solid #dee2e6;
  color: #223861;
  transition: transform 200ms ease;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}
.web-button:hover {
  border: 1px solid #4063af;
  cursor: pointer;
  color: #2365e0;
  transform: scale(1.02);
  box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.2);
}
.web-button:active {
  border: 1.5px solid #4063af;
  background-color: #f5f8fc;
  color: #1353ca;
}

/* Custom style for nested dropdown */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu .dropdown-menu {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
}

.dropdown-submenu.show > .dropdown-menu {
  display: block;
}

.multiselect + .btn-group > .dropdown-menu {
  max-height: 80vh;
  overflow-y: auto;
}

.draggable > div {
  transition: transform 200ms ease;
}
.draggable:hover > div {
  cursor: grab;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
}


/*summernote*/
.note-icon-close {
  content: "\f10d";
}
.note-icon-caret{
  display: none;
}
.note-btn.dropdown-toggle{
  width: auto!important;
}

/* ซ่อนไอคอนปิดที่เป็นค่าเริ่มต้นของ Summernote */
.note-icon-close::before {
  display: none !important;
}

/* แสดงไอคอนที่เลือกจาก Bootstrap Icons แทน */
.note-icon-close::after {
  /* ใช้ font family ของ Bootstrap Icons */
  font-family: 'bootstrap-icons';
  /* แทนที่รหัส Unicode ด้วยรหัสที่คุณหามา */
  content: "\F659";
  font-style: normal;
}
.note-modal {
  height: 100%;
  width: 100%;
  display: none;
  position: fixed;
  z-index: 1062;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.note-modal-content {
margin: 50px auto;
}

.hover-scale {
  transition: transform 200ms ease;
}
.hover-scale:hover {
  transform: scale(1.02);
}
.hover-up {
  transition: transform 200ms ease;
}
.hover-up:hover {
  transform: translateY(-10px);
}

/*--------------------------------------------------------------
# Float
--------------------------------------------------------------*/
.animate-float {
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px); /* ขึ้นไป 10px */
  }
  100% {
    transform: translateY(0); /* กลับมาตำแหน่งเดิม */
  }
}
/*--------------------------------------------------------------
# wiggle
--------------------------------------------------------------*/
.animate-wiggle {
  animation: wiggle 5s ease-in-out infinite; /* cycle 5 วินาที */
}
@keyframes wiggle {
  0%, 49%, 100% { transform: translateX(0) rotate(0); }  /* อยู่เฉย 5 วินาที + หลังกระดิก */
  50% { transform: translateX(-3px) rotate(-2deg); }
  52% { transform: translateX(3px) rotate(2deg); }
  54% { transform: translateX(-1px) rotate(-1deg); }
  56% { transform: translateX(0) rotate(0); } /* กระดิกเสร็จ */
}

.rgt_searchbar {
  background-color: #f5f5f5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}
/*--------------------------------------------------------------
# Filter Panel Toggle
--------------------------------------------------------------*/
.rgt-filter-toggle-btn {
  white-space: nowrap;
  flex-shrink: 0;
  background-color: #fff;
  border-color: rgba(0, 0, 0, 0.15);
  color: #6c757d;
}
.rgt-filter-toggle-btn:hover {
  background-color: #f7f7f7 !important;
  border-color: rgba(0, 0, 0, 0.18) !important;
  color: #6c757d !important;
  box-shadow: none !important;
}
.rgt-filter-toggle-btn.active,
.rgt-filter-toggle-btn:active,
.rgt-filter-toggle-btn:focus,
.rgt-filter-toggle-btn.active:focus,
.rgt-filter-toggle-btn:active:focus {
  background-color: #fff !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
  color: #6c757d !important;
  box-shadow: none !important;
}
.rgt-filter-chevron {
  font-size: 0.7em;
  transition: transform 0.3s ease;
  margin-left: 2px;
}
.rgt-filter-toggle-btn.active .rgt-filter-chevron {
  transform: rotate(180deg);
}
.rgt-filter-panel {
  overflow: visible;
  max-height: 500px;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 1;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  background-color: #fff;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}
.rgt-filter-panel.rgt-filter-hidden {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  border-top: 0;
}
.rgt-filter-content {
  display: flex;
}
.rgt-filter-items {
  flex: 1;
  min-width: 0;
}
.rgt-filter-items > div {
  display: flex;
  align-items: stretch;
}
.rgt-filter-items .form-control {
  height: 100%;
}
.rgt-filter-search-btn {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
}
.rgt-filter-search-btn .btn {
  height: 100%;
  border-radius: 0 0 5px 0;
  padding-left: 16px;
  padding-right: 16px;
}
.rgt-toolbar-short {
  display: none;
}
@media (max-width: 991.98px) {
  .rgt-filter-panel:not(.rgt-filter-forced-show) {
    max-height: 0;
    opacity: 0;
    border-top: 0;
  }
  .rgt-filter-panel.rgt-filter-forced-show {
    max-height: 500px;
    opacity: 1;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }
  .rgt-filter-toggle-btn .rgt-filter-btn-text {
    display: none;
  }
  .rgt-reset-text {
    display: none;
  }
  .rgt-toolbar-full {
    display: none;
  }
  .rgt-toolbar-short {
    display: inline;
  }
}

/*--------------------------------------------------------------
# Divider
--------------------------------------------------------------*/
.divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--bs-secondary-color);
}

.divider::before {
    margin-right: 16px;
}

.divider::after {
    margin-left: 16px;
}

.divider span {
    color: var(--bs-secondary-color);
    font-size: 14px;
    white-space: nowrap;
}

/*--------------------------------------------------------------
# ProgressBar
--------------------------------------------------------------*/
.step-success {
  background-color: rgb(152, 209, 182);
  border-color:rgb(15, 81, 50);
  color:rgb(15, 81, 50);
}

/*--------------------------------------------------------------
# Table Border
--------------------------------------------------------------*/
.table-rounded-bottom-3 {
  border-collapse: separate;
  border-spacing: 0;
}

/* มุมซ้ายล่าง */
.table-rounded-bottom-3 tr:last-child > *:first-child {
  border-bottom-left-radius: 0.5rem; /* Bootstrap rounded-3 */
}

/* มุมขวาล่าง */
.table-rounded-bottom-3 tr:last-child > *:last-child {
  border-bottom-right-radius: 0.5rem; /* Bootstrap rounded-3 */
}



/*--------------------------------------------------------------
# Pagination 2 Section
--------------------------------------------------------------*/
.pagination-2 {
  padding-top: 0;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.pagination-2 ul {
  display: flex;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pagination-2 li {
  margin: 0 5px;
  transition: 0.3s;
}

.pagination-2 li a {
  height: 100%;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  padding: 7px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}

.pagination-2 li a.active {
  background: var(--accent-color);
  color: var(--contrast-color);
}
.pagination-2 li a:hover {
  background: var(--orange-color);
  color: var(--contrast-color);
}

.pagination-2 li a.active a,
.pagination-2 li a:hover a {
  color: var(--contrast-color);
}


/*--------------------------------------------------------------
# select with searchbox
--------------------------------------------------------------*/
.ss-wrap{display:block}
.ss-container{position:relative;flex:1 1 auto;min-width:0}
.ss-btn{width:100%;cursor:pointer;display:flex;align-items:center;justify-content:space-between}
.ss-btn:hover:not(:disabled){border-color:var(--bs-primary)}
.ss-btn:disabled{background-color:var(--bs-secondary-bg);cursor:not-allowed}
.ss-btn.active{border-color:var(--bs-primary);box-shadow:0 0 0 .25rem rgba(var(--bs-primary-rgb),.25)}
.ss-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;text-align:left}
.ss-dropdown{position:absolute;top:100%;left:0;right:0;z-index:1050;display:none;background:var(--bs-body-bg);border:var(--bs-border-width) solid var(--bs-border-color);border-radius:var(--bs-border-radius);box-shadow:0 .5rem 1rem rgba(0,0,0,.15);margin-top:2px;max-height:300px;overflow:hidden}
.ss-dropdown.show{display:block}
.ss-dropdown.ss-portal{position:fixed;right:auto;margin-top:0;z-index:1080}
.ss-search-wrap{position:relative;padding:.5rem;border-bottom:1px solid var(--bs-border-color)}
.ss-input{padding-right:2rem}
.ss-clear{position:absolute;right:1rem;top:50%;transform:translateY(-50%);cursor:pointer;color:var(--bs-secondary);font-size:1.2rem;line-height:1;display:none}
.ss-clear:hover{color:var(--bs-danger)}
.ss-input:not(:placeholder-shown)+.ss-clear{display:block}
.ss-options{max-height:220px;overflow-y:auto}
.ss-opt{padding:.5rem 1rem;cursor:pointer;transition:background .15s}
.ss-opt:hover,.ss-opt.hl{background:var(--bs-primary);color:#fff}
.ss-opt.sel{background:var(--bs-primary-bg-subtle);font-weight:500}
.ss-opt.sel:hover,.ss-opt.sel.hl{background:var(--bs-primary);color:#fff}
.ss-empty{padding:1rem;text-align:center;color:var(--bs-secondary);display:none}
.ss-empty.show{display:block}
.ss-match{background:rgba(var(--bs-warning-rgb),.4);font-weight:600}
.input-group .ss-container:not(:first-child) .ss-btn{border-top-left-radius:0;border-bottom-left-radius:0}
.input-group .ss-container:not(:last-child) .ss-btn{border-top-right-radius:0;border-bottom-right-radius:0}

/*--------------------------------------------------------------
# Table V2 (AWS Console-style)
--------------------------------------------------------------*/

/* Wrapper */
.rgt-table-v2-wrapper {
  position: relative;
  font-size: 12px;
}

/* Toolbar (top and bottom) */
.rgt-table-v2-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  gap: 8px;
  flex-wrap: wrap;
}
.rgt-table-v2-toolbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rgt-table-v2-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* Info bar */
.rgt-table-v2-info {
  font-size: 14px;
  color: #545b64;
  white-space: nowrap;
  border: 1px solid #d5dbdb;
  padding: 4px 10px;
  border-radius: 4px;
  background: #fff;
}

/* Scroll container — overflow-y:clip allows native vertical scroll pass-through
   without creating a scroll container (unlike hidden which captures wheel events) */
.rgt-table-v2-scroll-container {
  overflow-x: auto;
  overflow-y: clip;
  border: 1px solid #d5dbdb;
  border-radius: 4px;
}
/* Right-edge gradient hint — positioned over scroll container */
.rgt-table-v2-scroll-hint-right {
  position: absolute;
  right: 0;
  width: 20px;
  background: linear-gradient(to right, transparent, rgba(0,0,0,0.06));
  pointer-events: none;
  z-index: 400;
  border-radius: 0 4px 4px 0;
  display: none;
}

/* Floating horizontal scrollbar — pinned to bottom of viewport
   so user doesn't have to scroll vertically to the bottom of a tall table
   just to reach the X scrollbar. Auto-hides when table's native scrollbar
   is already visible in the viewport. */
.rgt-table-v2-floating-scrollbar {
  position: fixed;
  bottom: 0;
  height: 14px;
  overflow-x: scroll;
  overflow-y: hidden;
  z-index: 500;
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid #d5dbdb;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.08);
  display: none;
}
.rgt-table-v2-floating-scrollbar-inner {
  height: 1px;
}
.rgt-table-v2-floating-scrollbar::-webkit-scrollbar {
  height: 14px;
  -webkit-appearance: none;
  appearance: none;
}
.rgt-table-v2-floating-scrollbar::-webkit-scrollbar-track {
  background: #f1f3f5;
}
.rgt-table-v2-floating-scrollbar::-webkit-scrollbar-thumb {
  background: #adb5bd;
  border-radius: 4px;
  border: 2px solid #f1f3f5;
}
.rgt-table-v2-floating-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #868e96;
}
@media (max-width: 799px) {
  /* On mobile, native swipe-to-scroll is preferred; hide floating bar to save space */
  .rgt-table-v2-floating-scrollbar {
    display: none !important;
  }
}

/* Base table */
.rgt-table-v2 {
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}
.rgt-table-v2 thead th {
  background-color: #fafafa;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 1px solid #d5dbdb;
  padding: 8px 10px;
  white-space: nowrap;
  vertical-align: middle;
  will-change: transform;
}
.rgt-table-v2 tbody td,
.rgt-table-v2 tbody th {
  padding: 8px 10px;
  vertical-align: middle;
  background-color: #fff;
}
.rgt-table-v2 td img,
.rgt-table-v2 th img {
  max-height: 50px;
  max-width: min(100px, 100%);
  object-fit: contain;
}

/* Style: striped */
.rgt-table-v2-striped tbody tr:nth-child(even) td,
.rgt-table-v2-striped tbody tr:nth-child(even) th {
  background-color: #fafafa;
}

/* Style: hover */
.rgt-table-v2-hover tbody tr:hover td,
.rgt-table-v2-hover tbody tr:hover th {
  background-color: #f1f3f3;
}
.rgt-table-v2-hover tbody tr.rgt-table-v2-no-data:hover td,
.rgt-table-v2-hover tbody tr.rgt-table-v2-no-data:hover th,
.rgt-table-v2-color-blue.rgt-table-v2-hover tbody tr.rgt-table-v2-no-data:hover td,
.rgt-table-v2-color-blue.rgt-table-v2-hover tbody tr.rgt-table-v2-no-data:hover th {
  background-color: #fff !important;
  cursor: default;
}

/* Style: border all — inner borders only, container provides outer border */
.rgt-table-v2-bordered thead th,
.rgt-table-v2-bordered tbody td,
.rgt-table-v2-bordered tbody th {
  border-right: 1px solid #d5dbdb;
  border-bottom: 1px solid #d5dbdb;
}
.rgt-table-v2-bordered tr th:last-child,
.rgt-table-v2-bordered tr td:last-child {
  border-right: none;
}
.rgt-table-v2-bordered tbody tr:last-child td,
.rgt-table-v2-bordered tbody tr:last-child th {
  border-bottom: none;
}

/* Style: horizontal border */
.rgt-table-v2-bordered-horizontal tbody td,
.rgt-table-v2-bordered-horizontal tbody th {
  border-bottom: 1px solid #eaeded;
}
.rgt-table-v2-bordered-horizontal tbody tr:last-child td,
.rgt-table-v2-bordered-horizontal tbody tr:last-child th {
  border-bottom: none;
}

/* Style: compact */
.rgt-table-v2-compact thead th {
  padding: 5px 8px;
}
.rgt-table-v2-compact tbody td,
.rgt-table-v2-compact tbody th {
  padding: 4px 8px;
}

/* Sticky header — JS-based via transform:translateY on each th */
.rgt-table-v2-sticky-header thead th {
  will-change: transform;
}
.rgt-table-v2-thead-stuck thead th {
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* Sticky column cells — background + GPU compositing */
.rgt-table-v2-sticky-col {
  position: sticky;
  background-color: #fff;
  will-change: transform;
}
.rgt-table-v2-striped tbody tr:nth-child(even) .rgt-table-v2-sticky-col {
  background-color: #fafafa;
}
.rgt-table-v2-hover tbody tr:hover .rgt-table-v2-sticky-col {
  background-color: #f1f3f3;
}
thead .rgt-table-v2-sticky-col {
  background-color: #fafafa;
}

/* Shadow on last sticky column edge when scrolled */
.rgt-table-v2-sticky-col-shadow {
  box-shadow: 4px 0 6px -2px rgba(0, 0, 0, 0.1);
}

/* Pagination */
.rgt-table-v2-pagination .pagination {
  flex-wrap: wrap;
}
.rgt-table-v2-pagination .page-link {
  font-size: 14px;
  padding: 3px 8px;
}

/* Column settings button — same style as info bar */
.rgt-table-v2-config-btn {
  font-size: 14px;
  color: #545b64;
  border: 1px solid #d5dbdb;
  padding: 4px 10px;
  border-radius: 4px;
  background: #fff;
}
.rgt-table-v2-config-btn:hover,
.rgt-table-v2-config-btn:focus,
.rgt-table-v2-config-btn:focus-visible,
.rgt-table-v2-config-btn:active,
.rgt-table-v2-config-btn:active:focus,
.rgt-table-v2-config-btn.show,
.rgt-table-v2-config-btn.show:focus {
  color: #545b64 !important;
  background-color: #f2f3f3 !important;
  border-color: #d5dbdb !important;
  box-shadow: none !important;
}

/* Column settings */
.rgt-table-v2-col-settings-item {
  border-radius: 4px;
  transition: background-color 0.15s;
}
.rgt-table-v2-col-settings-item:hover {
  background-color: #f1f3f3;
}
.rgt-table-v2-drag-handle:hover {
  opacity: 1 !important;
}
.rgt-table-v2-col-settings-item.ui-sortable-helper {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 9999;
}

/* Sticky pin toggle in settings */
.rgt-table-v2-col-pin {
  cursor: pointer;
  opacity: 0.4;
  font-size: 10px;
  transition: opacity 0.15s, color 0.15s, background-color 0.15s;
  padding: 2px 4px;
  border-radius: 4px;
}
.rgt-table-v2-col-pin:hover {
  opacity: 0.8;
}
.rgt-table-v2-col-pin.rgt-table-v2-pin-active {
  opacity: 1;
  color: #fff;
  background-color: #0d6efd;
}

/* Hidden column */
.rgt-table-v2 [data-col-hidden="true"] {
  display: none;
}

/* Sort icon hover */
.rgt-v2-column-header:hover .bi-arrow-down-up {
  opacity: 1 !important;
}

/* Header drag-and-drop reorder */
.rgt-table-v2-wrapper[data-column-reorder="true"] .rgt-table-v2 thead th { cursor: grab; }
.rgt-table-v2-wrapper[data-column-reorder="true"] .rgt-table-v2 thead th:hover {
  background-color: #eef1f1;
}
.rgt-table-v2 thead th.ui-sortable-helper {
  cursor: grabbing;
  box-shadow: 2px 0 8px rgba(0,0,0,0.15);
  z-index: 9999;
  background: #fafafa;
}
.rgt-table-v2-th-placeholder {
  background: #e8f0fe !important;
  border: 1px dashed #4285f4 !important;
}

/* Column resize */
.rgt-table-v2-wrapper[data-column-resize="true"] .rgt-table-v2 thead th {
  position: relative;
}
.rgt-table-v2-resize-handle {
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  cursor: col-resize;
  user-select: none;
  z-index: 10;
}
.rgt-table-v2-resize-handle:hover,
.rgt-table-v2-resize-handle.rgt-resizing {
  background-color: #0d6efd;
}
.rgt-table-v2-wrapper.rgt-table-v2-resizing {
  cursor: col-resize;
  user-select: none;
}
.rgt-table-v2-wrapper.rgt-table-v2-resizing .rgt-table-v2 {
  cursor: col-resize;
}

/* In-card: table flush inside a card — no double border, no double radius */
.rgt-table-v2-in-card {
  margin: 0;
}
.rgt-table-v2-in-card .rgt-table-v2-scroll-container {
  margin: 0 -1px -1px -1px;
  overflow: hidden;
  border-radius: 0 0 0.5rem 0.5rem;
}
.card-body-flush-bottom .rgt-table-v2-in-card .rgt-table-v2-scroll-container {
  border-radius: 0;
  margin-bottom: 0;
  border-bottom: 0;
}
.rgt-table-v2-in-card .rgt-table-v2 thead th,
.rgt-table-v2-in-card .rgt-table-v2 tbody td {
  border-radius: 0 !important;
}
.rgt-table-v2-in-card .rgt-table-v2-bordered thead th:first-child,
.rgt-table-v2-in-card .rgt-table-v2-bordered tbody td:first-child {
  border-left: none;
}
.rgt-table-v2-in-card .rgt-table-v2-bordered thead th:last-child,
.rgt-table-v2-in-card .rgt-table-v2-bordered tbody td:last-child {
  border-right: none;
}
.rgt-table-v2-in-card .rgt-table-v2-bordered tbody tr:last-child td {
  border-bottom: none;
}

/* Color: blue — light blue header + striped */
.rgt-table-v2-color-blue thead th {
  background-color: #f0f7ff;
  border-bottom-color: #d0e3f7;
}
.rgt-table-v2-color-blue.rgt-table-v2-striped tbody tr:nth-child(even) td,
.rgt-table-v2-color-blue.rgt-table-v2-striped tbody tr:nth-child(even) th {
  background-color: #f8fbff;
}
.rgt-table-v2-color-blue.rgt-table-v2-hover tbody tr:hover td,
.rgt-table-v2-color-blue.rgt-table-v2-hover tbody tr:hover th {
  background-color: #edf4fc;
}
.rgt-table-v2-color-blue.rgt-table-v2-bordered thead th,
.rgt-table-v2-color-blue.rgt-table-v2-bordered tbody td,
.rgt-table-v2-color-blue.rgt-table-v2-bordered tbody th {
  border-color: #d0e3f7;
}
.rgt-table-v2-color-blue.rgt-table-v2-bordered-horizontal tbody td,
.rgt-table-v2-color-blue.rgt-table-v2-bordered-horizontal tbody th {
  border-color: #e4eff9;
}
.rgt-table-v2-color-blue .rgt-table-v2-sticky-col {
  background-color: #fff;
}
.rgt-table-v2-color-blue.rgt-table-v2-striped tbody tr:nth-child(even) .rgt-table-v2-sticky-col {
  background-color: #f8fbff;
}
.rgt-table-v2-color-blue thead .rgt-table-v2-sticky-col {
  background-color: #f0f7ff;
}
[data-column-reorder="true"] .rgt-table-v2-color-blue thead th:hover {
  background-color: #e4eff9;
}
.rgt-table-v2-color-blue thead th.ui-sortable-helper {
  background-color: #f0f7ff;
}

/*--------------------------------------------------------------
# Filter Bar Compact
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Filter DateTime
--------------------------------------------------------------*/
.filter-datetime {
  flex-wrap: nowrap;
}
.filter-datetime .filter-datetime-separator {
  padding: 0.25rem 0.3rem;
  color: #6c757d;
}
.filter-datetime .fp-alt {
  flex: 0 0 110px;
  width: 110px;
}
.filter-datetime .datetimepicker ~ .fp-alt {
  flex: 0 0 140px;
  width: 140px;
}

@media (max-width: 576px) {
  .rgt-filter-items > div:has(> .filter-datetime) {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
  }
  .filter-datetime {
    width: 100%;
    min-width: 0;
  }
  .filter-datetime .fp-alt {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
  }
  .filter-datetime .datetimepicker ~ .fp-alt {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
  }
  .filter-datetime .filter-datetime-separator {
    padding: 0.25rem 0.15rem;
  }
  .filter-datetime > .input-group-text:first-child {
    flex: 0 1 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90px;
    font-size: 0.75rem;
    padding: 0.25rem 0.4rem;
  }
}

/*--------------------------------------------------------------
# Flatpickr Overrides
--------------------------------------------------------------*/
.fp-alt {
  background-color: #fff;
  cursor: pointer;
}
.flatpickr-calendar {
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.flatpickr-months .flatpickr-month {
  height: 40px;
}
.flatpickr-current-month {
  font-size: 1rem;
}
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange {
  background: var(--bs-primary, #0d6efd);
  border-color: var(--bs-primary, #0d6efd);
}
.flatpickr-day.today {
  border-color: var(--bs-primary, #0d6efd);
}
.flatpickr-day.today:hover {
  background: var(--bs-primary, #0d6efd);
  border-color: var(--bs-primary, #0d6efd);
  color: #fff;
}
.flatpickr-confirm {
  margin-top: 4px;
  border-radius: 0 0 8px 8px;
}
.flatpickr-time .numInputWrapper .arrowUp,
.flatpickr-time .numInputWrapper .arrowDown {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================================
 * Global Certificate Setting (used by global/project/certificateSetting)
 * ============================================================ */
.cert-setting-wrapper { display:flex; gap:20px; margin-top:10px; align-items:flex-start; }
.cert-preview-area { flex:1; min-width:0; display:flex; justify-content:center; align-items:flex-start; }
.cert-preview-empty { aspect-ratio:297/210; width:100%; max-width:800px; display:flex; align-items:center; justify-content:center; border:2px dashed #dee2e6; border-radius:6px; background:#fafafa; color:#6c757d; font-size:1rem; }
.cert-settings-panel { width:280px; flex-shrink:0; padding:16px; background:#f8f9fa; border-radius:8px; border:1px solid #dee2e6; align-self:flex-start; position:sticky; top:50px; }
.cert-preview-scale-wrapper { overflow:hidden; }
.cert-preview-container { position:relative; border:1px solid #ddd; border-radius:4px; overflow:hidden; user-select:none; max-height:calc(100vh - 120px); aspect-ratio:297/210; transform-origin:top left; }
.cert-bg-img { width:100%; height:100%; display:block; object-fit:contain; }
.cert-draggable { position:absolute; cursor:move; padding:2px 8px; border:1px dashed rgba(0,0,0,0.3); border-radius:3px; background:rgba(255,255,255,0.7); white-space:nowrap; z-index:10; transition:border-color 0.15s; }
.cert-draggable:hover, .cert-draggable.dragging { border-color:#0d6efd; background:rgba(255,255,255,0.9); box-shadow:0 1px 4px rgba(0,0,0,0.15); }
.cert-center-guide-v { position:absolute; top:0; bottom:0; left:50%; width:1px; background:rgba(13,110,253,0.5); z-index:5; display:none; pointer-events:none; }
.cert-center-guide-h { position:absolute; left:0; right:0; top:50%; height:1px; background:rgba(13,110,253,0.5); z-index:5; display:none; pointer-events:none; }
.cert-align-guide-h { position:absolute; left:0; right:0; height:1px; background:rgba(220,53,69,0.6); z-index:5; display:none; pointer-events:none; }
.cert-font-spinner { flex-wrap:nowrap; }
.cert-font-spinner .form-control { min-width:36px; max-width:50px; }
.cert-font-spinner .btn { padding:0.25rem 0.4rem; }
.cert-color-picker { display:flex; align-items:center; gap:4px; }
.cert-color-input { width:28px; height:28px; padding:1px; border:1px solid #dee2e6; border-radius:4px; cursor:pointer; background:none; }
.cert-color-text { width:70px !important; font-size:12px !important; padding:3px 5px !important; }
.cert-popup-toolbar { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-bottom:12px; }
.cert-popup-preview { text-align:center; max-width:100%; }
.cert-popup-bg { max-width:100%; max-height:calc(100vh - 120px); height:auto; display:inline-block; box-shadow:0 2px 12px rgba(0,0,0,0.1); border-radius:4px; }
.cert-bg-upload-wrap { display:flex; gap:8px; }
.cert-bg-upload-single { width:100px; aspect-ratio:297/210; border:1px solid #dee2e6; border-radius:4px; overflow:hidden; background:#f8f9fa; }
.cert-bg-upload-single .show-picture-button { width:100%; height:100%; display:flex; align-items:center; justify-content:center; }
.cert-bg-upload-single img { width:100%; height:100%; object-fit:contain; display:block; }
.cert-bg-upload-empty { width:100%; height:100%; display:flex; align-items:center; justify-content:center; border:2px dashed #ccc; background:#fafafa; border-radius:4px; color:#adb5bd; font-size:1.5rem; cursor:pointer; padding:0; }
.cert-bg-upload-empty:hover { color:#0d6efd; border-color:#0d6efd; background:#f0f7ff; }
@media (max-width:799px) {
  .cert-setting-wrapper { flex-direction:column; }
  .cert-settings-panel { width:100%; position:static; }
  .cert-preview-scale-wrapper { width:100%; overflow:hidden; }
  .cert-preview-container { max-height:none; }
  .cert-bg-upload-single { width:100px; }
}
