/* ==========================================================================
   1. FONT SIZE SCALING (Global User Preferences)
   ========================================================================== */
:root,
html[data-font-size="md"] {
  --tblr-body-font-size: 1rem;       /* 16px */
  --tblr-h1-font-size: 2rem;
  --tblr-h2-font-size: 1.75rem;
  --tblr-h3-font-size: 1.5rem;
  --tblr-h4-font-size: 1.25rem;
  --tblr-th-font-size: 0.95rem;
}

html[data-font-size="sm"] {
  --tblr-body-font-size: 0.875rem;   /* 14px */
  --tblr-h1-font-size: 1.75rem;
  --tblr-h2-font-size: 1.5rem;
  --tblr-h3-font-size: 1.25rem;
  --tblr-h4-font-size: 1.1rem;
  --tblr-th-font-size: 0.85rem;
}

html[data-font-size="lg"] {
  --tblr-body-font-size: 1.125rem;   /* 18px */
  --tblr-h1-font-size: 2.25rem;
  --tblr-h2-font-size: 2rem;
  --tblr-h3-font-size: 1.75rem;
  --tblr-h4-font-size: 1.5rem;
  --tblr-th-font-size: 1.05rem;
}

html[data-font-size="xl"] {
  --tblr-body-font-size: 1.25rem;    /* 20px */
  --tblr-h1-font-size: 2.5rem;
  --tblr-h2-font-size: 2.25rem;
  --tblr-h3-font-size: 2rem;
  --tblr-h4-font-size: 1.75rem;
  --tblr-th-font-size: 1.15rem;
}

/* ==========================================================================
   2. BASE LAYOUT, TYPOGRAPHY & GLOBAL UI SCALING
   ========================================================================== */
body {
  font-size: var(--tblr-body-font-size) !important;
  background-color: #f4f6fa;
  overflow-x: hidden;
}

[data-bs-theme="dark"] body {
  background-color: #1a2234;
}

h1, .h1 { font-size: var(--tblr-h1-font-size) !important; }
h2, .h2 { font-size: var(--tblr-h2-font-size) !important; }
h3, .h3 { font-size: var(--tblr-h3-font-size) !important; }
h4, .h4 { font-size: var(--tblr-h4-font-size) !important; }
th, .th { font-size: var(--tblr-th-font-size) !important; }

.main-body {
  padding-top: 35px;
}

/* บังคับให้ Pagination, ปุ่ม, ฟอร์ม, Dropdown และ Modal สืบทอดขนาดฟอนต์ตาม Option 100% */
.pagination {
  font-size: var(--tblr-body-font-size) !important;
}

.pagination .page-link {
  font-size: inherit !important;
  padding: 0.5em 0.75em !important;
}

.btn,
.form-select,
.form-control {
  font-size: inherit !important;
  font-weight: 400 !important;
}

.btn-sm,
.btn-group-sm > .btn,
.form-select-sm,
.form-control-sm {
  font-size: 0.875em !important;
  line-height: 1.4 !important;
}

.dropdown-menu,
.modal-content,
.modal-title,
.form-label {
  font-size: inherit !important;
}

.dropdown-menu .dropdown-item {
  font-size: 1em !important;
  font-weight: 400 !important;
  line-height: 1.5;
}

.dropdown-menu .dropdown-header {
  font-size: 0.85em !important;
  font-weight: 600 !important;
}

/* ==========================================================================
   3. FLOATING SIDEBAR, TOP PILL MENU & DROPDOWN
   ========================================================================== */
.floating-sidebar {
  position: fixed;
  top: 3.5rem;
  bottom: 1.5rem;
  left: 0.5rem;
  width: 300px;
  z-index: 1030 !important;
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.1),
    0 20px 48px rgba(0, 0, 0, 0.14),
    inset 0 1px 1px rgba(255, 255, 255, 0.9);
  transform: translateX(calc(-100% - 2.5rem));
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease-out,
              box-shadow 0.35s ease;
}

.floating-sidebar.is-visible {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.04),
    0 12px 32px rgba(0, 0, 0, 0.15),
    0 24px 56px rgba(0, 0, 0, 0.2);
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1030;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.sidebar-scrollable {
  overflow-y: auto;
  overscroll-behavior: contain;
  overflow-anchor: none;
  flex: 1 1 auto;
  padding: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.sidebar-scrollable::-webkit-scrollbar { width: 5px; }
.sidebar-scrollable::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.floating-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  margin-bottom: 4px;
  border-radius: 0.75rem;
  color: #475569;
  font-size: var(--tblr-body-font-size);
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.floating-nav-link:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #0f172a;
  text-decoration: none;
}

.floating-nav-link.active {
  background: rgba(32, 107, 196, 0.1);
  color: #206bc4;
  font-weight: 500;
  text-decoration: none;
}

.floating-nav-link .nav-icon {
  font-size: 1.15em;
  line-height: 1;
}

.floating-nav-link .ti-chevron-down.transition {
  display: inline-block;
  transition: transform 0.25s ease;
}

.floating-nav-link[aria-expanded="true"] .ti-chevron-down.transition {
  transform: rotate(180deg);
}


/* Top Pill Bar */
.floating-menu {
  position: fixed;
  top: 3px;
  left: 5px;
  z-index: 1030 !important;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.04),
    0 6px 16px rgba(0, 0, 0, 0.1),
    0 16px 36px rgba(0, 0, 0, 0.14),
    inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

.floating-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 18px;
  color: var(--tblr-body-color, #1d1d1f);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.floating-btn i,
.floating-btn [class^="ti-"] { color: currentColor; }

.floating-btn:hover,
.floating-btn.is-active {
  background: rgba(0, 0, 0, 0.06);
  text-decoration: none;
}

.floating-btn:active {
  transform: scale(0.95);
  background: rgba(0, 0, 0, 0.1);
}

.floating-divider {
  width: 1px;
  height: 16px;
  background-color: var(--tblr-border-color);
}

.floating-dropdown-wrapper {
  position: relative;
  display: inline-flex;
}

.floating-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: -50px;
  min-width: 230px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  padding: 6px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.04),
    0 6px 16px rgba(0, 0, 0, 0.1),
    0 16px 36px rgba(0, 0, 0, 0.14),
    inset 0 1px 1px rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  gap: 2px;
  transform-origin: top left;
  transform: scale(0.92) translateY(-6px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.18s ease;
  z-index: 1030 !important;
}

.floating-dropdown-menu.show {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.floating-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  font-size: var(--tblr-body-font-size);
  color: #1d1d1f;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.15s ease;
  cursor: pointer;
}

.floating-dropdown-item i {
  font-size: 1.15em;
  display: inline-flex;
  align-items: center;
}

.floating-dropdown-item:hover {
  background: var(--tblr-border-color-translucent);
  color: var(--tblr-body-color);
  text-decoration: none;
}

.floating-dropdown-item.danger { color: var(--tblr-danger); }
.floating-dropdown-item.danger:hover {
  background: rgba(var(--tblr-danger-rgb), 0.12);
  color: var(--tblr-danger);
  text-decoration: none;
}

.floating-dropdown-separator {
  height: 1px;
  background-color: var(--tblr-border-color);
  margin: 4px 6px;
}

/* --- Dark Mode: Floating Sidebar & Menu --- */
[data-bs-theme="dark"] .floating-sidebar {
  background: rgba(30, 41, 59, 0.88);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 12px 32px rgba(0, 0, 0, 0.5),
    0 24px 56px rgba(0, 0, 0, 0.7);
}

[data-bs-theme="dark"] .floating-menu,
[data-bs-theme="dark"] .floating-dropdown-menu {
  background: rgba(30, 41, 59, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 8px 24px rgba(0, 0, 0, 0.4),
    0 20px 48px rgba(0, 0, 0, 0.6);
}

[data-bs-theme="dark"] .sidebar-scrollable { scrollbar-color: #475569 transparent; }
[data-bs-theme="dark"] .sidebar-scrollable::-webkit-scrollbar-thumb { background: #475569; }
[data-bs-theme="dark"] .floating-nav-link { color: #cbd5e1; }
[data-bs-theme="dark"] .floating-nav-link:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
[data-bs-theme="dark"] .floating-nav-link.active { background: rgba(66, 153, 225, 0.2); color: #63b3ed; }
[data-bs-theme="dark"] .floating-btn { color: #f8fafc; }
[data-bs-theme="dark"] .floating-btn:hover,
[data-bs-theme="dark"] .floating-btn.is-active { background: rgba(255, 255, 255, 0.1); color: #fff; }
[data-bs-theme="dark"] .floating-dropdown-item { color: #f1f5f9; }
[data-bs-theme="dark"] .floating-dropdown-item:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
[data-bs-theme="dark"] .floating-dropdown-item.danger { color: #fb7185; }
[data-bs-theme="dark"] .floating-dropdown-item.danger:hover { background: rgba(251, 113, 133, 0.16); color: #fda4af; }

/* ==========================================================================
   4. AUTO COMPLETE & INPUT GROUP INTEGRATION
   ========================================================================== */
.autoComplete_wrapper {
  position: relative;
  display: block;
  width: 100%;
}

.autoComplete_wrapper > input {
  width: 100%;
  min-height: 45px;
  font-size: inherit;
  box-sizing: border-box;
  border-radius: var(--tblr-border-radius, 4px);
  border: 1px solid var(--tblr-border-color, #dce1e7);
  background-color: var(--tblr-bg-forms, #fff);
  color: var(--tblr-body-color, inherit);
}

.autoComplete_wrapper > input::-webkit-search-cancel-button {
  display: none;
}

.input-group > .autoComplete_wrapper {
  position: relative;
  flex: 1 1 auto;
  width: 1% !important;
}

.input-group > .autoComplete_wrapper > input {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.autoComplete_wrapper > ul {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100% !important;
  box-sizing: border-box;
  margin-top: 4px;
  padding: 0;
  z-index: 900 !important;
  background-color: var(--tblr-card-bg, #fff);
  border: 1px solid var(--tblr-border-color, rgba(4, 32, 69, 0.14));
  border-radius: var(--tblr-border-radius, 4px);
  max-height: var(--ac-max-height, 350px) !important;
  overflow-y: auto !important;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.autoComplete_wrapper > ul > li {
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--tblr-border-color-translucent, rgba(0, 0, 0, 0.05));
  font-size: inherit;
}

.autoComplete_wrapper > ul > li:last-child { border-bottom: none; }

.autoComplete_wrapper > ul > li:hover,
.autoComplete_wrapper > ul > li[aria-selected="true"] {
  background-color: #f0f0f0 !important;
  color: inherit;
}

.autoComplete_wrapper > ul::-webkit-scrollbar { width: 6px; }
.autoComplete_wrapper > ul::-webkit-scrollbar-track { background: transparent; }
.autoComplete_wrapper > ul::-webkit-scrollbar-thumb {
  background-color: var(--tblr-border-color, rgba(0, 0, 0, 0.15));
  border-radius: 4px;
}
.autoComplete_wrapper > ul::-webkit-scrollbar-thumb:hover {
  background-color: var(--tblr-secondary, rgba(0, 0, 0, 0.3));
}

.autoComplete_wrapper mark,
.autoComplete_highlighted {
  display: inline !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 2px;
  font-weight: 700 !important;
  background-color: rgba(32, 107, 196, 0.2) !important;
  color: var(--tblr-primary, #206bc4) !important;
}

/* --- Dark Mode: AutoComplete --- */
[data-bs-theme="dark"] .autoComplete_wrapper > ul,
.theme-dark .autoComplete_wrapper > ul {
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

[data-bs-theme="dark"] .autoComplete_wrapper > ul > li:hover,
[data-bs-theme="dark"] .autoComplete_wrapper > ul > li[aria-selected="true"],
.theme-dark .autoComplete_wrapper > ul > li:hover,
.theme-dark .autoComplete_wrapper > ul > li[aria-selected="true"] {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: inherit;
}

[data-bs-theme="dark"] .autoComplete_wrapper mark,
[data-bs-theme="dark"] .autoComplete_highlighted,
.theme-dark .autoComplete_wrapper mark,
.theme-dark .autoComplete_highlighted {
  background-color: rgba(66, 153, 225, 0.3) !important;
  color: #63b3ed !important;
}

/* ==========================================================================
   5. TABLER CUSTOM SELECT & TAG SELECT (Unified Controls)
   ========================================================================== */
.tabler-custom-select .form-select::after {
  display: none !important;
}

/* Base Control ร่วมกันระหว่าง Custom Select และ Tag Select */
.tabler-custom-select .form-select,
.tabler-tag-select .tag-select-control {
  padding-top: var(--tblr-input-padding-y, 0.375rem) !important;
  padding-bottom: var(--tblr-input-padding-y, 0.375rem) !important;
  padding-right: 2rem !important;
  padding-left: var(--tblr-input-padding-x, 0.75rem) !important;
  min-height: calc(1.5em + (var(--tblr-input-padding-y, 0.375rem) * 2) + calc(var(--tblr-border-width, 1px) * 2)) !important;
  line-height: 1.5 !important;
  background-color: var(--tblr-btn-bg, var(--tblr-bg-surface)) !important;
  color: var(--tblr-body-color) !important;
  border: 1px solid var(--tblr-border-color) !important;
  box-shadow: none !important;
  transition: all 0.15s ease;
}

.tabler-custom-select .form-select {
  height: 100% !important;
}

html[data-font-size="md"] .tabler-custom-select .form-select,
html[data-font-size="md"] .tabler-tag-select .tag-select-control {
  padding-top: 0.4375rem !important;
  padding-bottom: 0.4375rem !important;
  min-height: 36px !important;
}

html[data-font-size="sm"] .tabler-custom-select .form-select,
html[data-font-size="sm"] .tabler-tag-select .tag-select-control {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
  min-height: 40px !important;
}

.tabler-custom-select .form-select:hover,
.tabler-custom-select .form-select:focus,
.tabler-custom-select .form-select.show,
.tabler-custom-select .form-select[aria-expanded="true"],
.tabler-tag-select .tag-select-control:hover,
.tabler-tag-select.is-open .tag-select-control {
  border-color: var(--tblr-primary) !important;
  box-shadow: none !important;
}

[data-bs-theme="dark"] .tabler-custom-select .form-select:hover,
[data-bs-theme="dark"] .tabler-custom-select .form-select:focus,
[data-bs-theme="dark"] .tabler-custom-select .form-select.show,
[data-bs-theme="dark"] .tabler-custom-select .form-select[aria-expanded="true"],
[data-bs-theme="dark"] .tabler-tag-select .tag-select-control:hover,
[data-bs-theme="dark"] .tabler-tag-select.is-open .tag-select-control {
  background-color: rgba(var(--tblr-primary-rgb, 32, 107, 196), 0.18) !important;
  border-color: var(--tblr-primary) !important;
}

/* Dropdown Menu & Items ร่วมกัน */
.tabler-custom-select .dropdown-menu,
.tabler-tag-select .dropdown-menu {
  padding: 0.25rem !important;
  border-radius: var(--tblr-border-radius, 4px) !important;
  background-color: var(--tblr-dropdown-bg, var(--tblr-bg-surface)) !important;
  border: 1px solid var(--tblr-dropdown-border-color, var(--tblr-border-color)) !important;
  box-shadow: var(--tblr-dropdown-box-shadow, 0 10px 25px -5px rgba(0, 0, 0, 0.2)) !important;
}

.tabler-custom-select .dropdown-item,
.tabler-tag-select .dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem !important;
  border-radius: 4px !important;
  color: var(--tblr-dropdown-link-color, var(--tblr-body-color)) !important;
  background-color: transparent !important;
  cursor: pointer;
}

.tabler-custom-select .dropdown-item:hover,
.tabler-custom-select .dropdown-item:focus,
.tabler-tag-select .dropdown-item:hover,
.tabler-tag-select .dropdown-item:focus {
  color: var(--tblr-dropdown-link-hover-color, var(--tblr-body-color)) !important;
  background-color: var(--tblr-dropdown-link-hover-bg, rgba(255, 255, 255, 0.06)) !important;
}

.tabler-custom-select .dropdown-item.active,
.tabler-tag-select .dropdown-item.active {
  background-color: var(--tblr-primary-lt, rgba(32, 107, 196, 0.15)) !important;
  color: var(--tblr-primary) !important;
  font-weight: 500 !important;
}

.tabler-custom-select .dropdown-item .check-icon,
.tabler-tag-select .dropdown-item .check-icon {
  color: currentColor !important;
  font-size: 1.1em;
  flex-shrink: 0;
}

/* ส่วนเฉพาะของ Tag Select */
.tabler-tag-select {
  position: relative;
  width: 100%;
  font-size: inherit;
}

.tabler-tag-select .tag-select-control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  height: auto !important;
  border-radius: var(--tblr-border-radius, 4px);
  cursor: text;
  position: relative;
}

.tabler-tag-select .tag-select-control::after {
  content: "";
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.5px solid var(--tblr-secondary, #64748b);
  border-bottom: 1.5px solid var(--tblr-secondary, #64748b);
  pointer-events: none;
}

[data-bs-theme="dark"] .tabler-tag-select .tag-select-control {
  background-color: #171717 !important;
}

.tabler-tag-select .dropdown-menu {
  width: 100%;
  max-height: 240px;
  overflow-y: auto;
  margin-top: 4px !important;
}

.tabler-tag-select .tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.1rem 0.45rem 0.1rem 0.55rem;
  font-size: 0.875em;
  font-weight: 400;
  line-height: 1.35;
  border-radius: 3px;
  background-color: var(--tblr-bg-surface-secondary, #f8fafc);
  color: var(--tblr-body-color, #1e293b);
  border: 1px solid var(--tblr-border-color, #dce1e7);
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.tabler-tag-select .tag-badge .tag-remove-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95em;
  opacity: 0.55;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.tabler-tag-select .tag-badge:hover {
  background-color: var(--tblr-border-color-light, #e2e8f0);
  border-color: var(--tblr-secondary, #94a3b8);
}

.tabler-tag-select .tag-badge:hover .tag-remove-icon {
  opacity: 1;
  color: var(--tblr-danger, #d63939);
}

[data-bs-theme="dark"] .tabler-tag-select .tag-badge {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--tblr-body-color, #f8fafc);
  border-color: rgba(255, 255, 255, 0.15);
}

[data-bs-theme="dark"] .tabler-tag-select .tag-badge:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

[data-bs-theme="dark"] .tabler-tag-select .tag-badge:hover .tag-remove-icon {
  color: #fb7185;
}

.tabler-tag-select .tag-search-input {
  border: none !important;
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
  color: var(--tblr-body-color) !important;
  font-size: inherit !important;
  line-height: 1.5 !important;
  padding: 0 !important;
  margin: 0 !important;
  flex: 1 1 60px;
  min-width: 60px;
}

.tabler-tag-select .tag-search-input::placeholder {
  color: var(--tblr-secondary, #94a3b8) !important;
  opacity: 1;
}

[data-bs-theme="dark"] .tabler-tag-select .tag-search-input::placeholder {
  color: #fff !important;
}

.tabler-tag-select .dropdown-item.is-focused {
  color: var(--tblr-dropdown-link-hover-color, var(--tblr-body-color)) !important;
  background-color: var(--tblr-dropdown-link-hover-bg, rgba(32, 107, 196, 0.08)) !important;
  outline: none !important;
}

[data-bs-theme="dark"] .tabler-tag-select .dropdown-item.is-focused {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
}

.tabler-tag-select .dropdown-item.active.is-focused {
  background-color: rgba(32, 107, 196, 0.25) !important;
}

/* ==========================================================================
   6. MOBILE iOS AUTO-ZOOM PREVENTION & CHECKBOX SIZING
   ========================================================================== */
@media screen and (max-width: 768px) {
  html[data-font-size="sm"] input[type="text"],
  html[data-font-size="sm"] input[type="search"],
  html[data-font-size="sm"] input[type="number"],
  html[data-font-size="sm"] input[type="password"],
  html[data-font-size="sm"] input[type="email"],
  html[data-font-size="sm"] input[type="tel"],
  html[data-font-size="sm"] input[type="url"],
  html[data-font-size="sm"] select,
  html[data-font-size="sm"] textarea,
  html[data-font-size="sm"] .form-control,
  input.form-control-sm,
  textarea.form-control-sm,
  select.form-select-sm {
    font-size: 16px !important;
    transform: scale(0.875) !important;
    transform-origin: left center !important;
    width: 114.28% !important;
    margin-right: -14.28% !important;
  }

  .tabler-custom-select,
  .tabler-custom-select .form-select {
    transform: none !important;
    width: 100% !important;
    margin-right: 0 !important;
    font-size: inherit !important;
  }
}

.form-check-scalable .form-check-input {
  width: 1.35em !important;
  height: 1.35em !important;
  margin-top: 0.15em;
  margin-right: 10px;
  cursor: pointer;
}

.form-check-scalable .form-check-label {
  cursor: pointer;
}

/* ==========================================================================
   7. VANILLA CALENDAR PRO SCALING & TABLER INTEGRATION
   ========================================================================== */
.vc {
  font-size: var(--tblr-body-font-size, 1rem) !important;
  width: 18.5em !important;
  min-width: 17.5em !important;
  max-width: calc(100vw - 1rem) !important;
  padding: 0.85em !important;
  box-sizing: border-box !important;
  z-index: 1060 !important;
  border: 1px solid var(--tblr-border-color, #dce1e7) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.08) !important;
}

.vc-header { margin-bottom: 0.65em !important; }
.vc-header__content,
.vc-month,
.vc-year { font-size: 1.05em !important; font-weight: 600 !important; }
.vc-arrow { width: 2em !important; height: 2em !important; }
.vc-week__day { font-size: 0.85em !important; padding: 0.35em 0 !important; }

.vc-date__btn {
  font-size: 0.92em !important;
  height: 2.25em !important;
  min-height: 2.25em !important;
  width: 100% !important;
  padding: 0 !important;
  border-radius: var(--tblr-border-radius, 4px) !important;
}

.vc-months__month,
.vc-years__year {
  font-size: 0.92em !important;
  height: 2.8em !important;
  padding: 0.25em !important;
  border-radius: var(--tblr-border-radius, 4px) !important;
}

[data-bs-theme="dark"] .vc,
.vc[data-vc-theme="dark"] {
  background-color: var(--tblr-bg-surface, #1e293b) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

/* ==========================================================================
   8. iOS NOTIFICATION TOAST (Tabler Toast)
   ========================================================================== */
.ios-toast-wrapper {
  font-size: var(--tblr-body-font-size, 1rem);
  position: fixed;
  top: 1em;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 0.65em;
  width: 92vw;
  max-width: 26.5em;
  pointer-events: none;
}

.ios-toast {
  font-size: inherit;
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 1.5em;
  padding: 0.875em 1em;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  opacity: 0;
  transform: translateY(-1.75em) scale(0.94);
  transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}

.ios-toast.show { opacity: 1; transform: translateY(0) scale(1); }
.ios-toast.hiding { opacity: 0; transform: translateY(-1.25em) scale(0.95); }

.ios-toast-header {
  display: flex;
  align-items: center;
  gap: 0.625em;
}

.ios-toast-icon {
  width: 1.75em;
  height: 1.75em;
  border-radius: 0.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ios-toast-icon i { font-size: 1.1em; line-height: 1; }

.ios-toast-title {
  font-weight: 600;
  font-size: 0.95em;
  color: #1c1c1e;
  letter-spacing: -0.01em;
  line-height: 1.25;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ios-toast-close {
  background: rgba(142, 142, 147, 0.16);
  border: none;
  width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8e8e93;
  font-size: 0.9em;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.ios-toast-close i { font-size: 1em; line-height: 1; }
.ios-toast-close:hover { background: rgba(142, 142, 147, 0.28); color: #1c1c1e; }

.ios-toast-message {
  font-size: 0.875em;
  color: #3a3a3c;
  line-height: 1.45;
  word-wrap: break-word;
  padding-top: 0.35em;
  border-top: 1px solid rgba(60, 60, 67, 0.08);
}

[data-bs-theme="dark"] .ios-toast {
  background: rgba(30, 41, 59, 0.88);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
}

[data-bs-theme="dark"] .ios-toast-title { color: #f8fafc; }
[data-bs-theme="dark"] .ios-toast-close { background: rgba(255, 255, 255, 0.14); color: #cbd5e1; }
[data-bs-theme="dark"] .ios-toast-close:hover { background: rgba(255, 255, 255, 0.24); color: #fff; }
[data-bs-theme="dark"] .ios-toast-message { color: #cbd5e1; border-top-color: rgba(255, 255, 255, 0.08); }

/* ==========================================================================
   9. CUSTOM DATA TABLE, SORTING, BULK BAR & IMAGE THUMBNAILS
   ========================================================================== */
th.sortable {
  cursor: pointer;
  user-select: none;
  position: relative;
  transition: background-color 0.15s ease;
}

th.sortable:hover { background-color: var(--tblr-table-hover-bg, rgba(0, 0, 0, 0.03)); }
th.sortable .sort-icon { opacity: 0.35; transition: opacity 0.2s; }
th.sortable.asc .sort-icon,
th.sortable.desc .sort-icon { opacity: 1; }

.dropdown-toggle-no-caret::after { display: none !important; }

.sort-dropdown-menu {
  min-width: 210px;
  padding-top: 0 !important;
  overflow: hidden;
}

.sort-dropdown-header {
  background-color: var(--tblr-bg-surface-secondary, rgba(0, 0, 0, 0.025));
  border-bottom: 1px solid var(--tblr-border-color-translucent, rgba(0, 0, 0, 0.06));
  padding: 0.55rem 0.85rem;
  margin-bottom: 0.25rem;
}

.dropdown-item.sort-dropdown-item {
  padding: 0.5rem 0.85rem;
  transition: all 0.15s ease;
}

.dropdown-item.sort-dropdown-item.active {
  background-color: var(--tblr-primary-lt, rgba(32, 107, 196, 0.08));
  color: var(--tblr-primary, #206bc4);
  font-weight: 500;
}

.dropdown-item.sort-dropdown-item.active .sort-field-icon {
  color: var(--tblr-primary, #206bc4) !important;
}

tr.selected-row,
.card.selected-card {
  background-color: var(--tblr-primary-lt, rgba(32, 107, 196, 0.05)) !important;
}

#bulkActionBar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  z-index: 1050;
  width: 90%;
  max-width: 500px;
  pointer-events: none;
}

#bulkActionBar.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Custom Image Check & Lightbox Thumbnails */
.custom-img-check-wrap {
  position: relative;
  display: inline-block;
  margin-top: 8px;
  margin-left: 8px;
  flex-shrink: 0;
}

.custom-img-box,
.custom-img-box-auto-complete {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--tblr-border-color, #d9dee3);
  border-radius: var(--tblr-border-radius, 4px);
  background-color: var(--tblr-bg-surface, #fff);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.custom-img-box { width: 80px; height: 80px; }
.custom-img-box-auto-complete { width: 64px; height: 64px; }

.custom-checkbox-float {
  position: absolute !important;
  top: -8px !important;
  left: -8px !important;
  z-index: 10 !important;
  width: 1.2rem !important;
  height: 1.2rem !important;
  background-color: #fff !important;
  border: 1px solid rgba(0, 0, 0, 0.25) !important;
  cursor: pointer;
}

.custom-checkbox-float:checked {
  background-color: var(--tblr-primary, #206bc4) !important;
  border-color: var(--tblr-primary, #206bc4) !important;
}

/* ==========================================================================
   10. GLOBAL RESPONSIVE CARD TABLE & HORIZONTAL SCROLL DESKTOP TABLE
   ========================================================================== */

/* มือถือ (< 768px): แสดงเป็น Card เรียงบนลงล่างทุกตารางในระบบ */
@media (max-width: 767.98px) {
  .responsive-card-table td {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0.65rem 0.75rem !important;
    box-sizing: border-box !important;
  }

  .responsive-card-table td:not([data-label])::before,
  .responsive-card-table td[data-label=""]::before {
    display: none !important;
    content: none !important;
  }

  .responsive-card-table td[data-label]::before {
    display: block !important;
    width: 100% !important;
    margin-bottom: 0.35rem !important;
    font-size: 0.8em !important;
    font-weight: 600 !important;
    color: var(--tblr-secondary, #64748b) !important;
    text-align: left !important;
  }

  .responsive-card-table td.select-cell {
    display: none !important;
  }

  .responsive-card-table td.product-cell {
    justify-content: flex-start !important;
    padding-left: 0 !important;
  }

  .responsive-card-table td.product-cell > .d-flex {
    width: 100% !important;
    align-items: flex-start !important;
  }

  .responsive-card-table td > .cell-stack-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.3rem;
    width: 100% !important;
    min-width: 0 !important;
  }

  .responsive-card-table td > .cell-stack-content > div,
  .responsive-card-table td > .cell-stack-content .sale-item-line,
  .responsive-card-table td > div:not(.dropdown):not(.btn-group) {
    width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

/* Tablet & Desktop (>= 768px): หัวตารางบรรทัดเดียว + Horizontal Scrollbar อัตโนมัติ */
@media (min-width: 768px) {
  .card .table-responsive,
  .tab-pane .table-responsive {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .table-responsive th,
  .table-responsive th * {
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    vertical-align: middle;
  }

  .sale-widget-table {
    width: 100% !important;
    table-layout: auto !important;
  }

  .sale-widget-table td {
    vertical-align: top;
    word-break: normal !important;
    overflow-wrap: break-word;
  }

  .sale-widget-table th[data-sort="sale_no"],
  .sale-widget-table td[data-label*="เลขที่"] {
    width: 1%;
    white-space: nowrap;
  }

  .sale-widget-table .col-shipping-date { min-width: 165px; max-width: 210px; }
  .sale-widget-table .col-shipping-addr { min-width: 230px; max-width: 290px; }
  .sale-widget-table .col-sale-items    { min-width: 250px; max-width: 340px; }

  .sale-widget-table th[data-sort="customer"],
  .sale-widget-table td[data-label*="ลูกค้า"] {
    min-width: 165px;
  }

  .sale-widget-table th[data-sort="discount"],
  .sale-widget-table th[data-sort="total"] {
    min-width: 115px;
  }

  .sale-widget-table .text-wrap-anywhere {
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal !important;
  }

  .sale-widget-table td .dropdown > .btn {
    max-width: 185px !important;
  }
}

/* ==========================================================================
   11. SCROLLABLE TABS & CARD CONTAINER LAYOUT (Global Reusable)
   ========================================================================== */

/* ป้องกันไม่ให้ Flexbox / Tab container ดันการ์ดกว้างทะลุหน้าจอ */
.card,
.tab-content,
.tab-pane {
  min-width: 0;
  max-width: 100%;
}

/* ซ่อน Scrollbar ของ Tab แนวนอน แต่ยังใช้นิ้วปัดซ้าย-ขวาได้ปกติ */
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* ปรับแต่ง nav-underline: ตัดพื้นหลังตอน Active/Hover และเส้นขีดตอน Hover ออก */
.nav-underline .nav-link {
  background-color: transparent !important;
}

.nav-underline .nav-link:hover,
.nav-underline .nav-link:focus {
  background-color: transparent !important;
  border-bottom-color: transparent !important;
}

.nav-underline .nav-link.active,
.nav-underline .nav-link.active:hover,
.nav-underline .nav-link.active:focus {
  background-color: transparent !important;
  border-bottom-color: var(--tblr-primary, #206bc4) !important;
}

/* Wrapper สำหรับ Scrollable Tabs พร้อมลูกศรซ้าย-ขวา */
.tabs-scroll-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.tab-scroll-arrow {
  position: absolute;
  top: 1px;
  bottom: 1px; /* เว้นเส้นขอบบน-ล่างของ card-header ไว้ */
  z-index: 5;
  display: flex;
  align-items: center;
  border: none;
  color: var(--tblr-secondary, #64748b);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, color 0.15s ease;
}

.tab-scroll-arrow:hover {
  color: var(--tblr-primary, #206bc4);
}

.tab-scroll-arrow.show {
  opacity: 1;
  pointer-events: auto;
}

.tab-scroll-arrow.left {
  left: 0;
  padding: 0 18px 0 4px;
  background: linear-gradient(90deg, var(--tblr-card-bg, #ffffff) 55%, rgba(255, 255, 255, 0) 100%);
}

.tab-scroll-arrow.right {
  right: 0;
  padding: 0 4px 0 18px;
  background: linear-gradient(270deg, var(--tblr-card-bg, #ffffff) 55%, rgba(255, 255, 255, 0) 100%);
}

[data-bs-theme="dark"] .tab-scroll-arrow.left {
  background: linear-gradient(90deg, var(--tblr-card-bg, #1e293b) 55%, rgba(30, 41, 59, 0) 100%);
}

[data-bs-theme="dark"] .tab-scroll-arrow.right {
  background: linear-gradient(270deg, var(--tblr-card-bg, #1e293b) 55%, rgba(30, 41, 59, 0) 100%);
}

/* ==========================================================================
   12. FLOATING BULK ACTION BAR & DROPUP MENU (Glassmorphism Pill Style)
   ========================================================================== */
#bulkActionBar.floating-bulk-bar,
.floating-bulk-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 1055;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  width: auto !important;
  max-width: calc(100vw - 24px);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.12),
    0 18px 40px rgba(0, 0, 0, 0.16),
    inset 0 1px 1px rgba(255, 255, 255, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

#bulkActionBar.floating-bulk-bar.show,
.floating-bulk-bar.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.floating-bulk-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: var(--tblr-body-font-size);
  font-weight: 500;
  color: var(--tblr-body-color, #1d1d1f);
  white-space: nowrap;
}

.floating-bulk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  background: transparent;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: var(--tblr-body-font-size);
  font-weight: 500;
  color: var(--tblr-body-color, #1d1d1f);
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.floating-bulk-btn:hover,
.floating-bulk-btn.is-active {
  background: rgba(0, 0, 0, 0.06);
}

.floating-bulk-btn:active {
  transform: scale(0.96);
}

.floating-bulk-btn.danger {
  color: var(--tblr-danger, #d63939);
}

.floating-bulk-btn.danger:hover {
  background: rgba(var(--tblr-danger-rgb, 214, 57, 57), 0.12);
}

.floating-bulk-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--tblr-secondary, #64748b);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.floating-bulk-close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--tblr-body-color, #1d1d1f);
}

/* Dropup Menu สไตล์เดียวกับ Top Floating Dropdown (รูปที่ 1) */
.floating-dropup-wrapper {
  position: relative;
  display: inline-flex;
}

.floating-dropup-menu {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  min-width: 270px;
  max-height: min(70vh, 460px);
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 14px;
  padding: 6px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.12),
    0 18px 42px rgba(0, 0, 0, 0.16),
    inset 0 1px 1px rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  gap: 2px;
  transform-origin: bottom right;
  transform: scale(0.92) translateY(6px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.18s ease;
  z-index: 1060;
}

.floating-dropup-menu.show {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.floating-dropup-header {
  padding: 8px 12px 4px;
  font-size: 0.85em;
  font-weight: 600;
  color: var(--tblr-secondary, #94a3b8);
  user-select: none;
}

.floating-dropup-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 9px 12px;
  font-size: var(--tblr-body-font-size);
  color: #1d1d1f;
  text-decoration: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.floating-dropup-item.is-indented {
  padding-left: 24px;
}

.floating-dropup-item i {
  font-size: 1.15em;
  color: var(--tblr-secondary, #64748b);
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.floating-dropup-item:hover {
  background: var(--tblr-border-color-translucent, rgba(0, 0, 0, 0.05));
  color: var(--tblr-body-color);
  text-decoration: none;
}

.floating-dropup-item.danger {
  color: var(--tblr-danger, #d63939);
}

.floating-dropup-item.danger i {
  color: currentColor;
}

.floating-dropup-item.danger:hover {
  background: rgba(var(--tblr-danger-rgb, 214, 57, 57), 0.12);
  color: var(--tblr-danger, #d63939);
}

/* Mobile Compact Mode (< 576px) */
@media (max-width: 575.98px) {
  .floating-bulk-count {
    padding: 6px 10px;
  }

  .floating-bulk-btn {
    padding: 8px 14px;
    gap: 0;
  }

  .floating-bulk-btn.is-dropup-btn {
    gap: 6px;
  }

  .floating-bulk-btn i {
    font-size: 1.2em;
  }

  .floating-dropup-menu {
    position: fixed;
    bottom: 50px;
    left: 50%;
    right: auto;
    width: min(340px, calc(100vw - 24px));
    min-width: 0;
    transform-origin: bottom center;
    transform: translateX(-50%) scale(0.92) translateY(8px);
  }

  .floating-dropup-menu.show {
    transform: translateX(-50%) scale(1) translateY(0);
  }

  .floating-dropup-item {
    white-space: normal;
    line-height: 1.35;
  }
}

/* --- Dark Mode --- */
[data-bs-theme="dark"] #bulkActionBar.floating-bulk-bar,
[data-bs-theme="dark"] .floating-bulk-bar,
[data-bs-theme="dark"] .floating-dropup-menu {
  background: rgba(30, 41, 59, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 10px 28px rgba(0, 0, 0, 0.45),
    0 22px 52px rgba(0, 0, 0, 0.65);
}

[data-bs-theme="dark"] .floating-bulk-count,
[data-bs-theme="dark"] .floating-bulk-btn,
[data-bs-theme="dark"] .floating-dropup-item {
  color: #f1f5f9;
}

[data-bs-theme="dark"] .floating-bulk-btn:hover,
[data-bs-theme="dark"] .floating-bulk-btn.is-active,
[data-bs-theme="dark"] .floating-bulk-close:hover,
[data-bs-theme="dark"] .floating-dropup-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

[data-bs-theme="dark"] .floating-dropup-item i {
  color: #94a3b8;
}

[data-bs-theme="dark"] .floating-bulk-btn.danger,
[data-bs-theme="dark"] .floating-dropup-item.danger {
  color: #fb7185;
}

[data-bs-theme="dark"] .floating-bulk-btn.danger:hover,
[data-bs-theme="dark"] .floating-dropup-item.danger:hover {
  background: rgba(251, 113, 133, 0.16);
  color: #fda4af;
}