.bg-primary {
  background-color: var(--theme-color-primary) !important;
}

.text-primary {
  color: var(--theme-color-primary) !important;
}

.border-radius-top {
  border-radius: var(--border-radius-button) var(--border-radius-button) 0px 0px !important;
}

.page-header {
  /* color: var(--theme-color-primary); */
  font-size: 18px;
  line-height: .9em;
  margin-top: 10px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  display: none;
  float: left;
  min-width: 10rem;
  padding: 0.5rem 0;
  margin: 0.125rem 0 0;
  font-size: .8125rem;
  color: #495057;
  text-align: left;
  list-style: none;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 0.25rem;
}

.dropdown-menu.show {
  width: 100%;
  position: absolute;
  will-change: transform;
  top: 0px;
  left: 0px;
  transform: translate3d(5px, 45px, 0px);
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 0.35rem 1.5rem;
  clear: both;
  font-weight: 400;
  color: #212529;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
  font-weight: bold;
}

.dropdown-item:active,
.dropdown-item:hover,
.dropdown-item:focus {
  background-color: #e1e1e1;
  text-decoration: none;
}

.block-title {
  font-size: 20px;
  margin-bottom: 6px;
  text-align: center;
  font-weight: bold;
}

.block-sub-title {
  font-size: 14px;
  margin-bottom: 6px;
  text-align: center;
}

.chosen-single.required {
  background-color: rgba(237, 35, 36, 0.1);
  border-color: #ed2324;
}

.font-12 {
  font-size: 12px;
}

.font-13 {
  font-size: 13px;
}

.nowrap {
  white-space: nowrap;
}

.star {
  color: #f75858;
  font-weight: bold;
}

.required {
  background-color: #ffe9e9 !important;
  border: 1px solid #f75858 !important;
}

.required:focus {
  background-color: #ffe9e9 !important;
  border: 1px solid #f75858 !important;
}

.validate {
  padding-top: 5px;
  font-size: 14px;
  color: #f75858;
}

.breadcrumb {
  background: #f7f7f7;
  border-bottom: 1px solid #e4e4e4;
  border-radius: 0;
  font-size: 13px;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}

.show-breadcrumb {
  padding-bottom: 0px;
}

.breadcrumb-item.active {
  /* font-size: 16px; */
  text-align: left;
  font-weight: bold;
  color: #212529;
}

.breadcrumb-item.active:hover {
  color: #007cf8;
}

.breadcrumb-item {
  /* font-size: 16px; */
  text-align: left;
  font-weight: normal;
  color: #868484;
}

.breadcrumb-item:hover {
  color: #007cf8;
}

.breadcrumb-item+.breadcrumb-item::before {
  content: ">";
}

.form-row {
  margin: 0 0 10px 0;
}

.loader {
  border: 15px solid #f3f3f3;
  border-radius: 50%;
  /* border-top: 15px solid #f8ae20; */
  width: 90px;
  height: 90px;
  -webkit-animation: spin 0.7s linear infinite;
  /* Safari */
  animation: spin 0.7s linear infinite;
}

.loader-section {
  position: fixed;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1100;
}

.loader-section>div {
  height: 100%;
}

/* Safari */
@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.form-group .form-label-sm {
  font-size: 14px;
}

.form-control-datepicker-sm {
  background-image: url("../images/icon/calendar_dark_gray_16_x_16.png");
  background-position: right 7px center;
  background-repeat: no-repeat;
}

.scrolling {
  border: 1px solid #e4e4e4;
  border-radius: 4px;
  height: 200px;
  overflow-y: scroll;
  padding: 15px;
}

::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/*
::-webkit-scrollbar:horizontal {
    width: 5px;5
}
*/

.pagination {
  /* background: #eeeeee; */
  display: flex;
  margin-bottom: 30px;
  padding: 7px;
}

.pagination .paging {
  align-self: center;
  font-size: 12px !important;
}

.pagination .page-information {
  font-size: 12px;
  font-weight: 700;
  margin-left: auto;
}

.pagination .page-information .page-summary label,
.pagination .page-information .page-size label {
  margin: 0;
}

.pagination .page-information .page-summary {
  margin-bottom: 5px;
  text-align: right;
}

.pagination .page-information .page-size label {
  margin-right: 5px;
}

.pagination .page-information .page-size select {
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
}

.modal .modal-footer button {
  margin: 0 !important;
  margin-left: 15px !important;
}

.modal .modal-footer button:first-child {
  margin: 0 !important;
}

.footer-nav a {
  font-size: 12px;
  color: #6c757d;
}

.footer-nav i {
  font-size: 18px;
}

.footer-nav .nav-link {
  color: #666;
  /* ปกติ */
}

.footer-nav .nav-link.active {
  color: var(--theme-color-primary);
}

.footer-nav .nav-link.active i {
  color: var(--theme-color-primary);
}

.more-menu {
  position: fixed;
  bottom: 56px;
  /* เหนือ nav */
  left: 0;
  width: 100%;
  display: none;
  z-index: 1000;
  padding-bottom: 15px;
  box-shadow: 20px 20px 20px 20px rgb(0 0 0 / 10%);
}

.form-control-password {
  background-image: url("../images/icon/hide_gray_24_x_24.png");
  background-position: right 15px center;
  background-repeat: no-repeat;
}

.form-control-password.active {
  background-image: url("../images/icon/view_gray_24_x_24.png");
  background-position: right 15px center;
  background-repeat: no-repeat;
}

.white-block-verify {
  background-color: #fff;
  width: 40%;
}

.white-block {
  background-color: #fff;
  width: 80%;
}

.white-block-prod {
  background-color: #fff;
  width: 80%;
}

select.readonly {
  -webkit-appearance: none;
  -moz-appearance: none;
  text-indent: 1px;
  text-overflow: "";
  background-color: transparent !important;
  border: 0 !important;
  cursor: default !important;
  text-align-last: center;
}

/* radio button */
@keyframes click-wave {
  0% {
    height: 40px;
    width: 40px;
    opacity: 0.35;
    position: relative;
  }

  100% {
    height: 100px;
    width: 100px;
    margin-left: -40px;
    margin-top: -40px;
    opacity: 0;
  }
}

.chosen-single {
  padding: 0.375rem 0.75rem !important;
  height: calc(2.25rem + 2px) !important;
}

button:disabled,
button[disabled] {
  opacity: 0.5;
  /* border: 1px solid #999999; */
  /* background-color: #cccccc; */
  /* color: #666666; */
}

.feed-subject {
  margin: auto;
  padding: 0;
}

.feed .feed-box .feed-subject {
  padding: 10px;
  float: none;
}

.feed-box {
  /* box-shadow: rgb(0 0 0 / 35%) 0px 5px 15px; */
  border: 1px solid #ced4da;
  background: #fff;
  margin-bottom: 15px;
}

.feed-body {
  padding-left: 15px;
  padding-right: 15px;
  padding-bottom: 15px;
}

.feed-content {
  font-size: 15px;
}

.social-footer {
  border-top: 1px solid #e7eaec;
  padding: 10px 15px;
  background: #f9f9f9;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(8);
  grid-template-rows: repeat(6);
  grid-gap: 2px;
}

.gallery__item {
  border: 1px solid #eee;
}

img {
  object-fit: cover;
}

.img-solo {
  grid-column-start: 1;
  grid-column-end: 6;
  grid-row-start: 1;
  grid-row-end: 6;
}

.img-twin-1 {
  grid-column-start: 1;
  grid-column-end: 3;
  grid-row-start: 1;
  grid-row-end: 3;
}

.img-twin-2 {
  grid-column-start: 3;
  grid-column-end: 5;
  grid-row-start: 1;
  grid-row-end: 3;
}

.img-more-1 {
  grid-column-start: 1;
  grid-column-end: 6;
  grid-row-start: 1;
  grid-row-end: 7;
}

.img-more-2 {
  grid-column-start: 6;
  grid-column-end: 9;
  grid-row-start: 1;
  grid-row-end: 4;
}

.img-more-3 {
  grid-column-start: 6;
  grid-column-end: 9;
  grid-row-start: 4;
  grid-row-end: 7;
}

.text-more-pic {
  color: #000000;
  font-size: 50px;
  grid-column-start: 7;
  grid-column-end: 7;
  grid-row-start: 5;
  grid-row-end: 5;
}

.privilege-shop {
  /* font-weight: bold; */
  font-size: 14px;
  /* height: 60px; */
  height: 20px;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}

.privilege-exp {
  height: 20px;
  padding-top: 0.25rem;
  font-size: 12px;
}

.privilege-point {
  height: 20px;
  padding-top: 0.5rem;
  font-size: 12px;
}

/* .privilege-menu {
  padding-left: 15px;
  padding-right: 15px;
} */

.block-menu:link,
.block-menu:visited {
  text-decoration: none;
  display: inline-block;
  width: 100%;
  height: 260px;
  box-shadow: rgb(0 0 0 / 35%) 0px 5px 15px;
  /* border-radius: 8px; */
  color: #000000;
}

.block-menu:hover {
  box-shadow: 2px 2px 10px rgb(0 0 0 / 100%);
  color: #000000;
}

.block-menu .img-menu {
  display: block;
  width: 100%;
  height: 180px;
}

.block-menu .detail-menu {
  font-size: 13px;
  background-color: rgb(230, 230, 230);
  /* border: 0.1px solid #aaa; */
  padding-top: 5px;
  padding-left: 5px;
  padding-right: 5px;
  display: block;
  width: 100%;
  height: 50px;
}

.block-menu .shop-menu {
  font-size: 13px;
  padding-top: 5px;
  padding-left: 5px;
  padding-right: 5px;
  display: block;
  width: 100%;
  height: 30px;
  color: rgba(141, 143, 143);
  /* border: 0.1px solid #aaa; */
}

/* =================== Privilege_detail ======================*/

.nav-tabs-custom {
  border-bottom: 2px solid #f6f6f6;
}

.nav-tabs-custom .nav-item {
  position: relative;
  color: #343a40;
}

.nav-pills>li>a,
.nav-tabs>li>a {
  color: #495057;
  font-weight: 500;
}

.nav-tabs .nav-item {
  margin-top: auto;
  margin-bottom: -1px;
}

.nav-tabs-custom .nav-item .nav-link.active {
  color: #556ee6;
  font-weight: bold;
}

.nav-tabs-custom .nav-item .nav-link {
  border: none;
}

.nav-tabs-custom .nav-item .nav-link.active:after {
  -webkit-transform: scale(1);
  transform: scale(1);
}

.nav-tabs-custom .nav-item .nav-link::after {
  content: "";
  background: #556ee6;
  height: 2px;
  position: absolute;
  width: 100%;
  left: 0;
  bottom: -1px;
  -webkit-transition: all 250ms ease 0s;
  transition: all 250ms ease 0s;
  -webkit-transform: scale(0);
  transform: scale(0);
}

.block-image {
  border: 1px solid #f7f7f7;
}

.block-name {
  margin-bottom: 0.75rem;
  font-weight: bold;
  font-size: 20px;
}

.tab-pane {
  margin-top: 13px;
  margin-left: 10px;
  margin-right: 10px;
  font-size: 13px;
}

.line-dot-black {
  border: none;
  border-top: 1px dashed rgb(201, 201, 201);
  color: #fff;
  background-color: #fff;
  height: 2px;
  width: 100%;
}

/* ============= Privilege-History ========== */
.block-history:link,
.block-history:visited {
  text-decoration: none;
  display: inline-block;
  width: 100%;
  height: 150px;
  box-shadow: 2px 5px 10px rgb(0 0 0 / 50%);
  /* border-radius: 8px; */
  color: #000000;
}

.block-history:hover {
  box-shadow: 2px 2px 10px rgb(0 0 0 / 100%);
  color: #000000;
}

.flip-clock-divider.minutes {
  clear: none;
}

.img-history {
  width: 100%;
  height: 120px;
  object-fit: cover;
  /* border: 1px solid #dbdbdb; */
  box-shadow: 1px 1px 5px rgb(0 0 0 / 100%);
}

.countdown {
  font-size: 50px;
  display: block;
  text-align: center;
  font-weight: bold;
}

.chosen-container-single .chosen-single {
  border-radius: 5px !important;
  border: 1px solid #ced4da !important;
}

.control-panel {
  background: #ffffff;
  padding: 15px;
}

.control-panel .control-panel-item,
.control-panel .control-panel-item .control-panel-title,
.control-panel .control-panel-item .control-panel-action {
  display: inline-block;
  vertical-align: middle;
}

.control-panel .control-panel-item .control-panel-title {
  color: #3b3b3b;
  font-size: 14px;
  margin-left: 15px;
  font-weight: bold;
}

.control-panel .control-panel-item .control-panel-action,
.control-panel .control-panel-item .control-panel-action .form-control {
  font-size: 14px;
  width: 100%;
}

.control-panel .control-panel-item .control-panel-action .form-control:focus {
  border: 1px solid #ced4da;
  box-shadow: none;
}

.discount-none {
  text-decoration: line-through;
}

.text-col-red {
  color: #ed2324;
}

.navbar-right-bottom {
  display: flex;
}

.navbar-right-bottom .navbar-search {
  align-items: center;
  display: inline-flex;
  position: relative;
  justify-content: center;
  vertical-align: middle;
  width: 100%;
}

.navbar-right-bottom .navbar-search input {
  background-image: url(../images/icon/magnifying_glass_gray_16_x_16.png);
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding: 5px 15px;
  vertical-align: middle;
  color: gray;
}

.navbar-right-bottom .button-search {
  position: absolute;
  right: 7px;
  height: 100%;
  width: 30px;
  opacity: 0;
  cursor: pointer;
}


.privilege-menu .list-gp-item .card-body .card-text .btn-submit {
  width: 40%;
}

/* radio-block */
.custom-radio-option {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.3s;
}

.custom-radio-option input[type="radio"] {
  margin-right: 12px;
  transform: scale(1.2);
}

.custom-radio-option:hover {
  border-color: var(--theme-color-primary);
}

/* ตอน checked */
.custom-radio-option input[type="radio"]:checked+.label-content {
  color: var(--theme-color-primary);
  font-weight: bold;
}

.custom-radio-option:has(input[type="radio"]:checked) {
  border-color: var(--theme-color-primary) !important;
  background-color: rgba(0, 123, 255, 0.02);
}

.custom-radio-option input[type="radio"] {
  accent-color: var(--theme-color-primary);
  /* เปลี่ยนสีพื้นหลังปุ่ม Radio เป็นสีฟ้า */
  margin-right: 12px;
  transform: scale(1.2);
}

.custom-radio-label {
  display: flex;
  align-items: center;
  width: 100%;
  cursor: pointer;
}


/* checkbox */
.option-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  -ms-appearance: none;
  -o-appearance: none;
  appearance: none;
  position: relative;
  top: 9px;
  right: 0;
  bottom: 0;
  left: 0;
  height: 24px;
  width: 24px;
  transition: all 0.15s ease-out 0s;
  background: #aaa;
  border: none;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  margin-right: 0.5rem;
  outline: none;
  position: relative;
  z-index: 1000;
}

.option-input:checked {
  background: var(--theme-color-primary);
}

.input-checkbox:checked::before {
  height: 24px;
  width: 24px;
  position: absolute;
  content: '\f00c';
  font-family: "Font Awesome 5 Free";
  font-weight: 600;
  display: inline-block;
  font-size: 15px;
  right: 0.5px;
  text-align: center;
  line-height: 24px;
  color: #fff;
}

/* radion */
.input-radio:checked::before {
  height: 24px;
  width: 24px;
  position: absolute;
  content: '\f00c';
  font-family: "Font Awesome 5 Free";
  font-weight: 600;
  display: block;
  font-size: 15px;
  text-align: center;
  line-height: 24px;
  color: rgb(255, 255, 255);
}

.option-input:checked::after {
  background: var(--theme-color-primary);
  content: "";
  display: block;
  position: relative;
  z-index: 100;
}

.option-input.radio {
  border-radius: 50%;
}

.option-input.radio::after {
  border-radius: 50%;
}

.info-notice-block {
  background-color: #f0f7ff;
  border-left: 5px solid #2b63e1;
  padding: 16px 20px;
  position: relative;
  box-shadow: 0 2px 10px rgba(43, 99, 225, 0.05);
  /* เงานิดๆ ให้ดูมีมิติ */
}

.info-notice-block-2 {
  background-color: #f0f7ff;
  padding: 16px 20px;
  position: relative;
  box-shadow: 0 2px 10px rgba(43, 99, 225, 0.05);
  /* เงานิดๆ ให้ดูมีมิติ */
}

/* สไตล์ Input ให้เหมือนในรูป */
.custom-input {
  background-color: #ffff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  font-size: 16px;
  padding: 1.5rem 1rem;
}

.custom-input:focus {
  background-color: #fff;
  border-color: var(--theme-color-primary);
  box-shadow: 0 0 0 0.2rem rgba(43, 99, 225, 0.1);
}

.btn-add {
  background-color: #e8f5e9;
  color: var(--theme-color-primary);
  display: inline-flex !important;
  align-items: center !important;
  /* จัดกลางแนวตั้ง */
  justify-content: center !important;
  /* จัดกลางแนวนอน */
  padding: 0 !important;
  /* ล้างค่า padding เดิมออกให้หมด */
  font-size: 36px !important;
  /* ปรับขนาดตามต้องการ */
  line-height: 1 !important;
  /* บังคับไม่ให้มีระยะบรรทัดส่วนเกิน */
  border: none !important;
  transition: transform 0.2s ease-in-out;
  width: 40px;
  height: 40px;
}

.empty-msg {
  border: 2px dashed #eee;
  border-radius: 20px;
  font-size: 1.2rem;
}

/* เอฟเฟกต์ตอนกดให้ดูมีมิติ */
.add-land:active,
.add-building:active {
  transform: scale(0.9);
  /* ยุบตัวลงนิดหน่อยตอนจิ้ม */
}

/* Class กลางสำหรับคุมขนาดปุ่มทุกตัวให้เท่ากัน */
.btn-step-back,
.btn-step-draft,
.btn-step-save,
.btn-step-next {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px !important;
  font-weight: 600;
  border-radius: var(--border-radius-button) !important;
  transition: all 0.2s;
  width: 100%;
  /* จอเล็กให้เต็มความกว้าง */
}

.btn-step-draft {
  background-color: #fff !important;
  border: 1px solid #17a2b8 !important;
  color: #17a2b8 !important;
  /* box-shadow: 0 4px 15px rgba(23, 162, 184, 0.15); */
  /* ปรับสีเงาให้เข้ากับปุ่ม */
}

.btn-step-next {
  background-color: var(--theme-color-primary) !important;
  color: white !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(43, 99, 225, 0.25);
}

.btn-step-save {
  background-color: #218838 !important;
  color: white !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(33, 136, 56, 0.25);
}

.btn-step-back {
  background-color: #fff !important;
  color: #555 !important;
  border: 1px solid #dee2e6 !important;
}


/* ปรับแต่งสำหรับจอใหญ่ (Desktop / Tablet) */
@media (min-width: 768px) {

  .btn-step-back,
  .btn-step-draft,
  .btn-step-next {
    width: auto;
    /* ยกเลิกความกว้างเต็มจอ */
    min-width: 160px;
    /* กำหนดขนาดขั้นต่ำให้เท่ากัน */
    flex: 1;
    /* หารแบ่งพื้นที่เท่าๆ กัน 3 ปุ่ม */
    margin-right: 10px !important;
  }
}

/* เพิ่มเติม: ปรับแต่งลำดับปุ่ม (Order) ในมือถือ */
@media (max-width: 767px) {
  .gap-2 {
    gap: 12px !important;
    /* เพิ่มระยะห่างแนวตั้งในมือถือ */
  }
}

/* เอฟเฟกต์ตอนกด */
.btn:active {
  transform: scale(0.98);
}

.border-dashed {
  border: 2px dashed #d1d9e6;
  border-radius: 15px;
  cursor: pointer;
  background-color: #f8f9fb;
  transition: all 0.2s;
}

.border-dashed:hover {
  background-color: #f0f4ff;
  border-color: #2b63e1;
}

.file-preview-list .badge {
  font-weight: normal;
  font-size: 0.85rem;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #6c758e !important;
}

/* ตัวกล่องหลัก */
.select2-container--default .select2-selection--single {
  background-color: #ffff !important;
  border: 1px solid #e9ecef !important;
  border-radius: 12px !important;
  height: calc(2.875rem + 2px) !important;
  /* สูงเท่า lg */
  display: flex !important;
  align-items: center !important;
  transition: all 0.2s;
}

/* ตัวหนังสือข้างใน */
.select2-container--default .select2-selection--single .select2-selection__rendered {
  white-space: normal !important;
  word-wrap: break-word !important;
  color: #495057 !important;
  line-height: normal !important;
  padding-left: 1rem !important;
  font-size: 1.1rem !important;
}

/* จัดตำแหน่งลูกศร */
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100% !important;
  top: 0 !important;
  right: 10px !important;
  display: flex !important;
  align-items: center !important;
}

/* เมื่อ Focus (คลิกเลือก) */
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--theme-color-primary) !important;
  background-color: #fff !important;
  box-shadow: 0 0 0 0.2rem rgba(43, 99, 225, 0.1) !important;
}

/* แต่งตัว Dropdown รายการที่เด้งลงมา */
.select2-dropdown {
  border: 1px solid #e9ecef !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  overflow: hidden;
}

/* แต่งรายการข้างใน */
.select2-results__option {
  padding: 12px 15px !important;
  font-size: 16px !important;
}

/* สีไฮไลท์เวลาเอาเมาส์ชี้ */
.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: var(--theme-color-primary) !important;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
  /* 1. กำหนดขนาดปุ่มเป็นวงกลม */
  width: 30px !important;
  /* ปรับขนาดให้เล็กลงหน่อยเพื่อให้ดูพอดีกับ Select */
  height: 30px !important;
  border-radius: 50% !important;

  /* 2. จัดการตัว x ให้กลางเป๊ะด้วย Line-height */
  display: block !important;
  /* เปลี่ยนจาก flex เป็น block */
  text-align: center !important;
  line-height: 22px !important;
  /* ค่านี้ต้องน้อยกว่า height เล็กน้อยเพื่อให้ดูบาลานซ์สายตา */

  /* 3. จัดการตัวอักษร */
  font-size: 18px !important;
  /* 32px จะใหญ่เกินไปสำหรับปุ่มวงกลมในช่อง input */
  font-family: Arial, sans-serif !important;
  /* ใช้ฟอนต์มาตรฐานเพื่อให้ x ไม่เบี้ยว */

  /* 4. ตำแหน่ง */
  position: absolute !important;
  right: 40px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;

  /* 5. สีสันตามที่คุณตั้งไว้ */
  background-color: #6c757d !important;
  color: #fff !important;
  cursor: pointer;
  margin-top: 0 !important;
  padding: 0 !important;
  /* ล้าง padding ออกให้หมด */
}

/* ล้างสไตล์ตัว span ที่ครอบ x */
.select2-selection__clear span {
  display: inline !important;
  line-height: inherit !important;
}

.select2-container--default .select2-selection--single .select2-selection__clear:hover {
  opacity: 0.8;
  color: #fff !important;
}

/* กรณีใช้ร่วมกับ class is-invalid ของ Bootstrap */
.is-invalid+.select2-container--default .select2-selection--single,
.is-invalid+.select2-container--default .select2-selection--multiple {
  border-color: #f75858 !important;
  /* สีแดงเข้มตามธีมของคุณ */
  background-image: none !important;
  /* ปิดไอคอนตกใจของ Bootstrap ถ้ามันเบียด */
  background-color: #ffe9e9 !important;
}

/* แถม: ทำให้เงารอบๆ เป็นสีแดงอ่อนๆ ตอนโฟกัส */
.is-invalid+.select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: #f75858 !important;
  box-shadow: 0 0 0 0.2rem rgba(134, 24, 35, 0.1) !important;
}

/* กรอบแดงสำหรับบล็อกที่มี Error */
.item-error>.row {
  border: 2px solid #f75858 !important;
}

@media (max-width: 1200px) {
  .white-block-verify {
    width: 40%;
  }

  .white-block {
    width: 80%;
  }

  .white-block-prod {
    background-color: #fff;
    width: 85%;
  }

  .input-radio:checked::before {
    height: 24px;
    width: 24px;
    position: absolute;
    content: " \25CF";
    display: block;
    right: 0.5px;
    font-size: 24px;
    text-align: center;
    line-height: 24px;
    color: rgb(255, 255, 255);
  }

  .privilege-menu .card-body .card-text .btn-submit {
    width: 65%;
  }
}

@media (max-width: 992px) {
  .white-block-verify {
    width: 40%;
  }

  .white-block {
    width: 85%;
    margin-bottom: 10px;
  }

  .white-block-prod {
    background-color: #fff;
    width: 100%;
  }

  .input-radio:checked::before {
    height: 24px;
    width: 24px;
    position: absolute;
    content: " \25CF";
    display: block;
    font-size: 24px;
    text-align: center;
    line-height: 24px;
    color: rgb(255, 255, 255);
  }

  .privilege-menu .card-body .card-text .btn-submit {
    width: 65%;
  }
}

@media (max-width: 768px) {
  .white-block-verify {
    width: 90%;
  }

  .white-block {
    width: 90%;
  }

  .input-radio:checked::before {
    height: 24px;
    width: 24px;
    position: absolute;
    content: " \25CF";
    display: block;
    font-size: 16px;
    top: 1px;
    text-align: center;
    line-height: 24px;
    color: rgb(255, 255, 255);
  }

  .privilege-menu .card-body .card-text .btn-submit {
    width: 65%;
  }

}

@media (max-width: 576px) {
  .privilege-menu .card-body .card-text .btn-submit {
    width: 100%;
  }

  .custom-radio-item {
    flex: 1 1 45%;
    /* ในมือถือให้แสดงประมาณ 2 ปุ่มต่อแถว */
  }
}

@media (max-width: 468px) {
  .white-block-verify {
    width: 90%;
  }

  .white-block {
    width: 90%;
  }

  .white-block-prod {
    background-color: #fff;
    width: 100%;
  }

  .input-radio:checked::before {
    height: 24px;
    width: 24px;
    position: absolute;
    content: " \25CF";
    display: block;
    font-size: 16px;
    top: 1px;
    text-align: center;
    line-height: 24px;
    color: rgb(255, 255, 255);
  }

  .privilege-menu .card-body .card-text .btn-submit {
    width: 100%;
  }
}

@media (max-width: 375px) {
  .white-block-verify {
    width: 90%;
  }

  .white-block {
    width: 90%;
  }

  .white-block-prod {
    background-color: #fff;
    width: 100%;
  }

  .privilege-menu .card-body .card-text .btn-submit {
    width: 100%;
  }
}