@charset "utf-8";
/* CSS Document */

:root {
  --bs-body-color: #334155;
  --bs-border-radius: 0.5rem;
  --bs-border-radius-sm: 0.375rem;
}

/*Extra small devices (portrait phones, less than 576px)*/
@media (max-width: 575.98px) {
  html {
    font-size: 13.5px;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  html {
    font-size: 14px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  html {
    font-size: 14px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  html {
    font-size: 15px;
  }

  .sidenav {
    position: fixed !important;
    z-index: 5;
    top: 50px;
    bottom: 0;
    width: 250px;
    overflow-y: auto;
    padding-top: 30px;
  }

  .content-wrapper {
    margin-left: 250px;
    width: calc(100vw - 250px);
    transition: width 0.5s ease-in-out;
  }
}

/*
@media (max-width: 991.98px) {
  .content-wrapper {
    margin-left: 10px;
    width: 100%;
  }
}
  
  */
@media (max-width: 767.98px) {
  .table thead.d-md-table-header-group {
    display: none !important;
  }

  .table.group-mobile tbody tr {
    display: flex;
    align-items: flex-start;
    padding: 12px 5px;
    border-bottom: 1px solid #eee;
    width: 100%;
  }

  .table.group-mobile tbody td {
    display: block;
    border: none;
    padding: 0;
    background-color: transparent !important;
  }

  .table.group-mobile tbody td:first-child {
    flex: 0 0 35px;
    padding-top: 5px;
  }

  .table.group-mobile tbody td:last-child {
    flex: 0 0 45px;
    text-align: right;
    padding-top: 5px;
  }

  .table.group-mobile tbody td.mobile-info-block {
    flex: 1;
    padding: 0 5px;
    line-height: 1.4;
    overflow: hidden;
    /* ป้องกันข้อความยาวเกินไป */
  }

  /* --- ส่วนที่แก้ไข/เพิ่ม --- */
  .mobile-info-block .customer-name {
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* เปลี่ยนเป็น flex-start */
  }

  /* *** เพิ่ม: สไตล์สำหรับ name-and-icon *** */
  .mobile-info-block .name-and-icon {
    display: inline-flex;
    /* ทำให้ไอคอนกับชื่ออยู่ติดกัน */
    align-items: center;
    /* จัดให้อยู่กลางแนวตั้ง */
    min-width: 0;
    /* แก้ปัญหา Flexbox ตัดข้อความ */
    margin-right: 5px;
    /* เว้นวรรคก่อนวันที่ */
  }

  .mobile-info-block .name-and-icon i {
    flex-shrink: 0;
    /* ไม่ให้ไอคอนหด */
  }

  .mobile-info-block .doc-date-mobile {
    font-weight: normal;
    font-size: 0.8em;
    color: #666;
    flex-shrink: 0;
    /* ไม่ให้วันที่หด */
    white-space: nowrap;
    /* ไม่ให้วันที่ตัดคำ */
  }

  /* *** แก้ไข: เปลี่ยนเป็น doc-details-flex และเพิ่ม flex *** */
  .mobile-info-block .doc-details-flex {
    font-size: 0.85em;
    color: #555;
    display: flex;
    /* *** ทำให้เลขที่กับป้ายอยู่ติดกัน *** */
    align-items: center;
    /* *** จัดให้อยู่กลางแนวตั้ง *** */
  }

  .mobile-info-block .doc-details-flex span:first-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* ถ้าเลขที่ยาวให้ตัด ... */
  }

  .mobile-info-block .doc-summary {
    font-size: 0.85em;
    color: #555;
    display: flex;
    justify-content: space-between;
    margin-top: 2px;
  }

  .mobile-info-block .status-mobile {
    font-weight: bold;
  }

  .table tbody td.d-none.d-lg-table-cell {
    display: none !important;
  }

  .table tbody tr td[colspan="11"] {
    display: table-cell;
    width: 100%;
    text-align: center;
  }
}

/* X-Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  html {
    font-size: 15px;
  }
}

/* XX-Large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {}

.app_main_body {
  transition: margin-left 0.5s ease-in-out;
  padding-top: 80px;
  padding-bottom: 80px;
  min-height: 100vh;
}

body,
td,
th {
  font-family: "Noto Sans Thai", sans-serif;
  font-size: 1rem;
  font-weight: normal;
  line-height: 1.5;
  color: #334155;
}

/*margin-top: 80px; margin-bottom: 80px;*/
.table {
  --bs-table-color: #334155;
  --bs-table-border-color: #f1f5f9;
  --bs-table-hover-bg: rgba(0, 0, 0, 0.025);
  color: #334155;
  border-color: #f1f5f9;
}

.table td,
.table th {
  padding: 0.625rem 0.5rem !important;
  color: #334155;
  vertical-align: middle;
}

.price-summary-table td,
.price-summary-table th {
  padding: 0.5rem !important;
}


.table thead td,
.table th {
  font-weight: 600;

}

a.sort-column:hover,
a.sort-column:focus,
a.text-dark.sort-column:hover {
  text-decoration: none !important;
}

footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 50px;
}

.topnav {
  padding: 0.5rem 0;
}

.topnav-item {
  padding: 0.5rem;
}

.topnav-item a {
  text-decoration: none;
  color: #334155;
}

.sidenav-group {
  margin-bottom: 0.25rem;
}

.sidenav-group a {
  text-decoration: none;
  color: #334155;
  padding: 0.375rem 0rem;
  display: block;
  font-weight: 500;
}

.sidenav-group a.active {
  color: #0d6efd;
  font-weight: 500;
}

a.sidenav-item {
  text-decoration: none;
  color: rgba(0, 0, 0, 0.5);
  font-size: 0.975rem;
  padding: 0.25rem 0.5rem 0.25rem 2.5rem;
  font-weight: normal;
}

/*a.sidenav-item:hover {color: rgba(0,0,0,0.8);}*/
.number,
.number:hover {
  border-color: #dee2e6;
  background: white;
  color: #6c757d;
}

.page-title {
  font-weight: 600;
}

.fs-5-1 {
  font-size: 1.125rem;
}

.fs-7 {
  font-size: 0.95rem;
}

.fs-8 {
  font-size: 0.9rem;
}

.fs-9 {
  font-size: 0.85rem;
}

.fs-10 {
  font-size: 0.8rem;
}

.myfs-1 {
  font-size: 1.05rem;
}

.myfs-2 {
  font-size: 1.1rem;
}

.myfs-2-1 {
  font-size: 1.15rem;
}

.myfs-3 {
  font-size: 1.2rem;
}

.p-4-1 {
  padding: 2rem !important;
}

.p-4-2 {
  padding: 2.5rem !important;
}

.px-4-1 {
  padding-left: 2rem !important;
  padding-right: 2rem !important;
}

.pt-4-1 {
  padding-top: 2rem !important;
}

.pb-4-1 {
  padding-bottom: 2rem !important;
}

.px-4-2 {
  padding-left: 2.5rem !important;
  padding-right: 2.5rem !important;
}

.mb-4-1 {
  margin-bottom: 2rem !important;
}

.mb-4-2 {
  margin-bottom: 2.5rem !important;
}

.text-dark {
  color: #334155 !important;
}

.text-success {
  color: #10B981 !important;
}

.text-danger {
  color: #EF4444 !important;
}

.text-warning {
  color: #FBBF24 !important;
}

.text-info {
  color: #2FBCE0 !important;
}

.circle-success {
  color: #10B981 !important;
}

.circle-danger {
  color: #EF4444 !important;
}

.circle-warning {
  color: #FBBF24 !important;
}

.circle-info {
  color: #2FBCE0 !important;
}

.nav-link {
  color: rgba(0, 0, 0, 0.65);
}

optgroup {
  font-weight: 500;
}

.badge {
  font-weight: 400;
}

.badge-status-success {
  background-color: rgba(22, 163, 74, 0.1);
  color: #16a34a;
  font-weight: 500;
}

.badge-status-warning {
  background-color: rgba(234, 179, 8, 0.1);
  color: #eab308;
  font-weight: 500;
}

.badge-status-danger {
  background-color: rgba(220, 38, 38, 0.1);
  color: #dc2626;
  font-weight: 500;
}

.alert-message {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  border-radius: 0.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 1rem;
  border: 1px solid transparent;
}

.alert-message-success {
  background-color: rgba(22, 163, 74, 0.08);
  border-color: rgba(22, 163, 74, 0.2);
  color: #16a34a;
}

.alert-message-danger {
  background-color: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.2);
  color: #dc2626;
}

.alert-message-warning {
  background-color: rgba(234, 179, 8, 0.08);
  border-color: rgba(234, 179, 8, 0.2);
  color: #d97706;
}

.alert-message-info {
  background-color: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

hr {
  opacity: 0.15;
}

.rounded {
  border-radius: 0.75rem !important;
}

.popover {
  font-family: "Noto Sans Thai", sans-serif;
  line-height: 1rem;
  padding: 0.5rem;
  --bs-popover-body-padding-x: 1rem;
  --bs-popover-body-padding-y: 0.375rem;
}

.tooltip {
  font-family: "Noto Sans Thai", sans-serif;
}

.tooltip-inner {
  background-color: #5f6368;
}

.tooltip-arrow::before {
  border-top-color: #5f6368 !important;
  border-bottom-color: #5f6368 !important;
}

.btn {
  border-radius: 0.625rem;
  padding: 0.5rem 1rem;
  font-weight: 500;
}

.btn-secondary {
  background-color: #f1f5f9 !important;
  border: #f8fafc !important;
  color: #64748b !important;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
  background-color: #e2e8f0 !important;
  border: #f8fafc !important;
  color: #334155 !important;
}

.btn-secondary:disabled {
  background-color: #f8fafc !important;
  border: #f8fafc !important;
  color: #cbd5e1 !important;
}

.btn-outline-secondary {
  border-color: #e2e8f0 !important;
  color: #64748b !important;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:active,
.btn-outline-secondary:focus {
  background-color: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}

.btn-outline-secondary:disabled {
  border-color: #e2e8f0 !important;
  color: #cbd5e1 !important;
  background-color: transparent !important;
  opacity: 0.5;
}

.form-label {
  font-size: 13px !important;
  color: #888888 !important;
  font-weight: 500 !important;
}

.form-control {
  padding: 0.5rem 1rem !important;
  font-weight: 500 !important;
}

.form-select {
  padding: 0.5rem 2.25rem 0.5rem 1rem !important;
  font-weight: 500 !important;
}

/* Exclude form-floating elements with explicit resets for older browsers compatibility */
.form-floating>.form-control {
  padding: 1rem 0.75rem !important;
  font-weight: normal !important;
}

.form-floating>.form-control:focus,
.form-floating>.form-control:not(:placeholder-shown) {
  padding-top: 1.625rem !important;
  padding-bottom: 0.625rem !important;
}

.form-floating>.form-select {
  padding-top: 1.625rem !important;
  padding-bottom: 0.625rem !important;
  font-weight: normal !important;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
  border-color: #dee2e6;
  box-shadow: none;
}

.form-control::placeholder,
textarea::placeholder {
  color: #94a3b8 !important;
  opacity: 1 !important;
}

input:read-only,
[readonly]:focus,
.form-control:disabled,
.form-select:disabled {
  background-color: #fafafa !important;
  border: 1px solid #dee2e6 !important;
  box-shadow: none;
}

.form-floating input:disabled+label::after,
.form-floating input:read-only+label::after {
  background-color: transparent !important;
}

.bill-input input[type="text"] {
  padding: 0.375rem !important;
}

.bill-input td:first-child {
  padding-left: 2rem !important;
}

.bill-input td:last-child {
  padding-right: 2rem !important;
}

.bill-input thead td,
.bill-input thead th {
  background-color: #fafafa !important;
}

.border-round-main {
  height: calc(100% - 0px);
}

/*Start Table Scroll Bar*/
.table-container {
  position: relative;
  height: calc(100% - 0px);
  /* Adjust based on your header height */
  /*  margin-bottom: 60px;*/
  /* Space for the fixed footer */
}

.table-responsive.fix-scroll {
  /* height: 100%;*/
  height: calc(100% - 130px);
  overflow: auto;
  scrollbar-width: thin;
}

.table-responsive.fix-scroll table {
  margin-bottom: 0;
}

.fixed-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  padding: 12px 20px;
  border-top: 1px solid #e2e8f0;
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  transition: left 0.5s ease-in-out;
}

/* Custom scrollbar styling */
.table-responsive.fix-scroll::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.table-responsive.fix-scroll::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.table-responsive.fix-scroll::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.table-responsive.fix-scroll::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/*End Table Scroll Bar*/
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type="number"] {
  -moz-appearance: textfield;
}

.btn-check:checked+.btn {
  background-color: #ebebeb;
}

/*Bootstrap Calendar*/
.datepicker td.day.disabled {
  color: #bfbfbf;
  text-decoration: line-through;
}

.datepicker {
  border-radius: 0;
  padding: 0;
}

.datepicker-days table thead,
.datepicker-days table tbody,
.datepicker-days table tfoot {
  padding: 10px;
  display: list-item;
}

.datepicker-days table thead,
.datepicker-months table thead,
.datepicker-years table thead,
.datepicker-decades table thead,
.datepicker-centuries table thead {
  background: #3546b3;
  color: #ffffff;
  border-radius: 0;
}

.datepicker-days table thead tr:nth-child(2n + 0) td,
.datepicker-days table thead tr:nth-child(2n + 0) th {
  border-radius: 3px;
}

.datepicker-days table thead tr:nth-child(3n + 0) {
  text-transform: uppercase;
  font-weight: 300 !important;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.table-condensed>tbody>tr>td,
.table-condensed>tbody>tr>th,
.table-condensed>tfoot>tr>td,
.table-condensed>tfoot>tr>th,
.table-condensed>thead>tr>td,
.table-condensed>thead>tr>th {
  /*padding: 11px 13px;*/
  padding: 5px 10px;
}

.datepicker-months table thead td,
.datepicker-months table thead th,
.datepicker-years table thead td,
.datepicker-years table thead th,
.datepicker-decades table thead td,
.datepicker-decades table thead th,
.datepicker-centuries table thead td,
.datepicker-centuries table thead th {
  border-radius: 0;
}

.datepicker td,
.datepicker th {
  border-radius: 50%;
  padding: 0 12px;
}

.datepicker-days table thead,
.datepicker-months table thead,
.datepicker-years table thead,
.datepicker-decades table thead,
.datepicker-centuries table thead {
  background: #3546b3;
  color: #ffffff;
  border-radius: 0;
}

.datepicker table tr td.active,
.datepicker table tr td.active:hover,
.datepicker table tr td.active.disabled,
.datepicker table tr td.active.disabled:hover {
  background-image: none;
}

.datepicker .prev,
.datepicker .next {
  color: rgba(255, 255, 255, 0.5);
  transition: 0.3s;
  width: 37px;
  height: 37px;
}

.datepicker .prev:hover,
.datepicker .next:hover {
  background: transparent;
  color: rgba(255, 255, 255, 0.99);
  font-size: 18px;
}

.datepicker .datepicker-switch {
  font-size: 18px;
  font-weight: 400;
  transition: 0.3s;
}

.datepicker .datepicker-switch:hover {
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
}

.datepicker table tr td span {
  border-radius: 2px;
  margin: 3%;
  width: 27%;
}

.datepicker table tr td span.active,
.datepicker table tr td span.active:hover,
.datepicker table tr td span.active.disabled,
.datepicker table tr td span.active.disabled:hover {
  background-color: #3546b3;
  background-image: none;
}

.dropdown-menu {
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
}

.datepicker-dropdown.datepicker-orient-top:before {
  border-top: 7px solid rgba(0, 0, 0, 0.1);
}

/*  Overlay , Pagination*/

.bootstrap-table .fixed-table-container .table td,
.bootstrap-table .fixed-table-container .table th {
  vertical-align: top;
}

.pagination .page-link {
  color: #000;
  /* สีของตัวอักษร */
  background-color: #ffffff;
  /* สีพื้นหลังของลิงค์ */
  border-color: #ffffff;
}

.overlay,
.overlay2 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1030;
}

.invalid-input {
  border-color: red !important;
  /* background-color: lightyellow !important;*/
}

.valid-input {
  border-color: green !important;
}

/* Add new spinner overlay styles */
.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spinner-container {
  background: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

#pdf_container {
  background: #ccc;
  text-align: center;
  display: none;
  padding: 5px;
  /*height: 820px;*/
  height: calc(100vh - 60px);
  overflow: auto;
}

.sort-column {
  cursor: pointer;
}

.sort-icon {
  opacity: 0.35;
}

.sort-column:hover {
  text-decoration: underline !important;
}

.sort-column:hover .sort-icon {
  opacity: 1;
}

.sort-active .sort-icon {
  opacity: 1;
}

.nav-underline {
  border-bottom: 1px solid var(--bs-gray-300);
}

.nav-underline .nav-link {
  color: #6c757d;
  font-weight: 600 !important;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease;
}

.nav-underline .nav-link:hover {
  color: var(--bs-gray-700);
  border-bottom: 2px solid transparent;
}

.nav-underline .nav-link.active {
  color: var(--bs-primary);
  border-bottom: 2px solid var(--bs-primary);
}

.divider {
  border-top: 1px solid var(--bs-border-color);
  opacity: 0.4;
}

.pagination-container {
  font-size: 0.95rem !important;
  font-weight: 500;
  color: #6c757d !important;
}

.pagination-select {
  border: 1px solid #dee2e6 !important;
  min-width: 55px !important;
  width: auto !important;
  font-size: 0.95rem !important;
  font-weight: 500;
  color: #6c757d !important;
  text-align: left !important;
  text-align-last: left !important;
  padding: 0.5rem 1rem 0.5rem 1.25rem !important;
  background-position: right 0.25rem center !important;
  background-size: 14px 9px !important;
}

.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:active {
  background-color: #1967D2 !important;
  color: #fff !important;
}

/* Flatpickr Premium Overrides */
.flatpickr-calendar {
  font-family: "Noto Sans Thai", sans-serif;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  padding: 4px;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover,
.flatpickr-day.prevMonthDay.selected,
.flatpickr-day.nextMonthDay.selected,
.flatpickr-day.prevMonthDay.startRange,
.flatpickr-day.nextMonthDay.startRange,
.flatpickr-day.prevMonthDay.endRange,
.flatpickr-day.nextMonthDay.endRange {
  background: #0d6efd !important;
  border-color: #0d6efd !important;
  color: #fff !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange.endRange,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange.endRange:hover,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange.endRange:focus {
  border-radius: 50% !important;
}

.flatpickr-day.startRange:not(.endRange),
.flatpickr-day.startRange:not(.endRange):hover,
.flatpickr-day.startRange:not(.endRange):focus {
  border-radius: 50% 0 0 50% !important;
}

.flatpickr-day.endRange:not(.startRange),
.flatpickr-day.endRange:not(.startRange):hover,
.flatpickr-day.endRange:not(.startRange):focus {
  border-radius: 0 50% 50% 0 !important;
}

.flatpickr-day.inRange {
  background: #f8fafc !important;
  border-color: transparent !important;
  box-shadow: -5px 0 0 #f8fafc, 5px 0 0 #f8fafc !important;
  color: #334155 !important;
}

.flatpickr-day.inRange:hover {
  background: #f1f5f9 !important;
  border-color: transparent !important;
  box-shadow: -5px 0 0 #f1f5f9, 5px 0 0 #f1f5f9 !important;
  color: #0f172a !important;
}

.flatpickr-day.today {
  border-color: #0d6efd !important;
}

.flatpickr-day.today:hover {
  background: #0d6efd !important;
  color: #fff !important;
}

.flatpickr-months {
  position: relative !important;
}

.flatpickr-months .flatpickr-month {
  color: #212529 !important;
  height: 48px !important;
  position: relative;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  top: 50% !important;
  transform: translateY(-50%) !important;
  height: auto !important;
  padding: 10px 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #94a3b8 !important;
  fill: #94a3b8 !important;
}

.flatpickr-current-month {
  font-size: 16px !important;
  height: auto !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 75% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 6px;
  color: #212529 !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
  font-size: 17px !important;
  font-weight: 500 !important;
  color: #212529 !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
  margin: 0 !important;
}

.flatpickr-current-month .numInputWrapper {
  display: none !important;
}

.be-year-dropdown {
  font-size: 17px !important;
  font-weight: 500 !important;
  color: #212529 !important;
  border: none !important;
  background: transparent !important;
  cursor: pointer !important;
  outline: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.be-year-dropdown:focus {
  outline: none !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months option,
.be-year-dropdown option {
  font-size: 15px !important;
  font-weight: normal !important;
}

span.flatpickr-weekday {
  color: #94a3b8 !important;
  font-weight: 600 !important;
  font-size: 14px !important;
}

#txtdaterange {
  background-color: white !important;
  border-top: 1px solid #dee2e6 !important;
  border-bottom: 1px solid #dee2e6 !important;
  border-right: 1px solid #dee2e6 !important;
  border-top-right-radius: 0.375rem !important;
  border-bottom-right-radius: 0.375rem !important;
}

.pagination-limit-dropdown {
  border: 1px solid #dee2e6 !important;
  /* Standard thin border */
  border-radius: 0px !important;
  /* Sharp corners */
  box-shadow: none !important;
  /* No shadow */
  padding: 0 !important;
  min-width: auto !important;
  /* Compact width */
  background-color: #fff !important;
}

.pagination-limit-dropdown .dropdown-item {
  color: #334155 !important;
  /* Standard font color (dark) */
  font-size: 0.95rem !important;
  /* Standard font size matching select options */
  font-weight: normal;
  padding: 0.375rem 0.75rem !important;
  text-align: center;
}

.pagination-limit-dropdown .dropdown-item.active,
.pagination-limit-dropdown .dropdown-item:active {
  background-color: #1967D2 !important;
  /* Selected item blue background */
  color: #fff !important;
  /* White text for selected item */
}

.pagination-limit-dropdown .dropdown-item:hover {
  background-color: #F8F9FA !important;
  /* Standard hover background */
  color: #334155 !important;
}

.section-header-icon {
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 35%;
  background-color: rgba(13, 110, 253, 0.12) !important;
  color: #0d6efd !important;
}

.section-card-title {
  display: flex;
  align-items: center;
  font-weight: 600;
  margin-bottom: 1.125rem;
  font-size: 1.125rem;
}

.card-header-link {
  text-decoration: none !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  transition: color 0.15s ease-in-out;
}

.card-header-link:hover {
  text-decoration: underline !important;
  color: #0b5edd !important;
}

.bill-header {
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  min-height: 58px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}

.bill-header-label {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  /* text-muted equivalent */
  line-height: 1.25;
  margin-bottom: 0.25rem;
}

.bill-header-value {
  font-size: 1.25rem;
  font-weight: 500;
  color: #334155;
  line-height: 1.25;
}

/* Make checked inputs clearly visible even when disabled */
.form-check-input[type="radio"]:checked {
  background-color: #0d6efd !important;
  border-color: #0d6efd !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e") !important;
}

.form-check-input[type="checkbox"]:checked {
  background-color: #0d6efd !important;
  border-color: #0d6efd !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e") !important;
}

.form-check-input:disabled {
  opacity: 0.6 !important;
}

.setting-document-form label {
  font-weight: 600 !important;
}

.setting-document-form .form-check-label {
  font-weight: normal !important;
}