/* ==========================================================================
   EstateFlow CRM - Executive Royal Blue & Gold Enterprise Real Estate Theme
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Override Default Spruko / Bootstrap Primary Palette */
  --primary-rgb: 30, 64, 175;
  --primary-color: #1e40af;
  --primary-border: #1e40af;
  --primary-tint1-rgb: 59, 130, 246;
  --primary-tint2-rgb: 245, 158, 11;
  --primary-tint3-rgb: 16, 185, 129;
  
  --primary005: rgba(30, 64, 175, 0.05);
  --primary01: rgba(30, 64, 175, 0.1);
  --primary02: rgba(30, 64, 175, 0.2);
  --primary03: rgba(30, 64, 175, 0.3);
  --primary08: rgba(30, 64, 175, 0.8);
  --primary09: rgba(30, 64, 175, 0.9);

  /* Executive Real Estate Custom Tokens */
  --ef-navy-950: #070d1e;
  --ef-navy-900: #0b1329;
  --ef-navy-800: #0f1c3f;
  --ef-navy-700: #162a5b;
  --ef-royal-blue: #1e40af;
  --ef-royal-light: #2563eb;
  --ef-royal-vivid: #3b82f6;
  --ef-gold: #f59e0b;
  --ef-gold-dark: #d97706;
  --ef-gold-light: #fbbf24;
  --ef-emerald: #10b981;
  --ef-rose: #f43f5e;
  --ef-slate-50: #f8fafc;
  --ef-slate-100: #f1f5f9;
  --ef-slate-200: #e2e8f0;
  --ef-slate-700: #334155;
  --ef-slate-900: #0f172a;

  --default-font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --default-text-color: #1e293b;
  --default-border: #e2e8f0;
  --default-background: #f8fafc;
  --bootstrap-card-border: #e2e8f0;

  --ef-gradient-primary: linear-gradient(135deg, #1e40af 0%, #1d4ed8 50%, #2563eb 100%);
  --ef-gradient-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --ef-gradient-dark: linear-gradient(135deg, #0b1329 0%, #0f1c3f 100%);
  --ef-gradient-card-royal: linear-gradient(135deg, rgba(30, 64, 175, 0.04) 0%, rgba(245, 158, 11, 0.03) 100%);
  
  --ef-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --ef-shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --ef-shadow-lg: 0 12px 28px -4px rgba(30, 64, 175, 0.12), 0 6px 12px -2px rgba(15, 23, 42, 0.06);
  --ef-radius: 12px;
}

/* Global Typography & Body */
body {
  font-family: var(--default-font-family) !important;
  color: var(--default-text-color) !important;
  background-color: var(--ef-slate-50) !important;
  letter-spacing: -0.01em;
}

/* Page Header & Breadcrumb */
.page-title {
  font-family: var(--default-font-family) !important;
  font-weight: 700 !important;
  color: var(--ef-slate-900) !important;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   Executive Top Navbar (Modern SaaS Header)
   ========================================================================== */
.app-header {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85) !important;
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.04) !important;
  height: 64px !important;
}

/* Nav Global Search Bar */
.ef-nav-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 280px;
}

.ef-nav-search-icon {
  position: absolute;
  left: 12px;
  font-size: 15px;
  color: #94a3b8;
  pointer-events: none;
}

.ef-nav-search-input {
  width: 100%;
  height: 36px;
  padding: 6px 36px 6px 34px;
  font-size: 12px;
  font-family: inherit;
  color: #1e293b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.ef-nav-search-input:focus {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  outline: none;
  width: 320px;
}

.ef-nav-search-kbd {
  position: absolute;
  right: 10px;
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 1px 5px;
  line-height: 1.2;
}

/* User Greeting Pill */
.ef-greeting-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  color: #475569;
}

.ef-greeting-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

/* Duty Status Toggle Pill */
.ef-duty-toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.ef-duty-toggle-pill.is-on {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(5, 150, 105, 0.2) 100%);
  border: 1.5px solid #10b981;
  color: #065f46 !important;
}

.ef-duty-toggle-pill.is-on:hover {
  background: #10b981;
  color: #ffffff !important;
}

.ef-duty-toggle-pill.is-on .ef-duty-indicator {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  animation: efPulse 1.8s infinite;
}

.ef-duty-toggle-pill.is-off {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.18) 100%);
  border: 1.5px solid #ef4444;
  color: #991b1b !important;
}

.ef-duty-toggle-pill.is-off:hover {
  background: #ef4444;
  color: #ffffff !important;
}

.ef-duty-toggle-pill.is-off .ef-duty-indicator {
  width: 7px;
  height: 7px;
  background: #ef4444;
  border-radius: 50%;
}

/* Executive User Profile in Header */
.ef-user-profile-toggle {
  padding: 4px 10px !important;
  border-radius: 24px !important;
  border: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
  transition: all 0.2s ease !important;
}

.ef-user-profile-toggle:hover {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}

/* ==========================================================================
   Executive Modern PropTech Sidebar
   ========================================================================== */
.app-sidebar,
.main-sidebar {
  background: linear-gradient(180deg, #070d1e 0%, #0a1228 50%, #080e22 100%) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25) !important;
}

.ef-sidebar-header {
  height: 64px !important;
}

/* Category Headings */
.main-sidebar .slide__category {
  padding: 16px 16px 6px 16px !important;
}

.main-sidebar .slide__category .category-name {
  font-size: 10px !important;
  font-weight: 800 !important;
  color: #64748b !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
}

/* Menu Items & Icons */
.main-sidebar .side-menu__item,
.app-sidebar .side-menu__item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 12px !important;
  margin: 2px 8px !important;
  border-radius: 8px !important;
  color: #94a3b8 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  min-height: 38px !important;
  height: auto !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative !important;
}

.main-sidebar .side-menu__icon,
.app-sidebar .side-menu__icon {
  font-size: 17px !important;
  color: #60a5fa !important;
  width: 22px !important;
  text-align: center !important;
  flex-shrink: 0 !important;
  transition: transform 0.2s ease, color 0.2s ease !important;
}

.main-sidebar .side-menu__label,
.app-sidebar .side-menu__label {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  line-height: 1.35 !important;
}

.main-sidebar .side-menu__angle,
.app-sidebar .side-menu__angle {
  font-size: 14px !important;
  color: #64748b !important;
  flex-shrink: 0 !important;
  margin-left: auto !important;
  transition: transform 0.2s ease !important;
}

/* Hover State */
.main-sidebar .side-menu__item:hover,
.app-sidebar .side-menu__item:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
}

.main-sidebar .side-menu__item:hover .side-menu__icon,
.app-sidebar .side-menu__item:hover .side-menu__icon {
  color: #fbbf24 !important;
  transform: translateX(2px) !important;
}

/* Active Menu Item */
.main-sidebar .slide.active > .side-menu__item,
.main-sidebar .slide.has-sub.active > .side-menu__item,
.app-sidebar .slide.active > .side-menu__item,
.app-sidebar .slide.has-sub.active > .side-menu__item {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.28) 0%, rgba(37, 99, 235, 0.08) 100%) !important;
  border-left: 3.5px solid #f59e0b !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2) !important;
}

.main-sidebar .slide.active > .side-menu__item .side-menu__icon,
.main-sidebar .slide.has-sub.active > .side-menu__item .side-menu__icon,
.app-sidebar .slide.active > .side-menu__item .side-menu__icon,
.app-sidebar .slide.has-sub.active > .side-menu__item .side-menu__icon {
  color: #fbbf24 !important;
}

/* Submenu Styling & Long Name Optimization */
.main-sidebar .slide-menu.child1,
.main-sidebar .slide-menu.child2,
.main-sidebar .slide-menu.child3,
.app-sidebar .slide-menu.child1,
.app-sidebar .slide-menu.child2,
.app-sidebar .slide-menu.child3 {
  background: rgba(4, 8, 18, 0.65) !important;
  border-radius: 8px !important;
  padding: 4px 6px !important;
  margin: 4px 8px !important;
  border-left: 2px solid rgba(59, 130, 246, 0.35) !important;
}

/* Remove default template's duplicate dash bullet and redundant padding */
.main-sidebar .slide-menu.child1 .side-menu__item:before,
.main-sidebar .slide-menu.child2 .side-menu__item:before,
.main-sidebar .slide-menu.child3 .side-menu__item:before,
.app-sidebar .slide-menu.child1 .side-menu__item:before,
.app-sidebar .slide-menu.child2 .side-menu__item:before,
.app-sidebar .slide-menu.child3 .side-menu__item:before {
  display: none !important;
  content: "" !important;
}

.main-sidebar .slide-menu.child1 li,
.main-sidebar .slide-menu.child2 li,
.main-sidebar .slide-menu.child3 li,
.app-sidebar .slide-menu.child1 li,
.app-sidebar .slide-menu.child2 li,
.app-sidebar .slide-menu.child3 li {
  padding: 0 !important;
  padding-inline-start: 0 !important;
}

.main-sidebar .slide-menu.child2 .side-menu__item,
.app-sidebar .slide-menu.child2 .side-menu__item {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 6px 8px !important;
  margin: 2px 0 !important;
  border-radius: 6px !important;
  font-size: 12.5px !important;
  min-height: 32px !important;
  height: auto !important;
}

.main-sidebar .slide-menu.child2 .side-menu__label,
.app-sidebar .slide-menu.child2 .side-menu__label {
  font-size: 12.5px !important;
  line-height: 1.35 !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

.ef-sub-dot {
  font-size: 6px !important;
  color: #64748b !important;
  margin-right: 0 !important;
  flex-shrink: 0 !important;
  align-self: center !important;
  transition: color 0.2s ease, transform 0.2s ease !important;
}

.main-sidebar .slide-menu.child2 .slide.active .ef-sub-dot,
.main-sidebar .slide-menu.child2 .slide:hover .ef-sub-dot,
.app-sidebar .slide-menu.child2 .slide.active .ef-sub-dot,
.app-sidebar .slide-menu.child2 .slide:hover .ef-sub-dot {
  color: #f59e0b !important;
  transform: scale(1.3) !important;
}

/* Sidebar Footer Card */
.ef-sidebar-footer {
  margin: 16px 12px 14px 12px !important;
  padding-top: 12px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.ef-sfc-card {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 10px !important;
  padding: 8px 12px !important;
}

.ef-sfc-icon {
  width: 28px !important;
  height: 28px !important;
  border-radius: 7px !important;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.4) 0%, rgba(245, 158, 11, 0.3) 100%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #fbbf24 !important;
  font-size: 14px !important;
  flex-shrink: 0 !important;
}

.ef-sfc-meta {
  flex: 1 !important;
  min-width: 0 !important;
}

.ef-sfc-title {
  display: block !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.ef-sfc-sub {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 9.5px !important;
  color: #94a3b8 !important;
}

.ef-sfc-online {
  width: 5px !important;
  height: 5px !important;
  background: #10b981 !important;
  border-radius: 50% !important;
}

.ef-sfc-badge {
  font-size: 9px !important;
  font-weight: 800 !important;
  color: #fbbf24 !important;
  background: rgba(245, 158, 11, 0.15) !important;
  border: 1px solid rgba(245, 158, 11, 0.3) !important;
  padding: 1px 6px !important;
  border-radius: 6px !important;
}

/* Card Modernization */
.custom-card {
  border-radius: var(--ef-radius) !important;
  border: 1px solid rgba(226, 232, 240, 0.85) !important;
  background: #ffffff !important;
  box-shadow: var(--ef-shadow-md) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.custom-card:hover {
  box-shadow: var(--ef-shadow-lg) !important;
}

.custom-card .card-header {
  background: #ffffff !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.75) !important;
  padding: 1rem 1.25rem !important;
}

.custom-card .card-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--ef-slate-900) !important;
  letter-spacing: -0.01em !important;
}

/* Stat & KPI Cards */
.custom-card.border-primary,
.card.border-primary {
  border-left: 4.5px solid var(--ef-royal-blue) !important;
}

.custom-card.border-info,
.card.border-info {
  border-left: 4.5px solid var(--ef-royal-vivid) !important;
}

.custom-card.border-success,
.card.border-success {
  border-left: 4.5px solid var(--ef-emerald) !important;
}

.custom-card.border-danger,
.card.border-danger {
  border-left: 4.5px solid var(--ef-rose) !important;
}

.bg-primary-transparent {
  background-color: rgba(30, 64, 175, 0.04) !important;
}

.bg-info-transparent {
  background-color: rgba(59, 130, 246, 0.04) !important;
}

.bg-success-transparent {
  background-color: rgba(16, 185, 129, 0.05) !important;
}

.bg-danger-transparent {
  background-color: rgba(244, 63, 94, 0.04) !important;
}

/* Avatar Badges in KPI Cards */
.card .avatar.avatar-sm {
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08) !important;
}

.avatar.bg-primary {
  background: var(--ef-gradient-primary) !important;
}

.avatar.bg-info {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%) !important;
}

.avatar.bg-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

.avatar.bg-danger {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%) !important;
}

/* Primary Color text & buttons */
.text-primary {
  color: var(--ef-royal-blue) !important;
}

.btn-primary {
  background: var(--ef-gradient-primary) !important;
  border: none !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25) !important;
  transition: all 0.2s ease !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%) !important;
  box-shadow: 0 6px 16px rgba(30, 64, 175, 0.35) !important;
  transform: translateY(-1px);
}

.btn-outline-primary {
  border-color: var(--ef-royal-blue) !important;
  color: var(--ef-royal-blue) !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
}

.btn-outline-primary:hover {
  background-color: var(--ef-royal-blue) !important;
  color: #ffffff !important;
}

/* Real Estate Product Tables */
.table {
  border-color: rgba(226, 232, 240, 0.8) !important;
  margin-bottom: 0 !important;
}

.table thead th {
  background: #f8fafc !important;
  color: var(--ef-slate-700) !important;
  font-weight: 700 !important;
  font-size: 12.5px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  border-bottom: 2px solid #e2e8f0 !important;
  padding: 12px 14px !important;
}

.table tbody td {
  padding: 12px 14px !important;
  vertical-align: middle !important;
  font-size: 13.5px !important;
  color: var(--ef-slate-900) !important;
}

.table tbody tr:hover {
  background-color: rgba(30, 64, 175, 0.02) !important;
}

.table tfoot td {
  background: #f1f5f9 !important;
  font-weight: 700 !important;
  color: var(--ef-slate-900) !important;
}

/* Badges */
.badge.bg-success-transparent {
  background-color: rgba(16, 185, 129, 0.12) !important;
  color: #047857 !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  padding: 5px 9px !important;
}

.badge.bg-primary-transparent {
  background-color: rgba(30, 64, 175, 0.1) !important;
  color: var(--ef-royal-blue) !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  padding: 5px 9px !important;
}

/* Pagination */
.pagination-style-4 .page-item.active .page-link {
  background-color: var(--ef-royal-blue) !important;
  border-color: var(--ef-royal-blue) !important;
  color: #ffffff !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 6px rgba(30, 64, 175, 0.3) !important;
}

.pagination-style-4 .page-link {
  color: var(--ef-slate-700) !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  margin: 0 2px !important;
}

/* Footer Styling */
footer.footer {
  border-top: 1px solid rgba(226, 232, 240, 0.9) !important;
  background: #ffffff !important;
  font-size: 12.5px !important;
}

/* Smooth Scroll & Transitions */
* {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* ==========================================================================
   EstateFlow Enterprise DataTables Modernization UI
   ========================================================================== */
div.dataTables_wrapper {
  padding: 0.5rem 0;
  font-family: var(--default-font-family);
}

/* DataTables Top Toolbar */
div.dataTables_wrapper .row:first-child {
  margin-bottom: 0.875rem;
  align-items: center;
}

/* DataTables Length Select */
div.dataTables_wrapper div.dataTables_length {
  margin-bottom: 0.5rem;
}

div.dataTables_wrapper div.dataTables_length label {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--ef-slate-700) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-bottom: 0 !important;
}

div.dataTables_wrapper div.dataTables_length select {
  border-radius: 8px !important;
  border: 1.5px solid #cbd5e1 !important;
  padding: 5px 28px 5px 12px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  background-color: #f8fafc !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

div.dataTables_wrapper div.dataTables_length select:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 246, 0.15) !important;
  background-color: #ffffff !important;
  outline: none !important;
}

/* DataTables Search Input */
div.dataTables_wrapper div.dataTables_filter {
  margin-bottom: 0.5rem;
  text-align: end;
}

div.dataTables_wrapper div.dataTables_filter label {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  margin-bottom: 0 !important;
  font-size: 0 !important;
  color: transparent !important;
}

div.dataTables_wrapper div.dataTables_filter label::before {
  content: "\ea12";
  font-family: 'remixicon' !important;
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  color: #94a3b8;
  pointer-events: none;
  z-index: 2;
  transition: color 0.2s ease;
}

div.dataTables_wrapper div.dataTables_filter input {
  border-radius: 24px !important;
  border: 1.5px solid #cbd5e1 !important;
  padding: 7px 16px 7px 38px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #0f172a !important;
  background: #f8fafc !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  min-width: 240px !important;
  height: 38px !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  outline: none !important;
}

div.dataTables_wrapper div.dataTables_filter input::placeholder {
  color: #94a3b8 !important;
  font-size: 12.5px !important;
  font-weight: 400 !important;
}

div.dataTables_wrapper div.dataTables_filter input:focus {
  background: #ffffff !important;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.15) !important;
  min-width: 290px !important;
}

div.dataTables_wrapper div.dataTables_filter label:focus-within::before {
  color: #2563eb !important;
}

/* DataTables Modern Export Buttons */
div.dt-buttons,
#file-export_wrapper .dt-buttons {
  display: inline-flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin-bottom: 0.65rem !important;
  float: left !important;
}

div.dt-buttons .dt-button,
div.dt-buttons button.dt-button,
.dt-button {
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px !important;
  padding: 6px 14px !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.08) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
  text-decoration: none !important;
}

div.dt-buttons .dt-button:hover,
.dt-button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.15) !important;
  filter: brightness(1.05) !important;
}

div.dt-buttons .dt-button:active,
.dt-button:active {
  transform: translateY(0) !important;
}

/* Specific Export Button Colors & Accents */
.buttons-copy,
.btn-dt-copy {
  background: linear-gradient(135deg, #334155 0%, #475569 100%) !important;
  color: #ffffff !important;
}
.buttons-copy:hover {
  box-shadow: 0 6px 16px rgba(51, 65, 85, 0.35) !important;
}

.buttons-csv,
.btn-dt-csv {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%) !important;
  color: #ffffff !important;
}
.buttons-csv:hover {
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.35) !important;
}

.buttons-excel,
.btn-dt-excel {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  color: #ffffff !important;
}
.buttons-excel:hover {
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35) !important;
}

.buttons-pdf,
.btn-dt-pdf {
  background: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%) !important;
  color: #ffffff !important;
}
.buttons-pdf:hover {
  box-shadow: 0 6px 16px rgba(244, 63, 94, 0.35) !important;
}

.buttons-print,
.btn-dt-print {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%) !important;
  color: #ffffff !important;
}
.buttons-print:hover {
  box-shadow: 0 6px 16px rgba(30, 64, 175, 0.35) !important;
}

/* Modern DataTables Table Element */
table.dataTable {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: 100% !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  margin-top: 0.5rem !important;
  margin-bottom: 0.875rem !important;
}

table.dataTable thead th {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
  color: #1e293b !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  border-bottom: 2px solid #cbd5e1 !important;
  border-top: none !important;
  padding: 12px 14px !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
}

table.dataTable thead th.sorting,
table.dataTable thead th.sorting_asc,
table.dataTable thead th.sorting_desc {
  transition: all 0.2s ease !important;
}

table.dataTable thead th.sorting:hover {
  background: #eef2ff !important;
  color: #1e40af !important;
}

table.dataTable thead th.sorting_asc,
table.dataTable thead th.sorting_desc {
  background: linear-gradient(180deg, #eef2ff 0%, #e0e7ff 100%) !important;
  color: #1e40af !important;
  border-bottom: 2px solid #3b82f6 !important;
}

table.dataTable tbody td {
  padding: 11px 14px !important;
  font-size: 13px !important;
  color: #1e293b !important;
  vertical-align: middle !important;
  border-bottom: 1px solid #f1f5f9 !important;
  border-top: none !important;
  transition: all 0.15s ease !important;
}

table.dataTable tbody tr {
  background-color: #ffffff;
  transition: background-color 0.15s ease, box-shadow 0.15s ease !important;
}

table.dataTable tbody tr:nth-of-type(even) {
  background-color: #fafbfc;
}

table.dataTable tbody tr:hover {
  background-color: rgba(30, 64, 175, 0.04) !important;
}

table.dataTable tbody tr:hover td:first-child {
  box-shadow: inset 3.5px 0 0 #2563eb !important;
}

/* DataTables Bottom Toolbar (Info & Paginate) */
div.dataTables_wrapper .row:last-child {
  align-items: center;
  padding-top: 0.5rem;
  border-top: 1px solid #f1f5f9;
}

div.dataTables_wrapper div.dataTables_info {
  font-size: 12.5px !important;
  color: #64748b !important;
  font-weight: 500 !important;
  padding: 8px 4px !important;
}

div.dataTables_wrapper div.dataTables_paginate {
  padding: 4px 0 !important;
  text-align: end !important;
}

div.dataTables_wrapper .pagination {
  display: inline-flex !important;
  gap: 4px !important;
  margin: 0 !important;
  align-items: center !important;
}

div.dataTables_wrapper .pagination .paginate_button.page-item .page-link {
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  padding: 5px 12px !important;
  background: #ffffff !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

div.dataTables_wrapper .pagination .paginate_button.page-item .page-link:hover {
  background: #f1f5f9 !important;
  color: #1e40af !important;
  border-color: #cbd5e1 !important;
  transform: translateY(-1px);
}

div.dataTables_wrapper .pagination .paginate_button.page-item.active .page-link {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%) !important;
  border-color: #1e40af !important;
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(30, 64, 175, 0.35) !important;
}

div.dataTables_wrapper .pagination .paginate_button.page-item.disabled .page-link {
  opacity: 0.45 !important;
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #94a3b8 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

/* DataTables Processing Spinner Card */
div.dataTables_wrapper div.dataTables_processing {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12) !important;
  padding: 15px 24px !important;
  color: #1e40af !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
}

/* ==========================================================================
   EstateFlow Executive Report KPI Widgets (Admin & Sales)
   ========================================================================== */
.ef-report-widget {
  position: relative;
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  border-radius: 12px !important;
  padding: 16px 18px !important;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 12px -2px rgba(15, 23, 42, 0.03) !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 104px;
}

.ef-report-widget:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 26px -4px rgba(30, 64, 175, 0.14), 0 4px 10px -2px rgba(15, 23, 42, 0.06) !important;
  border-color: rgba(37, 99, 235, 0.35) !important;
}

.ef-report-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: transparent;
  transition: background 0.2s ease;
}

.ef-report-widget.widget-primary::before {
  background: linear-gradient(90deg, #1e40af, #3b82f6) !important;
}
.ef-report-widget.widget-success::before {
  background: linear-gradient(90deg, #059669, #10b981) !important;
}
.ef-report-widget.widget-info::before {
  background: linear-gradient(90deg, #0284c7, #06b6d4) !important;
}
.ef-report-widget.widget-warning::before {
  background: linear-gradient(90deg, #d97706, #f59e0b) !important;
}
.ef-report-widget.widget-secondary::before {
  background: linear-gradient(90deg, #6d28d9, #8b5cf6) !important;
}
.ef-report-widget.widget-danger::before {
  background: linear-gradient(90deg, #dc2626, #f43f5e) !important;
}

.ef-widget-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ef-widget-info {
  flex: 1;
  min-width: 0;
}

.ef-widget-label {
  font-size: 11.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
  color: #64748b !important;
  margin-bottom: 6px !important;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ef-widget-value {
  font-size: 22px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  color: #0f172a !important;
  letter-spacing: -0.02em !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.ef-widget-value sup {
  font-size: 12px !important;
  font-weight: 700 !important;
  top: -0.4em !important;
}

.ef-widget-icon {
  width: 44px !important;
  height: 44px !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 22px !important;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.ef-report-widget:hover .ef-widget-icon {
  transform: scale(1.08) !important;
}

.widget-primary .ef-widget-icon {
  background: rgba(37, 99, 235, 0.08) !important;
  color: #2563eb !important;
  border: 1px solid rgba(37, 99, 235, 0.18) !important;
}
.widget-success .ef-widget-icon {
  background: rgba(16, 185, 129, 0.08) !important;
  color: #059669 !important;
  border: 1px solid rgba(16, 185, 129, 0.2) !important;
}
.widget-info .ef-widget-icon {
  background: rgba(6, 182, 212, 0.08) !important;
  color: #0284c7 !important;
  border: 1px solid rgba(6, 182, 212, 0.2) !important;
}
.widget-warning .ef-widget-icon {
  background: rgba(245, 158, 11, 0.08) !important;
  color: #d97706 !important;
  border: 1px solid rgba(245, 158, 11, 0.22) !important;
}
.widget-secondary .ef-widget-icon {
  background: rgba(139, 92, 246, 0.08) !important;
  color: #7c3aed !important;
  border: 1px solid rgba(139, 92, 246, 0.2) !important;
}
.widget-danger .ef-widget-icon {
  background: rgba(244, 63, 94, 0.08) !important;
  color: #dc2626 !important;
  border: 1px solid rgba(244, 63, 94, 0.2) !important;
}

.ef-widget-footer {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(241, 245, 249, 0.95);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: #94a3b8;
}

.ef-widget-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.widget-primary .ef-widget-pill {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
}
.widget-success .ef-widget-pill {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
}
.widget-info .ef-widget-pill {
  background: rgba(6, 182, 212, 0.08);
  color: #0284c7;
}
.widget-warning .ef-widget-pill {
  background: rgba(245, 158, 11, 0.08);
  color: #d97706;
}
.widget-secondary .ef-widget-pill {
  background: rgba(139, 92, 246, 0.08);
  color: #7c3aed;
}
.widget-danger .ef-widget-pill {
  background: rgba(244, 63, 94, 0.08);
  color: #dc2626;
}

/* Fallback styling for any legacy transparent card widgets */
.card.border-0.bg-primary-transparent,
.card.border-0.bg-success-transparent,
.card.border-0.bg-info-transparent,
.card.border-0.bg-warning-transparent,
.card.border-0.bg-secondary-transparent,
.card.border-0.bg-danger-transparent {
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  border-radius: 12px !important;
  padding: 16px 18px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 12px -2px rgba(15, 23, 42, 0.03) !important;
  transition: all 0.25s ease !important;
  position: relative;
  overflow: hidden;
}

.card.border-0.bg-primary-transparent:hover,
.card.border-0.bg-success-transparent:hover,
.card.border-0.bg-info-transparent:hover,
.card.border-0.bg-warning-transparent:hover,
.card.border-0.bg-secondary-transparent:hover,
.card.border-0.bg-danger-transparent:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 24px -4px rgba(30, 64, 175, 0.12) !important;
}

.card.border-0.bg-primary-transparent::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3.5px;
  background: linear-gradient(90deg, #1e40af, #3b82f6);
}
.card.border-0.bg-success-transparent::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3.5px;
  background: linear-gradient(90deg, #059669, #10b981);
}
.card.border-0.bg-info-transparent::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3.5px;
  background: linear-gradient(90deg, #0284c7, #06b6d4);
}
.card.border-0.bg-warning-transparent::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3.5px;
  background: linear-gradient(90deg, #d97706, #f59e0b);
}
.card.border-0.bg-secondary-transparent::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3.5px;
  background: linear-gradient(90deg, #6d28d9, #8b5cf6);
}
.card.border-0.bg-danger-transparent::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3.5px;
  background: linear-gradient(90deg, #dc2626, #f43f5e);
}

