.accordion {
  padding: 0px !important;
  flex-direction: column;
}

select:invalid,
select option[value=""][disabled] {
  color: #777777;
  
}

input:focus{
  border-color: #1DE6C1 !important;
}


.form-select{
  background-color: #fff;
}


.search-select2{
  border-color: #DBDBDB;
  color: #777777;
}

.form-select:disabled{
  color: #777777 !important;
  border-color: #DBDBDB !important;
  background-color: #F5F5F5 !important;
  --bs-form-select-bg-img: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='%23222222' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m2 5 6 6 6-6'/></svg>") !important;
}

.form-select{
  --bs-form-select-bg-img: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m2 5 6 6 6-6'/></svg>") !important;
}

.form-select:focus{
  box-shadow: 0 0 0 0 #fff;
}

#table-oil-price {
  display: none; /* ซ่อนตารางโดยค่าเริ่มต้น */
}

#table-oil-price.show {
  display: block; /* แสดงตารางเมื่อมีข้อมูล */
}

select,
select option:checked {
  color: black;
  font-weight: 400 !important;
}

.form-select{
  font-weight: 400 !important;
}

input{
  font-weight: 400 !important;
}

.accordion-item .img-fluid{
  object-fit: cover;
  width: 100% !important;
}

.list-group-item div{
  padding-top: 0.2rem !important;
}

.simple-search-wrapper {
  position: relative;
  display: inline-block;
}
.simple-search-dropdown {
  position: absolute;
  top: 75%;
  left: 5%;
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
  background: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

  
}

.simple-search-dropdown::-webkit-scrollbar ,#search-input::-webkit-scrollbar {
  width: 3px;
  border-radius: 10px;
}

.simple-search-dropdown::-webkit-scrollbar-track  ,#search-input::-webkit-scrollbar-track {
  background: #ffffff;
  border-radius: 10px;
}

.simple-search-dropdown::-webkit-scrollbar-thumb ,#search-input::-webkit-scrollbar-thumb {
  background-color: #1DE6C1;
  border-radius: 10px;
  border: 3px none #ff0a0a;
}

.simple-search-dropdown li {
  padding: 5px 10px;
  cursor: pointer;
  text-align: start;
  font-size: 1rem;
}
.simple-search-dropdown li:hover {
  background: #f0f0f0;
}
.simple-search-dropdown li.no-results {
  font-style: italic;
  color: #999;
}
/* Specific rule for the search-input */

#search-input option:checked {
  color: black;
}

.img-underline {
  min-width: 103%;
  bottom: -8px !important;
}

.npy {
  padding-top: 2rem;
  padding-bottom: 2.25rem;
}

@media (max-width: 768px) {
  select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
  }
}

.mobile-select-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-select-modal.active {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.mobile-select-modal.show {
  opacity: 1;
}

.mobile-select-content {
  background-color: white;
  width: 100%;
  height: 75vh;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.mobile-select-modal.show .mobile-select-content {
  transform: translateY(0);
}

.mobile-select-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 20px;
  position: relative;
}

.mobile-select-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.mobile-select-close {
  position: absolute;
  right: 20px;
  background: transparent !important;
  border: none;
  color: #000 !important;
  font-size: 32px;
  padding: 0px;
  cursor: pointer;
  line-height: 1;
}

.mobile-select-search-wrapper {
  position: relative;
  padding: 10px 20px;
}

.mobile-select-search-icon {
  position: absolute;
  left: 3rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: auto;
}

.mobile-select-search {
  width: 100%;
  padding: 10px 10px 10px 3.5rem !important;
  border-radius: 8px !important;
  font-size: 16px;
  border: #dbdbdb 1px solid !important;
}

.mobile-select-options {
  list-style-type: none;
  padding: 0;
  margin: 0;
  overflow-y: auto;
  flex-grow: 1;
}

.mobile-select-option {
  padding: 15px 20px;
  font-size: 16px;
  color: #333;
}

.accordion-body {
  padding: 0 var(--bs-accordion-body-padding-x);
}

.table {
  border-collapse: separate;
  border-spacing: 0px 10px;
}

.diesel {
  background-color: #333333;
}

.diesel-b7 {
  background-color: #666666;
}

.gasohol-e85 {
  background-color: #ff9933;
}

.gasohol-e20 {
  background-color: #ff6600;
}

.gasohol-91 {
  background-color: #cc3300;
}

.gasohol-95 {
  background-color: #990000;
}

.bensin {
  background-color: #006600;
}

.diesel-b7-premium {
  background-color: #000066;
}

.gasohol-e95-premium {
  background-color: #660066;
}

.oil-tag {
  /*width: 100%;*/
  min-height: 60px;
  padding: 10px 20px 10px 20px !important;
  color: #1de5c0 !important;
  background-color: #000 !important;
  border-radius: 6px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.white-s {
  white-space: nowrap;
  display: flex;
  gap: 5px;
  align-items: flex-end;
}

.oil-tag2 {
  /*width: 100%;*/
  min-height: 60px;
  padding: 10px 20px 10px 20px !important;
  color: #1de5c0 !important;
  background-color: #000 !important;
  border-radius: 6px;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.text-small {
  font-size: 14px;
}

.color-white {
  color: #fff !important;
  font-weight: 500 !important;
}

.col-container {
  vertical-align: middle;
}

.table-col{
  padding: 5% !important;
  text-align: center !important;
  width: 100% !important;
}

@media (max-width: 996px) {
  .table-col{
    text-align: start !important;
    padding: 5% 10% !important;
  }
  .npy {
    padding-top: 2rem;
    padding-bottom: 1.25rem;
  }

  .form-select{
    width: 100% !important;
  }
}

h2{
  font-size: 36px !important;
}

h3{
  font-size: 20px !important;
}

h4{
  font-size: 18px !important;
}