/* ========================================================
   Mobile & Tablet Smooth Vertical Scrolling Fix
   Ensures html, body, and app-content never trap vertical scroll
   ======================================================== */
html {
  height: auto !important;
  min-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

html body {
  height: auto !important;
  min-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-y !important;
}

html body .content.app-content {
  overflow: visible !important;
  overflow-y: visible !important;
  min-height: calc(100vh - 4rem) !important;
}

.content-wrapper,
.content-body {
  overflow: visible !important;
}

/* Allow vertical scroll gesture to bubble freely through table wrappers */
.table-responsive,
.table-responsive-sm,
.table-responsive-md,
.table-responsive-lg,
.table-responsive-xl {
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior-y: auto !important;
  touch-action: pan-x pan-y !important;
  max-width: 100% !important;
}

.table-responsive table {
  touch-action: pan-x pan-y !important;
}

.btn-icon {
  height: 38px;
}

/* sale_module_type_select start */
.table th,
.table td {
  padding-left: 0.8rem;
  padding-top: 0.8rem;
  padding-right: 0.8rem;
  padding-bottom: 0.8rem;
}
.input-search {
  border: 0;
  width: 100%;
  padding: 10px;
  height: 38px;
}
.qty-input,
.discount-percent-input,
.p-des-input,
.discount-amount-input {
  border-bottom: 1px solid #bd080f !important;
}
@media (min-width: 576px) {
  .col-filter {
    margin-top: 0px;
  }
}
@media (max-width: 577px) {
  .next-col-filter {
    margin-top: 1.8rem !important;
  }
  .col-filter {
    margin-top: 0px !important;
  }
}
.col-filter {
  margin-top: -20px;
}
/* sale_module_type_select start */

/* ========================================================
   Mobile-Friendly Table as Cards (Mobile View <= 767.98px)
   ======================================================== */
@media screen and (max-width: 767.98px) {
  .table-responsive {
    border: none !important;
    padding: 0 !important;
    margin-bottom: 1rem !important;
  }

  .table-responsive:not(.view-mode-cards) {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-x pan-y !important;
  }

  .view-mode-cards.table-responsive {
    overflow-x: hidden !important;
    touch-action: pan-y !important;
  }

  /* All standard tables become card lists on mobile */
  table[mobileTable],
  .table-responsive > .table:not(.dataTable):not(.picker__table),
  .table.table-card-mobile,
  .table:not(.dataTable):not(.picker__table) {
    border: none !important;
    background: transparent !important;
    display: block !important;
    width: 100% !important;
    box-shadow: none !important;
  }

  table[mobileTable] thead,
  .table-responsive > .table:not(.dataTable):not(.picker__table) thead,
  .table.table-card-mobile thead,
  .table:not(.dataTable):not(.picker__table) thead {
    display: none !important;
  }

  table[mobileTable] tbody,
  .table-responsive > .table:not(.dataTable):not(.picker__table) tbody,
  .table.table-card-mobile tbody,
  .table:not(.dataTable):not(.picker__table) tbody {
    display: block !important;
    width: 100% !important;
  }

  table[mobileTable] tbody tr,
  .table-responsive > .table:not(.dataTable):not(.picker__table) tbody tr,
  .table.table-card-mobile tbody tr,
  .table:not(.dataTable):not(.picker__table) tbody tr {
    display: block !important;
    width: 100% !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05) !important;
    margin-bottom: 1rem !important;
    padding: 0.85rem 1.15rem !important;
    box-sizing: border-box !important;
    transition:
      box-shadow 0.2s ease,
      border-color 0.2s ease;
    position: relative !important;
  }

  table[mobileTable] tbody tr:hover,
  .table-responsive > .table:not(.dataTable):not(.picker__table) tbody tr:hover,
  .table.table-card-mobile tbody tr:hover,
  .table:not(.dataTable):not(.picker__table) tbody tr:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.09) !important;
    border-color: #cbd5e1 !important;
  }

  table[mobileTable] tbody td,
  .table-responsive > .table:not(.dataTable):not(.picker__table) tbody td,
  .table.table-card-mobile tbody td,
  .table:not(.dataTable):not(.picker__table) tbody td {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    padding: 0.55rem 0 !important;
    border: none !important;
    border-bottom: 1px solid #f1f5f9 !important;
    font-size: 0.88rem !important;
    text-align: right !important;
    box-sizing: border-box !important;
  }

  table[mobileTable] tbody td:last-child,
  .table-responsive
    > .table:not(.dataTable):not(.picker__table)
    tbody
    td:last-child,
  .table.table-card-mobile tbody td:last-child,
  .table:not(.dataTable):not(.picker__table) tbody td:last-child {
    border-bottom: none !important;
    padding-bottom: 0.15rem !important;
  }

  table[mobileTable] tbody td::before,
  .table-responsive
    > .table:not(.dataTable):not(.picker__table)
    tbody
    td::before,
  .table.table-card-mobile tbody td::before,
  .table:not(.dataTable):not(.picker__table) tbody td::before {
    content: attr(data-label);
    font-weight: 600 !important;
    color: #475569 !important;
    text-align: left !important;
    padding-right: 0.75rem !important;
    flex-shrink: 0 !important;
    font-size: 0.82rem !important;
    text-transform: capitalize;
  }

  /* Hide empty pseudo-element */
  table[mobileTable] tbody td:not([data-label])::before,
  table[mobileTable] tbody td[data-label=""]::before,
  .table-responsive > .table tbody td:not([data-label])::before,
  .table-responsive > .table tbody td[data-label=""]::before,
  .table tbody td:not([data-label])::before,
  .table tbody td[data-label=""]::before {
    display: none !important;
  }

  /* Card header / First cell styling */
  table[mobileTable] tbody td:first-child,
  .table:not(.dataTable):not(.picker__table) tbody td:first-child {
    padding-top: 0.2rem !important;
  }

  /* Empty/Warning message spanning all columns */
  table[mobileTable] tbody td[colspan],
  table[mobileTable] tbody td.text-center,
  .table-responsive
    > .table:not(.dataTable):not(.picker__table)
    tbody
    td[colspan],
  .table-responsive
    > .table:not(.dataTable):not(.picker__table)
    tbody
    td.text-center,
  .table:not(.dataTable):not(.picker__table) tbody td[colspan],
  .table:not(.dataTable):not(.picker__table) tbody td.text-center {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 1.25rem 0.5rem !important;
    border: none !important;
  }

  table[mobileTable] tbody td[colspan]::before,
  table[mobileTable] tbody td.text-center::before,
  .table-responsive
    > .table:not(.dataTable):not(.picker__table)
    tbody
    td[colspan]::before,
  .table-responsive
    > .table:not(.dataTable):not(.picker__table)
    tbody
    td.text-center::before,
  .table:not(.dataTable):not(.picker__table) tbody td[colspan]::before,
  .table:not(.dataTable):not(.picker__table) tbody td.text-center::before {
    display: none !important;
  }

  /* Controls and links inside cards */
  table[mobileTable] tbody td input.form-control,
  .table:not(.dataTable):not(.picker__table) tbody td input.form-control {
    display: inline-block !important;
    width: auto !important;
    max-width: 65% !important;
    height: 32px !important;
    font-size: 0.85rem !important;
    padding: 0.25rem 0.5rem !important;
  }

  table[mobileTable] tbody td .badge,
  .table:not(.dataTable):not(.picker__table) tbody td .badge {
    font-size: 0.78rem !important;
    padding: 0.35em 0.55em !important;
  }

  /* Ensure actions/options align to the right neatly */
  table[mobileTable] tbody td.option,
  .table:not(.dataTable):not(.picker__table) tbody td.option {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  /* Dark Layout Support */
  body.dark-layout table[mobileTable] tbody tr,
  body.dark-layout
    .table-responsive
    > .table:not(.dataTable):not(.picker__table)
    tbody
    tr,
  body.dark-layout .table.table-card-mobile tbody tr,
  body.dark-layout .table:not(.dataTable):not(.picker__table) tbody tr {
    background: #10163a !important;
    border-color: #2e3860 !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3) !important;
  }

  body.dark-layout table[mobileTable] tbody tr:hover,
  body.dark-layout
    .table-responsive
    > .table:not(.dataTable):not(.picker__table)
    tbody
    tr:hover,
  body.dark-layout .table.table-card-mobile tbody tr:hover,
  body.dark-layout .table:not(.dataTable):not(.picker__table) tbody tr:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45) !important;
    border-color: #48568c !important;
  }

  body.dark-layout table[mobileTable] tbody td,
  body.dark-layout
    .table-responsive
    > .table:not(.dataTable):not(.picker__table)
    tbody
    td,
  body.dark-layout .table.table-card-mobile tbody td,
  body.dark-layout .table:not(.dataTable):not(.picker__table) tbody td {
    border-bottom-color: #1e264a !important;
    color: #c2c6dc !important;
  }

  body.dark-layout table[mobileTable] tbody td::before,
  body.dark-layout
    .table-responsive
    > .table:not(.dataTable):not(.picker__table)
    tbody
    td::before,
  body.dark-layout .table.table-card-mobile tbody td::before,
  body.dark-layout .table:not(.dataTable):not(.picker__table) tbody td::before {
    color: #94a3b8 !important;
  }

  body.dark-layout table[mobileTable] tbody td input.form-control,
  body.dark-layout
    .table:not(.dataTable):not(.picker__table)
    tbody
    td
    input.form-control {
    background-color: #262c49 !important;
    border-color: #3b456d !important;
    color: #d0d2d6 !important;
  }
}

/* ==========================================================================
   Uttercode ERP v2 — Card / List View Toggle & Mobile Card Styles
   Referred from shahu-maharaj-hospital & uttercode-erp-assets/v2
   Usage: add .view-mode-cards to .table-responsive or toggle with setViewMode()
   ========================================================================== */

/* Card element hidden by default (table mode) */
.erp-card-view {
  display: none;
}

/* Desktop text (row ID etc.) visible by default */
.erp-desktop-text {
  display: inline;
}

/* ---------- Card View Mode (Desktop & Tablet) ----------------------------- */
.view-mode-cards.table-responsive,
.view-mode-cards.table-responsive-sm,
.view-mode-cards.table-responsive-md,
.view-mode-cards.table-responsive-lg,
.view-mode-cards.table-responsive-xl {
  overflow-x: hidden !important;
  overflow-y: visible !important;
  width: 100% !important;
  max-width: 100% !important;
  touch-action: pan-y !important;
}

.view-mode-cards table thead,
.view-mode-cards table tfoot {
  display: none !important;
}

.view-mode-cards table {
  display: block !important;
  width: 100% !important;
  border: none !important;
  background: transparent !important;
}

.view-mode-cards table tbody {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
  gap: 16px !important;
  width: 100% !important;
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .view-mode-cards table tbody {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (min-width: 1200px) and (max-width: 1699.98px) {
  .view-mode-cards table tbody {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (min-width: 1700px) {
  .view-mode-cards table tbody {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

.view-mode-cards table tbody tr {
  display: flex !important;
  flex-direction: column !important;
  background: #ffffff !important;
  border: 1px solid #ebe9f1 !important;
  border-radius: 12px !important;
  padding: 16px !important;
  margin: 0 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease !important;
  box-sizing: border-box !important;
  height: 100% !important;
}

.view-mode-cards table tbody tr:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 24px rgba(189, 8, 15, 0.12) !important;
  border-color: rgba(189, 8, 15, 0.35) !important;
}

/* When a card has .erp-card-view inside td:first-child */
.view-mode-cards table tbody tr:has(.erp-card-view) > td:not(:first-child),
.view-mode-cards table.has-erp-card tbody tr > td:not(:first-child) {
  display: none !important;
}

.view-mode-cards table tbody tr:has(.erp-card-view) > td:first-child,
.view-mode-cards table.has-erp-card tbody tr > td:first-child {
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
  border: none !important;
  flex-grow: 1 !important;
}

.view-mode-cards
  table
  tbody
  tr:has(.erp-card-view)
  > td:first-child
  .erp-desktop-text,
.view-mode-cards
  table.has-erp-card
  tbody
  tr
  > td:first-child
  .erp-desktop-text {
  display: none !important;
}

.view-mode-cards
  table
  tbody
  tr:has(.erp-card-view)
  > td:first-child
  .erp-card-view,
.view-mode-cards table.has-erp-card tbody tr > td:first-child .erp-card-view {
  display: block !important;
}

/* Hide column toggle bar in Card Mode */
.view-mode-cards .column-toggle-bar {
  display: none !important;
}

/* Mobile responsive single-column layout for Card View (< 768px) */
@media (max-width: 767.98px) {
  .view-mode-cards table tbody {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .view-mode-cards table tbody tr {
    padding: 12px 14px !important;
  }
}

.erp-card-icon-btn {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border-radius: 6px !important;
  flex-shrink: 0 !important;
  font-size: 0.95rem !important;
  line-height: 1 !important;
  transition: all 0.15s ease-in-out !important;
}

.erp-card-icon-btn i,
.erp-card-icon-btn .feather {
  font-size: 0.95rem !important;
  width: 15px !important;
  height: 15px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  vertical-align: middle !important;
}

.erp-card-icon-btn:hover i,
.erp-card-icon-btn:hover .feather {
  color: #fff !important;
}

/* ---------- Card Inner Layout Utility Classes (v2) ------------------------- */
.erp-card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.erp-card-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.erp-card-badge-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.erp-card-id-badge {
  font-size: 0.82rem;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 700;
}

.erp-card-type-badge {
  font-size: 0.78rem;
  border-radius: 6px;
  font-weight: 700;
}

.erp-card-title {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  color: #2b2d42;
}

.erp-card-desc {
  font-size: 0.8rem;
  color: #6e6b7b;
  margin-bottom: 0;
  margin-top: 0.25rem;
  line-height: 1.4;
  max-height: 42px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.erp-card-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.5rem 0;
  padding: 0.5rem;
  border-radius: 6px;
  background: #f8f9fa;
  border: 1px solid #ebe9f1;
}

.erp-card-info-label {
  font-size: 0.75rem;
  color: #6e6b7b;
  display: block;
}

.erp-card-info-value {
  font-weight: 700;
  font-size: 0.9rem;
}

.erp-card-info-value-right {
  font-weight: 600;
  font-size: 0.8rem;
  color: #2b2d42;
}

.erp-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  margin-top: auto;
  border-top: 1px solid #f0f2f5;
  gap: 6px;
}

.erp-card-btn {
  height: 30px !important;
  min-height: 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 6px !important;
  padding: 0 0.75rem !important;
  font-size: 0.78rem !important;
  line-height: 1 !important;
  flex-grow: 1;
  font-weight: 700;
}

.member-mobile-trigger,
.patient-mobile-trigger {
  cursor: pointer;
  text-decoration: none;
  color: #bd080f;
  display: inline-flex;
  align-items: center;
  transition: all 0.15s ease-in-out;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(189, 8, 15, 0.06);
}

.member-mobile-trigger:hover,
.patient-mobile-trigger:hover {
  color: #9c060c;
  background-color: rgba(189, 8, 15, 0.12);
  text-decoration: none;
}

/* ---------- Dark Layout Support for v2 Cards ------------------------------- */
body.dark-layout .view-mode-cards table tbody tr,
body.dark-layout .erp-datatable tbody tr {
  background: #10163a !important;
  border-color: #2e3860 !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3) !important;
}

body.dark-layout .view-mode-cards table tbody tr:hover,
body.dark-layout .erp-datatable tbody tr:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45) !important;
  border-color: #bd080f !important;
}

body.dark-layout .erp-card-title {
  color: #c2c6dc !important;
}

body.dark-layout .erp-card-desc,
body.dark-layout .erp-card-info-label {
  color: #8a99b5 !important;
}

body.dark-layout .erp-card-info-row {
  background: #1e264a !important;
  border-color: #2e3860 !important;
}

body.dark-layout .erp-card-info-value-right {
  color: #c2c6dc !important;
}

body.dark-layout .erp-card-actions {
  border-top-color: #2e3860 !important;
}

/* ==========================================================================
   Leva Shubhyog — Official Brand Theme (Extracted from Logo)
   - Primary Crimson Red: #bd080f (RGB 189, 8, 15)
   - Secondary Deep Navy: #002258 (RGB 0, 34, 88)
   ========================================================================== */

:root {
  --primary: #bd080f;
  --primary-hover: #9c060c;
  --primary-light: #d91c24;
  --primary-soft: rgba(189, 8, 15, 0.1);
  --primary-glow: rgba(189, 8, 15, 0.35);

  --secondary: #002258;
  --secondary-hover: #00173d;
  --secondary-light: #0d367a;
  --secondary-soft: rgba(0, 34, 88, 0.1);

  --brand-gradient: linear-gradient(135deg, #bd080f 0%, #002258 100%);
  --brand-gradient-h: linear-gradient(90deg, #bd080f 0%, #002258 100%);
}

/* 1. Brand Logo & Header Brand Text */
.main-menu .navbar-header .navbar-brand .brand-logo {
  background: url("../../app-assets/images/logo/logo-64x64.png?v=260914.3") no-repeat
    center center !important;
  background-size: contain !important;
  height: 30px !important;
  width: 30px !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 8px rgba(189, 8, 15, 0.25) !important;
}

.main-menu .navbar-header .navbar-brand .brand-text {
  background: linear-gradient(90deg, #bd080f 0%, #002258 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: #bd080f !important;
  font-weight: 700 !important;
  letter-spacing: 0.02rem !important;
}

/* 2. Global Brand Text & Links */
a {
  color: #bd080f;
}
a:hover {
  color: #9c060c;
}
.text-primary,
.primary {
  color: #bd080f !important;
}
.text-secondary {
  color: #002258 !important;
}

/* 3. Primary & Secondary Buttons */
.btn-primary {
  background-color: #bd080f !important;
  border-color: #bd080f !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(189, 8, 15, 0.25) !important;
  transition: all 0.2s ease !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
  background-color: #9c060c !important;
  border-color: #9c060c !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(189, 8, 15, 0.4) !important;
}
.btn-outline-primary {
  color: #bd080f !important;
  border-color: #bd080f !important;
  background-color: transparent !important;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active {
  background-color: #bd080f !important;
  border-color: #bd080f !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(189, 8, 15, 0.3) !important;
}

.btn-secondary {
  background-color: #002258 !important;
  border-color: #002258 !important;
  color: #ffffff !important;
}
.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active,
.btn-secondary.active {
  background-color: #00173d !important;
  border-color: #00173d !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(0, 34, 88, 0.35) !important;
}
.btn-outline-secondary {
  color: #002258 !important;
  border-color: #002258 !important;
}
.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active,
.btn-outline-secondary.active {
  background-color: #002258 !important;
  border-color: #002258 !important;
  color: #ffffff !important;
}

/* 4. Active Sidebar Navigation Menu */
.main-menu.menu-light .navigation > li.active > a,
.main-menu.menu-dark .navigation > li.active > a {
  background: linear-gradient(118deg, #bd080f 0%, #002258 100%) !important;
  box-shadow: 0 2px 10px rgba(189, 8, 15, 0.45) !important;
  color: #ffffff !important;
  border-radius: 6px !important;
}
.main-menu.menu-light .navigation > li.active > a i,
.main-menu.menu-dark .navigation > li.active > a i,
.main-menu.menu-light .navigation > li.active > a span,
.main-menu.menu-dark .navigation > li.active > a span {
  color: #ffffff !important;
}
.main-menu.menu-light .navigation > li:not(.active) > a:hover,
.main-menu.menu-dark .navigation > li:not(.active) > a:hover {
  color: #bd080f !important;
}
.main-menu.menu-light .navigation > li:not(.active) > a:hover i,
.main-menu.menu-dark .navigation > li:not(.active) > a:hover i {
  color: #bd080f !important;
}

/* 5. Badges */
.badge-primary,
.badge.badge-primary {
  background-color: #bd080f !important;
  color: #ffffff !important;
}
.badge-light-primary,
.badge.badge-light-primary {
  background-color: rgba(189, 8, 15, 0.12) !important;
  color: #bd080f !important;
}
.badge-secondary,
.badge.badge-secondary {
  background-color: #002258 !important;
  color: #ffffff !important;
}
.badge-light-secondary,
.badge.badge-light-secondary {
  background-color: rgba(0, 34, 88, 0.12) !important;
  color: #002258 !important;
}

/* 6. Form Controls & Focus Rings */
.form-control:focus,
input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  border-color: #bd080f !important;
  box-shadow: 0 0 0 0.15rem rgba(189, 8, 15, 0.2) !important;
}
.custom-control-input:checked ~ .custom-control-label::before {
  background-color: #bd080f !important;
  border-color: #bd080f !important;
}

/* 7. Header Search Box */
.header-search-container:focus-within {
  border-color: #bd080f !important;
  box-shadow: 0 4px 12px rgba(189, 8, 15, 0.18) !important;
}
.header-search-container:focus-within .search-box-icon {
  color: #bd080f !important;
}

/* 8. Pagination & DataTables Active State */
.page-item.active .page-link,
.pagination .page-item.active .page-link {
  background-color: #bd080f !important;
  border-color: #bd080f !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(189, 8, 15, 0.3) !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: #bd080f !important;
  border-color: #bd080f !important;
  color: #ffffff !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: rgba(189, 8, 15, 0.1) !important;
  border-color: #bd080f !important;
  color: #bd080f !important;
}

/* 9. Nav Tabs & Pills */
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background-color: #bd080f !important;
  box-shadow: 0 2px 6px rgba(189, 8, 15, 0.35) !important;
}
.nav-tabs .nav-link.active {
  color: #bd080f !important;
  border-bottom: 2px solid #bd080f !important;
}

/* 10. Select2 Focus & Highlight */
.select2-container--default
  .select2-results__option--highlighted[aria-selected] {
  background-color: #bd080f !important;
  color: #ffffff !important;
}
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus
  .select2-selection--multiple {
  border-color: #bd080f !important;
}

/* 11. Custom switch & Checkbox */
.custom-switch .custom-control-input:checked ~ .custom-control-label::before {
  background-color: #bd080f !important;
}

/* 12. Breadcrumb Active Item */
.breadcrumb-item a:hover {
  color: #bd080f !important;
}

/* 13. Column toggle links */
.column-toggle-bar a.toggle-vis.text-primary,
.toggle-vis.visible-col {
  color: #bd080f !important;
}
