﻿/* ============================================================
   BNB Admin – Modern Frontend Style Overrides
   ============================================================ */

/* Hide the "Buy Now" promo banner */
#proBanner { display: none !important; }

/* Replace template logo text */
.navbar-brand-text {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: #2A574C;
  letter-spacing: -0.02em;
}

/* ========== MODERN STYLE OVERRIDES ========== */

:root {
  /* Override Bootstrap primary to brand green */
  --bs-primary:           #2A574C;
  --bs-primary-rgb:       42, 87, 76;
  --bs-link-color:        #2A574C;
  --bs-link-color-rgb:    42, 87, 76;
  --bs-link-hover-color:  #3A6B5E;

  --primary-color: #2A574C;
  --primary-light: #3A6B5E;
  --secondary-color: #E5CA7B;
  --danger-color: #C0392B;
  --warning-color: #E5CA7B;
  --sidebar-width: 280px;
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --card-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Hard override for any remaining blue text-primary / bg-primary */
.text-primary          { color: #2A574C !important; }
a.text-primary:hover   { color: #3A6B5E !important; }
.bg-primary            { background-color: #2A574C !important; }
.border-primary        { border-color: #2A574C !important; }
.btn-outline-primary   { color: #2A574C !important; border-color: #2A574C !important; }
.btn-outline-primary:hover,
.btn-outline-primary.active { background-color: #E5CA7B !important; color: #1f2937 !important; }
.btn-outline-secondary { color: #2A574C !important; border-color: #2A574C !important; }
.btn-outline-secondary:hover,
.btn-outline-secondary.active { background-color: #E5CA7B !important; color: #1f2937 !important; border-color: #E5CA7B !important; }
.badge.bg-primary      { background-color: #f0fdf4 !important; color: #2A574C !important; }
a                      { color: #2A574C; }
a:hover                { color: #3A6B5E; }

/* ========== GLOBAL STYLES ========== */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  background-color: #f8fafc;
}

/* ========== NAVBAR ========== */
.navbar.default-layout {
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid #e5e7eb;
}

.welcome-text {
  font-weight: 600;
  color: #1f2937;
}

.welcome-sub-text {
  font-weight: 400;
  color: #6b7280;
  font-size: 0.875rem;
}

/* ========== CARDS ========== */
.card-rounded {
  border-radius: 12px !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: var(--card-shadow) !important;
  transition: all 0.3s ease;
  background: white;
}

.card-rounded:hover {
  box-shadow: var(--card-shadow-hover) !important;
  transform: translateY(-2px);
}

.card-title {
  font-weight: 600 !important;
  color: #1f2937 !important;
}

.card-subtitle {
  color: #6b7280 !important;
  font-size: 0.875rem !important;
}

/* ========== STATISTICS CARDS ========== */
.statistics-details {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  margin-bottom: 1.5rem;
}

.statistics-details > div {
  padding: 0 1.5rem;
  border-right: 1px solid #e5e7eb;
}

.statistics-details > div:last-child {
  border-right: none;
}

.statistics-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.rate-percentage {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

/* ========== BUTTONS ========== */
.btn {
  border-radius: 8px !important;
  font-weight: 500 !important;
  padding: 0.5rem 1.25rem !important;
  transition: all 0.2s ease !important;
}

.btn-primary {
  background: linear-gradient(135deg, #2A574C 0%, #3A6B5E 100%) !important;
  border: none !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2A574C 0%, #E5CA7B 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(229, 202, 123, 0.35);
}

.btn-otline-dark {
  border: 1px solid #d1d5db !important;
  color: #374151 !important;
  background: transparent !important;
}

.btn-otline-dark:hover {
  background: #f9fafb !important;
  border-color: #9ca3af !important;
}

/* ========== TABLES ========== */
.table.select-table {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.table.select-table thead {
  background: #f9fafb;
}

.table.select-table th {
  font-weight: 600;
  color: #374151;
  border-bottom: 2px solid #e5e7eb;
  padding: 0.75rem 1rem;
}

.table.select-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f3f4f6;
}

.table.select-table tbody tr:hover {
  background-color: #f9fafb;
}

/* ========== BADGES ========== */
.badge {
  border-radius: 6px !important;
  font-weight: 500 !important;
  padding: 0.25rem 0.5rem !important;
  font-size: 0.75rem !important;
}

.badge-opacity-success {
  background-color: rgba(16, 185, 129, 0.1) !important;
  color: #10b981 !important;
}

/* ========== PROGRESS BARS ========== */
.progress {
  border-radius: 6px !important;
  background-color: #e5e7eb !important;
  height: 6px !important;
}

.progress-bar {
  border-radius: 6px !important;
}

/* ========== TABS ========== */
.nav-tabs {
  border-bottom: 1px solid #e5e7eb !important;
}

.nav-tabs .nav-link {
  border: none !important;
  color: #6b7280 !important;
  font-weight: 500 !important;
  padding: 0.5rem 1rem !important;
  margin-right: 1rem !important;
  border-radius: 8px !important;
}

.nav-tabs .nav-link.active {
  color: #2A574C !important;
  background-color: rgba(42, 87, 76, 0.1) !important;
}

/* ========== SIDEBAR ========== */
.sidebar {
  background: white !important;
  border-right: 1px solid #e5e7eb !important;
}

/* Override template blue on active sidebar items */
.sidebar .nav .nav-item.active > .nav-link i,
.sidebar .nav .nav-item.active > .nav-link .menu-title,
.sidebar .nav .nav-item.active > .nav-link .menu-arrow {
  color: #2A574C !important;
}

.sidebar .nav .nav-item.active > .nav-link {
  background: rgba(42, 87, 76, 0.08) !important;
  border-radius: 8px !important;
}

.sidebar .nav .nav-item .nav-link i.menu-icon {
  color: #6B8B83 !important;
}

.sidebar .nav .nav-item.active .nav-link i.menu-icon {
  color: #2A574C !important;
}

.sidebar .nav .nav-item .nav-link:hover {
  color: #2A574C !important;
  background: rgba(42, 87, 76, 0.06) !important;
}

.sidebar .nav .nav-item .nav-link:hover i.menu-icon {
  color: #2A574C !important;
}

.nav-item.active {
  background: rgba(42, 87, 76, 0.1) !important;
  border-radius: 8px !important;
}

.nav-item.active .nav-link {
  color: #2A574C !important;
}

.nav-link {
  color: #4b5563 !important;
  font-weight: 500 !important;
  border-radius: 8px !important;
  margin: 0.25rem 0.5rem !important;
}

.nav-link:hover {
  background: #f9fafb !important;
  color: #374151 !important;
}

/* ========== PROFILE PAGE ENHANCEMENTS ========== */
.img-fluid.rounded-circle {
  border: 3px solid white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tab-content .tab-pane {
  padding: 1.5rem 0;
}

.form-control {
  border-radius: 8px !important;
  border: 1px solid #d1d5db !important;
  padding: 0.5rem 0.75rem !important;
}

.form-control:focus {
  border-color: #2A574C !important;
  box-shadow: 0 0 0 3px rgba(42, 87, 76, 0.1) !important;
}

/* ========== RESPONSIVE IMPROVEMENTS ========== */
@media (max-width: 768px) {
  .statistics-details {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .statistics-details > div {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
  }
  
  .statistics-details > div:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  
  .card-rounded {
    margin-bottom: 1rem;
  }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.card-rounded {
  animation: fadeIn 0.5s ease-out;
}

/* ========== UTILITY CLASSES ========== */
.text-gradient {
  background: linear-gradient(135deg, #2A574C 0%, #E5CA7B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}
/* ========== NEW NAVBAR STYLES ========== */
.navbar-brand .rounded-circle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-purple {
  background-color: #8b5cf6 !important;
}

.text-purple {
  color: #8b5cf6 !important;
}

/* ========== DASHBOARD CARD ICONS ========== */
.rounded-circle.bg-primary.bg-opacity-10 {
  background-color: rgba(42, 87, 76, 0.1) !important;
}

.rounded-circle.bg-success.bg-opacity-10 {
  background-color: rgba(16, 185, 129, 0.1) !important;
}

.rounded-circle.bg-info.bg-opacity-10 {
  background-color: rgba(59, 130, 246, 0.1) !important;
}

.rounded-circle.bg-warning.bg-opacity-10 {
  background-color: rgba(245, 158, 11, 0.1) !important;
}

.rounded-circle.bg-purple.bg-opacity-10 {
  background-color: rgba(139, 92, 246, 0.1) !important;
}

/* ========== DROPDOWN ENHANCEMENTS ========== */
.dropdown-menu.navbar-dropdown {
  border-radius: 12px !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
  margin-top: 0.5rem !important;
  min-width: 240px !important;
}

.dropdown-header {
  padding: 1.25rem !important;
}

.dropdown-item {
  padding: 0.75rem 1rem !important;
  border-radius: 8px !important;
  margin: 0.125rem 0.5rem !important;
  width: calc(100% - 1rem) !important;
}

.dropdown-item:hover {
  background-color: #f9fafb !important;
}

/* ========== STATUS INDICATOR ========== */
.position-absolute.bg-success {
  width: 10px !important;
  height: 10px !important;
}

/* ========== RESPONSIVE TWEAKS ========== */
@media (max-width: 991.98px) {
  .navbar-brand-text {
    font-size: 1rem;
  }
  
  .welcome-text {
    font-size: 1.25rem;
  }
  
  .welcome-sub-text {
    font-size: 0.75rem;
  }
}

/* ========== COLOR UTILITIES ========== */
.bg-opacity-10 {
  opacity: 0.1;
}

.text-gradient {
  background: linear-gradient(135deg, #2A574C 0%, #E5CA7B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* ========== PROFILE PAGE SPECIFIC ========== */
.card .position-relative {
  width: fit-content;
  margin: 0 auto;
}

.bg-opacity-10.text-success {
  background-color: rgba(16, 185, 129, 0.1) !important;
  color: #10b981 !important;
}

.bg-opacity-10.text-danger {
  background-color: rgba(239, 68, 68, 0.1) !important;
  color: #ef4444 !important;
}

/* ========== TAB STYLES FOR PROFILE ========== */
.nav-tabs.profile-tabs {
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 1.5rem;
}

.nav-tabs.profile-tabs .nav-link {
  padding: 0.75rem 1.5rem;
  border-radius: 8px 8px 0 0;
  margin-right: 0.5rem;
  font-weight: 500;
}

.nav-tabs.profile-tabs .nav-link.active {
  background: white;
  border-color: #e5e7eb #e5e7eb white;
  color: #2A574C;
}

/* ========== FORM GROUP STYLES ========== */
.form-label {
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.form-control:disabled {
  background-color: #f9fafb;
  color: #6b7280;
}

/* ========== PASSWORD TIPS CARD ========== */
.card.h-100 .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.text-muted.small.text-start li {
  margin-bottom: 0.25rem;
}

/* ========== RESPONSIVE PROFILE ========== */
@media (max-width: 768px) {
  .col-lg-3.col-md-4.mb-4 {
    margin-bottom: 1.5rem !important;
  }
  
  .nav-tabs.profile-tabs .nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}


/* ============================================================
   DASHBOARD REDESIGN – Charts, Stats, Navbar
   Frontend Brand Palette: Deep Green #2A574C | Gold #E5CA7B
   ============================================================ */

/* ---- Override primary color to match frontend brand ---- */
:root {
  --brand-green:       #2A574C;
  --brand-green-light: #3A6B5E;
  --brand-gold:        #E5CA7B;
  --brand-gold-soft:   rgba(229, 202, 123, 0.15);
  --brand-sidebar-bg:  #1A2420;
  --brand-text-muted:  #6B8B83;
}

/* ---- Navbar Enhancements ---- */
.navbar.default-layout {
  height: 70px;
  z-index: 1030;
}

.brand-icon-wrap {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #2A574C, #3A6B5E);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Search box */
.navbar-search-wrapper {
  max-width: 380px;
  width: 100%;
}

.navbar-search-box {
  position: relative;
  width: 100%;
}

.navbar-search-box .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 1.1rem;
  pointer-events: none;
}

.navbar-search-input {
  width: 100%;
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f9fafb;
  font-size: 0.875rem;
  color: #374151;
  outline: none;
  transition: all 0.2s;
}

.navbar-search-input:focus {
  border-color: #2A574C;
  background: white;
  box-shadow: 0 0 0 3px rgba(42, 87, 76, 0.1);
}

.search-results-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  z-index: 9999;
  max-height: 360px;
  overflow-y: auto;
}

.search-result-item {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  color: #374151;
  text-decoration: none;
  font-size: 0.875rem;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.15s;
}

.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: #f0fdf4; color: #2A574C; }

.search-result-empty {
  padding: 16px 14px;
  color: #9ca3af;
  font-size: 0.875rem;
  text-align: center;
}

/* Nav icon buttons */
.navbar-nav .nav-item {
  position: relative;
}

.nav-icon-btn {
  width: 38px;
  height: 38px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #6b7280 !important;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  margin: 0 3px;
  position: relative;
  transition: all 0.2s;
}

.nav-icon-btn:hover {
  background: #f3f4f6 !important;
  color: var(--brand-green) !important;
  border-color: #d1d5db !important;
}

.nav-icon-btn i {
  font-size: 1.2rem;
}

/* Notification badge — sits on top-right of the icon button */
.nav-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #C0392B;
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 2px solid white;
  pointer-events: none;
  z-index: 1;
}

/* Notification nav item — ensure dropdown always opens downward */
.notif-nav-item {
  position: relative;
}

/* Notification dropdown — use static display so Popper doesn't reposition */
.notif-dropdown {
  min-width: 320px !important;
  border-radius: 12px !important;
  margin-top: 8px !important;
  /* Prevent Popper from flipping the dropdown upward */
  top: 100% !important;
  transform: none !important;
  inset: auto !important;
  right: 0 !important;
  left: auto !important;
  position: absolute !important;
}

.notif-header {
  font-size: 0.875rem;
  border-bottom: 1px solid #f3f4f6;
}

.notif-item {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  padding: 0.75rem 1rem !important;
}

.notif-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notif-title { font-size: 0.875rem; font-weight: 600; color: #1f2937; }
.notif-sub   { font-size: 0.75rem; color: #6b7280; }

/* User avatar */
.user-avatar-circle {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #2A574C, #3A6B5E);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
}

.user-avatar-circle-lg {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #2A574C, #3A6B5E);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
}

.user-avatar-btn { padding: 0.25rem 0.5rem !important; }
.user-name-text  { font-size: 0.875rem; font-weight: 600; color: #1f2937; line-height: 1.2; }
.user-role-text  { font-size: 0.7rem; color: #6b7280; }

.online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 9px;
  height: 9px;
  background: #10b981;
  border-radius: 50%;
  border: 2px solid white;
}

/* ---- Stat Cards ---- */
.stat-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon-circle i { font-size: 1.4rem; }

.bg-primary-soft  { background: rgba(42, 87, 76, 0.12) !important; }
.bg-success-soft  { background: rgba(16, 185, 129, 0.12) !important; }
.bg-info-soft     { background: rgba(59, 130, 246, 0.12) !important; }
.bg-warning-soft  { background: rgba(245, 158, 11, 0.12) !important; }
.bg-danger-soft   { background: rgba(239, 68, 68, 0.12) !important; }
.bg-purple-soft   { background: rgba(139, 92, 246, 0.12) !important; }

/* ---- Table Enhancements ---- */
.table thead th {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.75rem 1rem;
  background: #f9fafb;
}

.table tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
  font-size: 0.875rem;
}

.table-hover tbody tr:hover { background: #f9fafb; }

.user-avatar-sm {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #2A574C, #3A6B5E);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.badge.bg-success-soft { background: rgba(16,185,129,0.12) !important; color: #10b981 !important; }
.badge.bg-warning-soft { background: rgba(245,158,11,0.12) !important; color: #f59e0b !important; }
.badge.bg-danger-soft  { background: rgba(239,68,68,0.12) !important;  color: #ef4444 !important; }

/* ---- Activity Feed ---- */
.activity-feed { display: flex; flex-direction: column; gap: 1rem; }

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.activity-icon i { font-size: 1rem; }
.activity-title  { font-size: 0.875rem; font-weight: 600; color: #1f2937; }
.activity-meta   { font-size: 0.75rem; color: #9ca3af; }

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
  .navbar-search-wrapper { display: none !important; }
}

/* ── DataTables custom styling ───────────────────────────────────────────── */
.dt-toolbar {
  padding: 12px 20px 0;
}
.dt-toolbar .dataTables_length label,
.dt-toolbar .dataTables_filter label {
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.dt-toolbar .dataTables_filter input,
.dt-toolbar .dataTables_length select {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 0.73rem;
  outline: none;
  transition: border-color .2s;
  height: 26px;
  line-height: 1.2;
  min-height: 26px;
}
.dt-toolbar .dataTables_filter input:focus,
.dt-toolbar .dataTables_length select:focus {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(42,87,76,.08);
}
.dt-toolbar .dt-search input:focus,
.dt-toolbar .dt-length select:focus {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(42,87,76,.08);
}
.dataTables_wrapper .dataTable {
  border-collapse: separate;
  border-spacing: 0;
}
.dt-footer {
  padding: 12px 20px;
  border-top: 1px solid #f3f4f6;
  font-size: 0.8rem;
  color: #6b7280;
}
.dt-footer .dataTables_info {
  font-size: .75rem;
  color: #9ca3af;
}
.dt-footer .dt-paging {
  display: flex;
  align-items: center;
  gap: 3px;
}
.dt-footer .dt-paging .paginate_button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 28px !important;
  height: 28px !important;
  padding: 0 6px !important;
  border-radius: 7px !important;
  border: 1px solid #e5e7eb !important;
  background: #fff !important;
  color: #374151 !important;
  font-size: .75rem !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all .12s !important;
  margin: 0 !important;
}
.dt-footer .dt-paging .paginate_button.current,
.dt-footer .dt-paging .paginate_button.current:hover {
  background: #2A574C !important;
  border-color: #2A574C !important;
  color: #fff !important;
  font-weight: 600 !important;
}
.dt-footer .dt-paging .paginate_button:hover {
  border-color: #2A574C !important;
  color: #2A574C !important;
  background: #f0fdf4 !important;
}
.dt-footer .dt-paging .paginate_button.disabled,
.dt-footer .dt-paging .paginate_button.disabled:hover {
  color: #d1d5db !important;
  background: #f9fafb !important;
  border-color: #e5e7eb !important;
  cursor: default !important;
  pointer-events: none !important;
}
.dt-footer .dt-paging .paginate_button .mdi {
  font-size: .9rem;
  line-height: 1;
}
table.dataTable thead th {
  border-bottom: 2px solid #e5e7eb !important;
}
table.dataTable thead th.sorting:after,
table.dataTable thead th.sorting_asc:after,
table.dataTable thead th.sorting_desc:after {
  opacity: 0.5;
}

/* ── Consistent table wrapper margins ── */
.data-card table.table,
table.dt-table {
  margin-bottom: 0;
}
.data-card .data-card-header + .table-responsive table.table,
.data-card .data-card-header + table.table {
  border-top: none;
}

/* ── Consistent pagination for server-side paginated views ── */
.pagination-wrap,
.data-card .pagination-wrap,
.data-card div:not(.dt-footer) > ul.pagination:only-child,
.data-card .border-top > ul.pagination,
.data-card .px-4.py-3 > ul.pagination {
  padding: 10px 20px;
  border-top: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pagination-wrap .pagination,
.data-card ul.pagination {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 3px;
}
.pagination .page-item .page-link,
.data-card ul.pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 7px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  font-size: .75rem;
  font-weight: 500;
  text-decoration: none;
  transition: all .12s;
  margin: 0;
}
.pagination .page-item.active .page-link,
.data-card ul.pagination .page-item.active .page-link {
  background: #2A574C !important;
  border-color: #2A574C !important;
  color: #fff !important;
  font-weight: 600 !important;
}
.pagination .page-item .page-link:hover,
.data-card ul.pagination .page-item .page-link:hover {
  border-color: #2A574C;
  color: #2A574C;
  background: #f0fdf4;
}
.pagination .page-item.disabled .page-link,
.data-card ul.pagination .page-item.disabled .page-link {
  color: #d1d5db;
  background: #f9fafb;
  pointer-events: none;
}

/* ── Consistent table container margins ── */
.data-card {
  margin-bottom: 0;
}
.data-card + .data-card,
.filter-card + .data-card {
  margin-top: 0;
}
.data-card .table-responsive table.table,
.data-card table.table {
  margin-bottom: 0;
}
.data-card .table-responsive {
  margin-bottom: 0;
}
