/* ============================================================
   GDM ALL-IN-ONE — SUPER ADMIN DASHBOARD
   styles.css — Complete Design System
   ============================================================ */

/* ── 1. Google Fonts Import ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');

/* ── 2. CSS Variables ── */
:root {
  /* Colors — defaults to 'parcel' blue (fallback service) */
  --primary:         #2563EB;
  --primary-rgb:     37, 99, 235;
  --primary-dark:    #1D4ED8;
  --primary-light:   #DBEAFE;
  --primary-faint:   #EFF6FF;

  /* Glassmorphism Tokens */
  --glass-bg:        rgba(255, 255, 255, 0.32);
  --glass-bg-hover:  rgba(255, 255, 255, 0.52);
  --glass-border:    rgba(255, 255, 255, 0.25);
  --glass-blur:      blur(20px);
  --glass-shadow:    0 20px 60px rgba(15, 23, 42, 0.08);

  /* Sidebar Tokens */
  --sidebar-bg:      rgba(255, 255, 255, 0.18);
  --sidebar-hover:   rgba(255, 255, 255, 0.3);
  --sidebar-active:  var(--primary);
  --sidebar-text:    #4B5563;
  --sidebar-text-active: #111827;
  --sidebar-border:  var(--glass-border);
  --sidebar-width:   80px;
  
  /* Typography Scale */
  --nav-height:      56px;
  --nav-gap:         14px;
  --icon-size:       40px;
  --label-size:      13px;
  --nav-text-size:   17px;
  --sub-text-size:   16px;
  --name-size:       17px;
  --role-size:       14px;

  /* Backgrounds */
  --bg:              #F5F8F7;
  --bg-card:         var(--glass-bg);
  --bg-hover:        var(--glass-bg-hover);

  /* Text */
  --text-primary:    #111827;
  --success:         #16A34A;
  --success-bg:      #DCFCE7;
  --warning:         #D97706;
  --warning-bg:      #FEF3C7;
  --danger:          #DC2626;
  --danger-bg:       #FEE2E2;
  --info:            #2563EB;
  --info-bg:         #DBEAFE;
  --purple:          #7C3AED;
  --purple-bg:       #EDE9FE;
  --pink:            #DB2777;
  --pink-bg:         #FCE7F3;
  --orange:          #EA580C;
  --orange-bg:       #FFEDD5;
  --teal:            #0D9488;
  --teal-bg:         #CCFBF1;

  /* Spacing */
  --sp-xs:  4px;
  --sp-sm:  8px;
  --sp-md:  16px;
  --sp-lg:  24px;
  --sp-xl:  32px;
  --sp-2xl: 48px;

  /* Border Radius */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs:  0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.05);
  --shadow-lg:  0 10px 15px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.04);
  --shadow-xl:  0 20px 25px rgba(0,0,0,0.10), 0 10px 10px rgba(0,0,0,0.04);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);

  /* Transitions */
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  --transition-slow: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  /* Header */
  --header-h: 64px;

  /* Z-index */
  --z-sidebar:  100;
  --z-header:   200;
  --z-drawer:   300;
  --z-modal:    400;
  --z-toast:    500;
}

/* ── 3. Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Inter', 'Manrope', system-ui, sans-serif;
  background-color: #F8FAFC;
  background-image: 
    radial-gradient(circle at 85% -5%, rgba(16, 185, 129, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 100% 25%, rgba(20, 184, 166, 0.08) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text-primary);
  overflow: hidden;
  height: 100vh;
  line-height: 1.5;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
input, select, textarea { font-family: inherit; }
::placeholder { color: var(--text-muted); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #9CA3AF; }

/* ── 4. App Shell ── */
.app-shell {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* Sidebar Container */
.sidebar-container {
  position: fixed;
  left: 24px; top: 24px; bottom: 24px;
  z-index: 250;
  display: flex;
  pointer-events: none;
  transition: transform var(--transition-slow);
}

/* ── Primary Sidebar ── */
.primary-sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: calc(100vh - 48px);
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  padding: 12px 2px 16px 2px;
  z-index: 102;
  pointer-events: auto;
  transition: all var(--transition-slow);
}
.primary-logo {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  width: 100%;
  padding: 6px;
}
.primary-logo img {
  max-width: 76px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
}
.primary-nav {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  scrollbar-width: none;
}
.primary-nav::-webkit-scrollbar {
  display: none;
}
.primary-nav-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  border-radius: 16px;
  color: var(--sidebar-text);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  gap: 4px;
}
.primary-nav-item:hover {
  background: var(--sidebar-hover);
  color: var(--sidebar-text-active);
  transform: translateY(-2px);
}
.primary-nav-item.active {
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  color: var(--sidebar-text-active);
  font-weight: 700;
}
.primary-nav-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.03);
  color: var(--primary);
  transition: all var(--transition-fast);
}
.primary-nav-icon svg {
  width: 16px !important;
  height: 16px !important;
}
.primary-nav-item.active .primary-nav-icon {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.25);
}
.primary-nav-label {
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.primary-footer {
  margin-top: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  pointer-events: auto;
}
.avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glass-shadow);
  transition: all var(--transition-fast);
}
.avatar-circle:hover {
  transform: scale(1.08);
}

/* ── Secondary Sidebar ── */
.secondary-sidebar {
  background: var(--sidebar-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 48px);
  border-radius: 16px;
  position: absolute;
  left: calc(var(--sidebar-width) + 12px);
  top: 0;
  z-index: 101;
  pointer-events: auto;
  
  /* Initial Closed State — collapse in place, smooth */
  width: 0;
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  border: 1px solid transparent;
  box-shadow: 0 0 0 0 transparent;
  transition: width 300ms cubic-bezier(0.4, 0, 0.2, 1),
              opacity 250ms cubic-bezier(0.4, 0, 0.2, 1),
              visibility 300ms cubic-bezier(0.4, 0, 0.2, 1),
              border-color 300ms cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1);
}
.secondary-sidebar.open {
  width: 260px;
  opacity: 1;
  visibility: visible;
  overflow: visible;
  border-color: var(--glass-border);
  box-shadow: var(--glass-shadow);
}
.secondary-header {
  padding: 16px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.secondary-header-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-close-secondary {
  background: none;
  border: none;
  cursor: pointer;
  color: #4B5563;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.btn-close-secondary:hover {
  background: rgba(0,0,0,0.05);
}
.secondary-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}
.secondary-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.secondary-sidebar .sub-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  color: #4B5563;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 12px;
  transition: all var(--transition-fast);
}
.secondary-sidebar .sub-item:hover {
  background: var(--sidebar-hover);
  color: var(--sidebar-text-active);
}
.secondary-sidebar .sub-item.active {
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--primary-dark);
  font-weight: 700;
  position: relative;
  border: 1px solid rgba(var(--primary-rgb), 0.2);
}
.secondary-sidebar .sub-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--primary-dark);
  border-radius: 0 4px 4px 0;
}
.secondary-sidebar .sub-item .sub-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9CA3AF;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}
.secondary-sidebar .sub-item.active .sub-dot {
  background: var(--primary-dark);
}

/* Sidebar Search */
.sidebar-search {
  padding: 8px 0 0 0;
  width: 100%;
}
.sidebar-search-wrapper {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 8px 12px;
  gap: 8px;
  transition: all 0.2s ease;
  width: 100%;
}
.sidebar-search-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.sidebar-search-icon {
  color: #9CA3AF;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.sidebar-search-input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 13px;
  color: var(--text);
  outline: none;
}
.sidebar-search-input::placeholder {
  color: #9CA3AF;
}

/* Backdrop Overlay with Glassmorphism */
.secondary-sidebar-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 300ms cubic-bezier(0.4, 0, 0.2, 1),
              visibility 300ms cubic-bezier(0.4, 0, 0.2, 1),
              backdrop-filter 300ms cubic-bezier(0.4, 0, 0.2, 1);
}
.secondary-sidebar-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Responsive sidebars */
@media (max-width: 1440px) {
  :root {
    --sidebar-width: 76px;
  }
  .secondary-sidebar {
    left: calc(var(--sidebar-width) + 8px);
  }
  .secondary-sidebar.open {
    width: 240px;
  }
}
@media (max-width: 1024px) {
  .sidebar-container {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    height: 100vh;
    z-index: 1000;
    pointer-events: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  .sidebar-container.mobile-open {
    transform: translateX(0);
  }
  .primary-sidebar {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 0;
    width: var(--sidebar-width);
    flex-shrink: 0;
  }
  .secondary-sidebar {
    height: 100%;
    border-radius: 0;
    position: absolute;
    left: var(--sidebar-width);
    top: 0;
    bottom: 0;
    width: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: none !important;
    transition: width 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    background: #ffffff !important;
    border-left: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.06);
    z-index: 101;
  }
  .secondary-sidebar.open {
    width: 280px;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible;
  }
}

/* ── 6. Main Area ── */
.main-area {
  flex: 1;
  margin-left: calc(var(--sidebar-width) + 48px);
  padding-right: 24px;
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-width: 0;
  transition: margin-left var(--transition-slow);
}
/* Main Area stays static — glassmorphism backdrop overlays the screen on toggle */
@media (max-width: 767px) {
  .main-area { margin-left: 0; padding-right: 0; }
}

/* ── 7. Header ── */
.header {
  height: 72px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  gap: 16px;
  position: sticky; top: 24px; margin-bottom: 24px;
  z-index: var(--z-header);
  flex-shrink: 0;
  box-shadow: var(--glass-shadow);
}
@media (max-width: 1024px) {
  .header { height: 64px; padding: 0 16px; }
}
@media (max-width: 767px) {
  .header { 
    height: 56px; padding: 0 12px; 
    top: 0; margin-bottom: 0; border-radius: 0;
    border-top: none; border-left: none; border-right: none;
  }
}

.header-left {
  display: flex; align-items: center; gap: 16px;
  flex-shrink: 0;
}
.header-title-wrapper {
  display: flex; flex-direction: column; justify-content: center;
}
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; color: var(--text-muted);
  font-family: 'SF Pro Display', 'Inter', sans-serif;
  font-weight: 500;
}
.breadcrumb-sep { font-size: 12px; opacity: 0.5; }
.breadcrumb-current { color: var(--primary-dark); font-weight: 600; }
.header-title {
  font-size: 28px; font-weight: 600;
  color: var(--primary-dark);
  font-family: 'SF Pro Display', 'Inter', sans-serif;
  letter-spacing: -0.5px;
  line-height: 1.1;
  white-space: nowrap;
}

.header-center { 
  flex: 1; max-width: 420px; min-width: 200px; margin: 0 24px; 
}
.search-bar {
  position: relative;
  height: 48px; width: 48px;
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex; align-items: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 24px;
}
.search-bar.expanded {
  width: 100%;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 16px rgba(31, 38, 135, 0.05);
}
.search-bar.expanded:hover, .search-bar.expanded:focus-within {
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 24px rgba(31, 38, 135, 0.08);
  border-color: rgba(255, 255, 255, 0.8);
}
.search-icon-btn {
  width: 48px; height: 48px; border-radius: 24px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; box-shadow: none; outline: none;
  color: var(--text-secondary); cursor: pointer; flex-shrink: 0;
  transition: all 0.2s ease; position: absolute; left: 0; top: 0; z-index: 2;
}
.search-icon-btn svg { margin: 0; display: block; }
.search-bar:not(.expanded) .search-icon-btn {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 12px rgba(31, 38, 135, 0.05);
}
.search-bar:not(.expanded) .search-icon-btn:hover {
  background: rgba(255, 255, 255, 0.7); 
  color: var(--primary); 
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(31, 38, 135, 0.08);
  border-color: rgba(255, 255, 255, 0.9);
}
.search-bar.expanded .search-icon-btn {
  color: var(--text-muted); cursor: default; pointer-events: none;
}
.search-bar input {
  width: 100%; height: 100%; padding: 0 70px 0 42px;
  background: transparent; border: none;
  font-size: 15px; font-weight: 400; color: var(--text-primary); outline: none;
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.search-bar.expanded input { opacity: 1; pointer-events: auto; }
.search-bar input::placeholder { color: #9CA3AF; }

.search-kbd, .search-close-btn { opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
.search-bar.expanded .search-kbd { opacity: 1; }
.search-bar.expanded .search-close-btn { opacity: 1; pointer-events: auto; }

.search-kbd {
  position: absolute; right: 40px; top: 50%; transform: translateY(-50%);
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  background: rgba(0,0,0,0.04); padding: 4px 8px; border-radius: 6px;
  font-family: 'SF Pro Display', sans-serif; pointer-events: none;
}
.search-close-btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; color: var(--text-muted); cursor: pointer;
}
.search-close-btn:hover { background: rgba(0,0,0,0.05); color: var(--danger); }

.header-right {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}

/* Filter Chips */
.filter-chip-wrapper {
  position: relative;
  display: flex; align-items: center;
  background: rgba(255, 255, 255, 0.8);
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 2px 8px rgba(15,23,42,0.04);
  padding: 0 16px;
  transition: all 0.2s ease;
  cursor: pointer;
}
.filter-chip-wrapper:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15,23,42,0.06);
  background: #fff;
}
.filter-chip-wrapper span {
  font-size: 15px; font-weight: 500; color: var(--text-primary);
}
.chip-icon { color: var(--primary); margin-right: 8px; }
.chip-chevron { color: var(--text-muted); margin-left: 8px; }
.filter-chip {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
  appearance: none;
}

/* Service Switcher Pill */
.service-switcher-pill {
  display: flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 16px 0 6px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: 0 4px 12px rgba(15,23,42,0.05);
  cursor: pointer;
  transition: all 0.2s ease;
}
.service-switcher-pill:hover {
  transform: translateY(-2px);
  background: var(--glass-bg-hover);
  box-shadow: 0 8px 24px rgba(15,23,42,0.08);
}
.pill-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #22C55E);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.service-switcher-pill .switcher-label {
  font-size: 15px; font-weight: 600; color: var(--text-primary);
  white-space: nowrap;
}

/* Action Icons */
.action-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: 0 2px 8px rgba(15,23,42,0.04);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}
.action-btn:hover {
  background: var(--glass-bg-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15,23,42,0.08);
  color: var(--primary);
}
.notif-badge {
  position: absolute; top: -2px; right: -2px;
  width: 18px; height: 18px;
  background: linear-gradient(135deg, #EF4444, #F87171);
  border-radius: 50%;
  font-size: 10px; font-weight: 700; color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Profile Card */
.profile-card {
  display: flex; align-items: center; gap: 12px;
  height: 48px; padding: 0 16px 0 6px;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 24px;
  box-shadow: 0 2px 8px rgba(15,23,42,0.04);
  cursor: pointer;
  transition: all 0.2s ease;
}
.profile-card:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15,23,42,0.08);
}
.profile-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff;
}
.profile-info { display: flex; flex-direction: column; justify-content: center; }
.profile-name { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.profile-role { font-size: 13px; font-weight: 500; color: var(--text-muted); }

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .header-center { display: none; } /* Search moves to icon or collapses on tablet/mobile */
  .filter-chip-wrapper span, .filter-chip-wrapper .chip-chevron { display: none; }
  .filter-chip-wrapper { padding: 0; width: 44px; height: 44px; border-radius: 50%; justify-content: center; }
  .filter-chip-wrapper .chip-icon { margin: 0; }
  .service-switcher-pill { padding: 0; width: 44px; height: 44px; border-radius: 50%; justify-content: center; background: transparent; border: none; box-shadow: none; }
  .service-switcher-pill .switcher-label, .service-switcher-pill i { display: none; }
  .profile-info, .profile-chevron { display: none; }
  .profile-card { padding: 0; width: 44px; height: 44px; border-radius: 50%; justify-content: center; background: transparent; border: none; box-shadow: none; }
  .profile-card .profile-avatar { width: 44px; height: 44px; font-size: 16px; }
  .header-title { font-size: 20px; }
}
@media (max-width: 767px) {
  .header-title-wrapper { display: none; }
  .header-right { gap: 8px; }
}

/* ── 8. Content Area ── */
.scrollable-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.content-area {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Page Header component layout */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 576px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ── 9. Welcome Banner ── */
.welcome-banner {
  background: linear-gradient(135deg, #111827 0%, #1F2937 60%, #16A34A 150%);
  border-radius: var(--radius-xl);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  overflow: hidden;
  min-height: 180px;
  flex-shrink: 0;
}
.welcome-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(var(--primary-rgb),0.18) 0%, transparent 60%);
  pointer-events: none;
}
.banner-content { flex: 1; z-index: 1; }
.banner-greeting {
  font-size: 26px; font-weight: 800;
  color: #fff; font-family: 'Manrope', sans-serif;
  margin-bottom: 8px; line-height: 1.2;
}
.banner-greeting span { color: #4ADE80; }
.banner-sub {
  font-size: 14.5px; color: rgba(255,255,255,0.65);
  margin-bottom: 20px; max-width: 380px;
}
.banner-meta {
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 20px;
}
.banner-meta-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: rgba(255,255,255,0.5);
}
.banner-meta-item strong { color: rgba(255,255,255,0.8); font-weight: 500; }
.banner-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-banner-primary {
  padding: 10px 22px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 13.5px; font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; gap: 8px;
}
.btn-banner-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-banner-secondary {
  padding: 10px 22px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  font-size: 13.5px; font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}
.btn-banner-secondary:hover { background: rgba(255,255,255,0.15); }
.banner-illustration {
  z-index: 1;
  flex-shrink: 0;
}
/* SVG Illustration */
.services-illustration {
  width: 320px; height: 140px;
  display: flex; align-items: center; justify-content: center;
}
.illustration-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.ill-card {
  width: 62px; height: 62px;
  border-radius: 14px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  transition: var(--transition);
  cursor: default;
  animation: ill-float 3s ease-in-out infinite;
}
.ill-card:nth-child(2) { animation-delay: 0.4s; }
.ill-card:nth-child(3) { animation-delay: 0.8s; }
.ill-card:nth-child(4) { animation-delay: 1.2s; }
.ill-card:nth-child(5) { animation-delay: 0.2s; }
.ill-card:nth-child(6) { animation-delay: 0.6s; }
.ill-card:nth-child(7) { animation-delay: 1.0s; }
.ill-card:nth-child(8) { animation-delay: 1.4s; }
@keyframes ill-float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
.ill-icon { font-size: 22px; }
.ill-label { font-size: 8px; color: rgba(255,255,255,0.5); font-weight: 500; text-align: center; }

/* ── 10. Section Headers ── */
.section-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 16px;
  margin-bottom: 16px; flex-wrap: wrap;
}
.section-title {
  font-size: 17px; font-weight: 700;
  color: var(--text-primary);
  font-family: 'Manrope', sans-serif;
}
.section-subtitle {
  font-size: 13px; color: var(--text-secondary); margin-top: 2px;
}
.section-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ── 11. KPI Cards ── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.kpi-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex; flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.kpi-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: var(--kpi-color, var(--primary));
  opacity: 0.6;
}
.kpi-top { display: flex; align-items: center; justify-content: space-between; }
.kpi-icon {
  width: 40px; height: 40px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  background: var(--kpi-bg, var(--primary-light));
  color: var(--kpi-color, var(--primary));
}
.kpi-trend {
  font-size: 12px; font-weight: 600;
  display: flex; align-items: center; gap: 3px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}
.kpi-trend.up { color: var(--success); background: var(--success-bg); }
.kpi-trend.down { color: var(--danger); background: var(--danger-bg); }
.kpi-trend.live {
  color: var(--success); background: var(--success-bg);
  animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.6; }
}
.kpi-value {
  font-size: 28px; font-weight: 800;
  color: var(--text-primary);
  font-family: 'Manrope', sans-serif;
  line-height: 1;
}
.kpi-label {
  font-size: 12.5px; font-weight: 500;
  color: var(--text-secondary);
}
.kpi-sub {
  font-size: 11.5px; color: var(--text-muted);
  margin-top: 2px;
}

/* ── 12. Charts Section ── */
.charts-row {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 20px;
}
.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.chart-filters {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.chart-filter-btn {
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 12.5px; font-weight: 500;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  background: var(--bg);
  cursor: pointer; transition: var(--transition);
}
.chart-filter-btn.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.chart-filter-btn:hover:not(.active) { border-color: var(--primary); color: var(--primary); }
.chart-wrapper { height: 280px; margin-top: 20px; position: relative; }
.donut-center {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center; pointer-events: none;
}
.donut-value {
  font-size: 22px; font-weight: 800;
  color: var(--text-primary); font-family: 'Manrope', sans-serif;
}
.donut-label { font-size: 11px; color: var(--text-muted); }

/* ── 13. Service Performance Cards ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.service-perf-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.service-perf-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--svc-color, var(--primary));
}
.service-perf-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.svc-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.svc-icon {
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  background: var(--svc-bg, var(--primary-light));
  color: var(--svc-color, var(--primary));
}
.svc-name { font-size: 13.5px; font-weight: 700; color: var(--text-primary); }
.svc-stat {
  display: flex; flex-direction: column; gap: 6px;
}
.svc-stat-row {
  display: flex; justify-content: space-between; align-items: center;
}
.svc-stat-label { font-size: 11.5px; color: var(--text-muted); }
.svc-stat-val { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.svc-growth {
  display: flex; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 600;
}
.svc-growth.up { color: var(--success); }
.svc-growth.down { color: var(--danger); }
.svc-badge {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: var(--radius-full);
  font-size: 10.5px; font-weight: 600;
  background: var(--success-bg); color: var(--success);
}
.svc-badge.inactive { background: var(--danger-bg); color: var(--danger); }

/* ── 14. Live Operations ── */
.live-ops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.live-op-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}
.live-op-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.live-op-indicator {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-bottom: 10px;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb),0.2);
  animation: pulse-dot 2s infinite;
}
.live-dot.orange { background: var(--warning); box-shadow: 0 0 0 3px rgba(217,119,6,0.2); }
.live-dot.blue { background: var(--info); box-shadow: 0 0 0 3px rgba(37,99,235,0.2); }
.live-op-val {
  font-size: 28px; font-weight: 800;
  font-family: 'Manrope', sans-serif;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.live-op-label {
  font-size: 11.5px; color: var(--text-muted); font-weight: 500;
  line-height: 1.3;
}

/* ── 15. Tables ── */
.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.table-header {
  padding: 18px 20px;
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.table-search {
  position: relative; flex: 1; max-width: 280px;
}
.table-search input {
  width: 100%;
  padding: 8px 14px 8px 36px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px;
  background: var(--bg);
}
.table-search input:focus { border-color: var(--primary); outline: none; }
.table-search .search-icon {
  position: absolute; left: 11px; top: 50%;
  transform: translateY(-50%); color: var(--text-muted);
}
.table-container, .table-responsive { 
  width: 100%;
  overflow-x: auto; 
  -webkit-overflow-scrolling: touch;
}
table { width: 100%; border-collapse: collapse; }
thead tr {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
th {
  padding: 11px 16px;
  text-align: left;
  font-size: 11.5px; font-weight: 600;
  color: #FFFFFF;
  text-transform: uppercase; letter-spacing: 0.5px;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  white-space: nowrap;
}
td {
  padding: 13px 16px;
  font-size: 13.5px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg-hover); }
.table-pagination {
  padding: 14px 20px;
  display: flex; align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  gap: 12px; flex-wrap: wrap;
}
.pagination-info { font-size: 13px; color: var(--text-muted); }
.pagination-btns { display: flex; gap: 4px; }
.page-btn {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  font-size: 13px; color: var(--text-secondary);
  cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { 
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)); 
  border-color: transparent; 
  color: #fff; 
  box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.3);
}
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── 16. Badges ── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 11.5px; font-weight: 600;
}
.badge-primary  { background: var(--primary-faint); color: var(--primary); }
.badge-success  { background: var(--success-bg); color: var(--success); }
.badge-warning  { background: var(--warning-bg); color: var(--warning); }
.badge-danger   { background: var(--danger-bg);  color: var(--danger); }
.badge-info     { background: var(--info-bg);    color: var(--info); }
.badge-purple   { background: var(--purple-bg);  color: var(--purple); }
.badge-orange   { background: var(--orange-bg);  color: var(--orange); }
.badge-teal     { background: var(--teal-bg);    color: var(--teal); }
.badge-neutral  { background: var(--border-light); color: var(--text-muted); }
.badge-dot::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%; background: currentColor; display: block;
}

/* ── 17. Attention Required ── */
.attention-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.attention-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}
.attention-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.attention-top {
  display: flex; align-items: center; gap: 12px;
}
.attention-icon {
  width: 40px; height: 40px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.attention-label { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.attention-count { font-size: 26px; font-weight: 800; font-family: 'Manrope', sans-serif; }
.attention-desc { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.attention-action {
  font-size: 12.5px; font-weight: 600; color: var(--primary);
  cursor: pointer; display: flex; align-items: center; gap: 4px;
  transition: var(--transition);
}
.attention-action:hover { gap: 8px; }

/* ── 18. API Health ── */
.api-health-list { display: flex; flex-direction: column; gap: 10px; }
.api-item {
  display: flex; align-items: center;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  gap: 12px;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}
.api-item:hover { box-shadow: var(--shadow-sm); }
.api-status-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.api-status-dot.operational { background: var(--success); box-shadow: 0 0 0 3px rgba(var(--primary-rgb),0.2); }
.api-status-dot.degraded    { background: var(--warning); box-shadow: 0 0 0 3px rgba(217,119,6,0.2); }
.api-status-dot.down        { background: var(--danger);  box-shadow: 0 0 0 3px rgba(220,38,38,0.2); }
.api-name { font-size: 13.5px; font-weight: 600; flex: 1; }
.api-stat { font-size: 12px; color: var(--text-muted); text-align: right; }
.api-stat strong { color: var(--text-primary); display: block; font-size: 13px; }
.api-badge {
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: 11px; font-weight: 600;
}
.api-badge.operational { background: var(--success-bg); color: var(--success); }
.api-badge.degraded    { background: var(--warning-bg); color: var(--warning); }
.api-badge.down        { background: var(--danger-bg);  color: var(--danger); }

/* ── 19. Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent; font-family: inherit;
  box-shadow: 0 4px 12px rgba(15,23,42,0.05);
}
.btn-primary { 
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)); 
  color: #fff; 
  box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.3);
}
.btn-primary:hover { 
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4); 
  transform: translateY(-2px); 
}
.btn-secondary { 
  background: var(--glass-bg); 
  backdrop-filter: var(--glass-blur);
  color: var(--text-primary); 
  border: 1px solid var(--glass-border); 
}
.btn-secondary:hover { 
  background: var(--glass-bg-hover);
  border-color: rgba(var(--primary-rgb), 0.3); 
  color: var(--primary); 
  transform: translateY(-2px);
}
.btn-danger { 
  background: rgba(239, 68, 68, 0.1); 
  color: #EF4444; 
  border: 1px solid rgba(239, 68, 68, 0.2); 
}
.btn-danger:hover { 
  background: #EF4444; 
  color: #fff; 
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
}
.btn-sm { padding: 8px 16px; font-size: 12.5px; }
.btn-icon { width: 36px; height: 36px; padding: 0; justify-content: center; }
.action-dots {
  width: 28px; height: 28px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-muted);
  transition: var(--transition); font-size: 16px; letter-spacing: 1px;
  position: relative;
}
.action-dots:hover { background: var(--primary-faint); color: var(--primary); }

/* ── 20. Dropdown Menu ── */
.dropdown {
  position: relative; display: inline-block;
}
.dropdown-menu {
  position: absolute;
  right: 0; top: calc(100% + 6px);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.12);
  min-width: 180px;
  z-index: 999;
  padding: 6px;
  transform-origin: top right;
  animation: dropdown-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes dropdown-in {
  from { opacity: 0; transform: scale(0.9) translateY(-8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  font-size: 13.5px; font-weight: 500;
  color: var(--text-primary);
  border-radius: 10px;
  cursor: pointer; transition: all 0.2s ease;
}
.dropdown-item:hover { background: rgba(0,0,0,0.04); transform: translateX(2px); }
.dropdown-item.danger { color: var(--danger); }
.dropdown-item.danger:hover { background: rgba(239,68,68,0.1); }
.dropdown-sep { height: 1px; background: rgba(0,0,0,0.06); margin: 6px 0; }
.dropdown-hidden { display: none; }

/* Notification Dropdown */
.notif-dropdown {
  position: absolute;
  right: 0; top: calc(100% + 8px);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.12);
  width: 360px;
  z-index: 999;
  overflow: hidden;
  animation: dropdown-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.notif-header {
  padding: 16px 20px;
  background: rgba(255,255,255,0.4);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  display: flex; align-items: center; justify-content: space-between;
}
.notif-title { font-size: 14.5px; font-weight: 700; }
.notif-mark-all { font-size: 12.5px; color: var(--primary); cursor: pointer; font-weight: 600; }
.notif-list { max-height: 340px; overflow-y: auto; padding: 8px; }
.notif-item {
  display: flex; gap: 12px;
  padding: 14px 16px;
  cursor: pointer; transition: all 0.2s ease;
  border-radius: 14px;
}
.notif-item:hover { background: rgba(0,0,0,0.04); }
.notif-item.unread { background: rgba(var(--primary-rgb),0.05); }
.notif-item-icon {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.notif-item-body { flex: 1; }
.notif-item-title { font-size: 13.5px; font-weight: 600; color: var(--text-primary); }
.notif-item-desc { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.notif-item-time { font-size: 11px; color: var(--text-muted); margin-top: 6px; font-weight: 500; }

.notif-footer {
  padding: 14px 20px;
  background: rgba(255,255,255,0.4);
  border-top: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
  text-align: center;
}
.notif-footer:hover {
  background: rgba(var(--primary-rgb), 0.05);
  color: var(--primary-dark);
}

/* Profile Dropdown */
.profile-dropdown {
  position: absolute;
  right: 0; top: calc(100% + 8px);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.12);
  width: 240px; z-index: 999;
  padding: 6px;
  animation: dropdown-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.profile-drop-header {
  padding: 16px;
  background: rgba(255,255,255,0.4);
  border-radius: 14px;
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 14px;
}
.profile-drop-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: #fff;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb),0.2);
}

/* ── 21. Service Switcher Drawer ── */
.service-drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: calc(var(--z-drawer) - 1);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
}
.service-drawer-overlay.open { opacity: 1; pointer-events: all; }
.service-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 420px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  z-index: var(--z-drawer);
  box-shadow: var(--shadow-xl);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 1px solid var(--glass-border);
}
.service-drawer.open { transform: translateX(0); }
.drawer-header {
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-shrink: 0;
}
.drawer-title { font-size: 18px; font-weight: 800; font-family: 'Manrope', sans-serif; }
.drawer-subtitle { font-size: 13px; color: var(--text-secondary); margin-top: 3px; }
.drawer-close {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-muted);
  transition: var(--transition-fast); flex-shrink: 0;
}
.drawer-close:hover { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-bg); }
.drawer-search { padding: 16px 24px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.drawer-search input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13.5px;
  background: var(--bg);
  transition: var(--transition);
}
.drawer-search input:focus { border-color: var(--primary); outline: none; }
.drawer-search-wrap { position: relative; }
.drawer-search-wrap .search-icon {
  position: absolute; left: 13px; top: 50%;
  transform: translateY(-50%); color: var(--text-muted);
}
.drawer-list {
  flex: 1; overflow-y: auto;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.svc-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-card);
  position: relative;
  height: 145px;
}
.svc-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.08);
  transform: translateY(-4px);
}
.svc-card.active-svc {
  border-color: var(--primary);
  background: var(--primary-faint);
}
.svc-card-icon {
  width: 40px; height: 40px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 18px;
}
.svc-card-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.svc-card-name { font-size: 13.5px; font-weight: 700; color: var(--text-primary); }
.svc-card-desc { font-size: 11.5px; color: var(--text-muted); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.svc-card-right {
  position: absolute;
  top: 10px; right: 10px;
  display: flex; align-items: center;
  gap: 4px;
}
.svc-card-right i { display: none; }

/* ── 22. Modals ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: var(--z-modal);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--glass-bg);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-radius: 32px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.15);
  width: 90%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.94) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid var(--glass-border);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-header {
  padding: 24px 24px 16px;
  display: flex; align-items: flex-start; justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.modal-title { font-size: 17px; font-weight: 700; font-family: 'Manrope', sans-serif; }
.modal-subtitle { font-size: 13px; color: var(--text-muted); margin-top: 3px; }
.modal-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex; gap: 10px; justify-content: flex-end;
}

/* ── 23. Forms ── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.form-input, .form-select, .form-textarea {
  padding: 10px 16px;
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  font-size: 14px; color: var(--text-primary);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  box-shadow: inset 0 2px 4px rgba(15,23,42,0.02);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: rgba(var(--primary-rgb), 0.4); 
  outline: none;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 16px rgba(var(--primary-rgb), 0.15), inset 0 2px 4px rgba(15,23,42,0.02);
  transform: translateY(-1px);
}
.form-textarea { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── 24. Toast ── */
.toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: var(--z-toast);
  display: flex; flex-direction: column; gap: 10px;
  max-width: 360px; width: 100%;
}
.toast {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  animation: toast-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.toast.removing { animation: toast-out 0.25s ease forwards; }
@keyframes toast-in {
  from { opacity: 0; transform: translateX(30px) scale(0.9); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateX(30px) scale(0.9); }
}
.toast-icon {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.toast.success .toast-icon { background: var(--success-bg); color: var(--success); }
.toast.error   .toast-icon { background: var(--danger-bg);  color: var(--danger); }
.toast.warning .toast-icon { background: var(--warning-bg); color: var(--warning); }
.toast.info    .toast-icon { background: var(--info-bg);    color: var(--info); }
.toast-body { flex: 1; }
.toast-title { font-size: 13.5px; font-weight: 700; margin-bottom: 2px; }
.toast-msg   { font-size: 12.5px; color: var(--text-muted); }
.toast-close {
  font-size: 16px; color: var(--text-muted);
  cursor: pointer; padding: 2px;
  line-height: 1; transition: var(--transition-fast);
}
.toast-close:hover { color: var(--text-primary); }

/* ── 25. Tabs ── */
.tabs {
  display: flex; gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
}
.tab {
  padding: 10px 18px;
  font-size: 13.5px; font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer; transition: var(--transition);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.tab:hover { color: var(--primary); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

/* ── 26. Side Panels (Booking Detail Drawer) ── */
.side-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 480px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  z-index: calc(var(--z-drawer) + 10);
  border-left: 1px solid var(--glass-border);
  box-shadow: var(--shadow-xl);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.side-panel.open { transform: translateX(0); }
.side-panel-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.side-panel-body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.side-panel-footer {
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.detail-section { margin-bottom: 20px; }
.detail-section-title {
  font-size: 11.5px; font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.detail-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  gap: 12px;
}
.detail-row:last-child { border-bottom: none; }
.detail-key { font-size: 13px; color: var(--text-muted); flex-shrink: 0; }
.detail-val { font-size: 13.5px; font-weight: 600; text-align: right; }
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item {
  display: flex; gap: 12px; padding-bottom: 16px; position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute; left: 15px; top: 28px; bottom: -4px;
  width: 2px; background: var(--border);
}
.timeline-item:last-child::before { display: none; }
.timeline-dot {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; border: 2px solid var(--border);
  background: var(--bg-card); font-size: 12px;
}
.timeline-content { flex: 1; }
.timeline-title { font-size: 13.5px; font-weight: 600; }
.timeline-time { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }

/* ── 27. Dynamic Dashboard Sections ── */
.dashboard-section { display: none; }
.dashboard-section.active { display: contents; }

/* ── 28. Filter Row ── */
.filter-row {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}
@media (min-width: 769px) {
  .filter-row .custom-select-container.is-filter-select {
    width: auto;
    min-width: 140px;
  }
  .filter-row .table-search + .custom-select-container,
  .filter-row .table-search + select,
  .filter-row .table-search + select + .custom-select-container,
  .filter-row .table-search + input,
  .filter-row .table-search + .form-input {
    margin-left: auto !important;
  }
}

/* White background, 40px height, and consistent padding/borders for balanced filters */
.filter-row .table-search input,
.filter-row .custom-select-trigger,
.filter-row .filter-select,
.filter-row .form-input,
.filter-row input:not([type="checkbox"]):not(.custom-select-search-input) {
  background: #ffffff !important;
  height: 40px !important;
  box-sizing: border-box !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 8px !important;
  transition: var(--transition) !important;
}

/* Ensure consistent text padding and centering inside input elements */
.filter-row .table-search input {
  padding: 10px 14px 10px 36px !important; /* Spacing with search icon space */
}

.filter-row .custom-select-trigger,
.filter-row .filter-select,
.filter-row .form-input,
.filter-row input:not(.table-search input):not(.custom-select-search-input):not([type="checkbox"]) {
  padding: 10px 14px !important; /* Balanced padding all around */
}

/* Interactive Hover effect */
.filter-row .table-search input:hover,
.filter-row .custom-select-trigger:hover,
.filter-row .filter-select:hover,
.filter-row .form-input:hover,
.filter-row input:hover {
  border-color: var(--primary) !important;
}
.filter-select {
  padding: 7px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px; color: var(--text-primary);
  background: var(--bg-card); cursor: pointer;
  transition: var(--transition); font-family: inherit;
}
.filter-select:focus { border-color: var(--primary); outline: none; }

/* ── 29. Two-column layout ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ── 30. Misc Components ── */
.card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}
.card-title { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.avatar-stack { display: flex; }
.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: 2px solid var(--bg-card);
  margin-left: -8px; display: flex;
  align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: #fff;
}
.avatar:first-child { margin-left: 0; }
.empty-state {
  text-align: center; padding: 48px 24px;
  color: var(--text-muted);
}
.empty-state-icon { font-size: 40px; margin-bottom: 12px; }
.empty-state-msg { font-size: 14px; }
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: 11.5px; font-weight: 500;
  background: var(--border-light); color: var(--text-secondary);
}
.progress-bar-wrap { background: var(--border-light); border-radius: var(--radius-full); height: 6px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: var(--radius-full); background: var(--primary); transition: width 1s ease; }

/* Mobile overlay for sidebar */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: calc(var(--z-sidebar) - 1);
}
.hamburger {
  display: none;
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg);
  align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-primary);
  flex-shrink: 0;
}

/* ── 31. RESPONSIVE ── */
@media (max-width: 1400px) {
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1200px) {
  .charts-row { grid-template-columns: 1fr; }
  .charts-row .chart-card:nth-child(2) { grid-row: auto; }
}
@media (max-width: 1024px) {
  :root { --sidebar-width: 76px; }
  .sidebar-overlay { display: block; }
  .main-area { margin-left: 0 !important; }
  .hamburger { display: flex; }
  .content-area { padding: 20px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .three-col { grid-template-columns: repeat(2, 1fr); }
  .header-title { display: none; }
}
@media (max-width: 768px) {
  .content-area { padding: 16px; gap: 16px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .live-ops-grid { grid-template-columns: repeat(3, 1fr); }
  .attention-grid { grid-template-columns: 1fr; }
  .service-drawer { width: 100%; }
  .side-panel { width: 100%; }
  .header-center { display: none; }
  .search-kbd { display: none; }
  .banner-illustration { display: none; }
  .welcome-banner { padding: 24px; }
  .banner-greeting { font-size: 20px; }
  .header-select { display: none; }
  .profile-info { display: none; }
}
@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .live-ops-grid { grid-template-columns: repeat(2, 1fr); }
  .three-col { grid-template-columns: 1fr; }
}

/* ── 32. Utility ── */
.hidden { display: none !important; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 12px; }
.font-bold { font-weight: 700; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Selection highlight for active service in sidebar */
.current-service-indicator {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary-faint);
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: 11.5px; font-weight: 600;
  margin-left: 8px;
}

/* Chart legend */
.chart-legend {
  display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px;
}
.legend-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-muted);
}
.legend-dot {
  width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0;
}

/* Loading Skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--border-light) 25%, #e9ebee 50%, var(--border-light) 75%);
  background-size: 200% 100%;
  animation: skeleton-shine 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-shine {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* Permission Matrix */
.perm-matrix { width: 100%; }
.perm-matrix th, .perm-matrix td { white-space: nowrap; }
.perm-matrix input[type=checkbox] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px; height: 18px; cursor: pointer;
  border-radius: 50%;
  border: 1px solid #000;
  background: #fff;
  position: relative;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.perm-matrix input[type=checkbox]:hover {
  border-color: #000;
}
.perm-matrix input[type=checkbox]:checked {
  background: var(--primary);
  border-color: #000;
}
.perm-matrix input[type=checkbox]:checked::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 46%;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -50%) rotate(45deg);
}

/* Audit log permanent badge */
.badge-permanent {
  background: #FEE2E2; color: #991B1B;
  border: 1px solid #FECACA;
  padding: 2px 8px; border-radius: 4px;
  font-size: 10px; font-weight: 700;
}

/* Tooltip */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute; bottom: calc(100% + 6px); left: 50%;
  transform: translateX(-50%);
  background: var(--text-primary); color: #fff;
  font-size: 11.5px; padding: 4px 8px; border-radius: 5px;
  white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity 0.15s;
  z-index: 9999;
}
[data-tooltip]:hover::after { opacity: 1; }

/* Vertical separator */
.v-sep {
  width: 1px; background: var(--border);
  align-self: stretch; margin: 0 4px;
}

/* ── 33. Custom JS Select Component (2026 SaaS) ── */
.custom-select-container {
  position: relative;
  display: inline-block;
  user-select: none;
}
.custom-select-container.is-form-select,
.custom-select-container.is-filter-select {
  width: 100%;
}
.custom-select-container.is-filter-chip {
  width: 100%; height: 100%;
}

.custom-select-trigger {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; transition: all 0.2s ease;
}
.custom-select-text {
  white-space: nowrap;
}

/* Default Form Select Styling */
.custom-select-container.is-form-select .custom-select-trigger,
.custom-select-container.is-filter-select .custom-select-trigger {
  padding: 9px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px; color: var(--text-primary);
  background: var(--bg);
}
.custom-select-container.is-form-select.active .custom-select-trigger,
.custom-select-container.is-filter-select.active .custom-select-trigger {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Filter Chip Styling (Replaces native wrapper style) */
.custom-select-container.is-filter-chip .custom-select-trigger {
  display: flex; align-items: center;
  background: rgba(255, 255, 255, 0.8);
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 2px 8px rgba(15,23,42,0.04);
  padding: 0 16px;
  transition: all 0.2s ease;
  font-size: 15px; font-weight: 500; color: var(--text-primary);
  gap: 8px;
}
.custom-select-container.is-filter-chip:hover .custom-select-trigger {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15,23,42,0.06);
  background: #fff;
}
.custom-select-container.is-filter-chip.active .custom-select-trigger {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
}
.custom-select-container.is-filter-chip .custom-select-chevron {
  color: var(--text-muted);
  margin-left: 8px;
  transition: transform 0.2s ease;
}

/* The Dropdown List */
.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0; min-width: 160px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.12);
  padding: 6px;
  z-index: 1000;
  max-height: 250px;
  overflow-y: auto;
  animation: dropdown-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top left;
}
.custom-select-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  font-size: 13.5px; font-weight: 500;
  color: var(--text-primary);
  border-radius: 10px;
  cursor: pointer; transition: all 0.2s ease;
}
.custom-select-item:hover { background: rgba(0,0,0,0.04); transform: translateX(2px); }
.custom-select-item.selected {
  background: var(--primary-faint);
  color: var(--primary);
  font-weight: 700;
}
.custom-select-container.active .custom-select-chevron {
  transform: rotate(180deg);
}
/* -- BENTO GRID 2026 REVAMP -- */
.bento-overview {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  width: 100%;
}

.bento-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15,23,42,0.05);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.bento-card:hover {
  box-shadow: var(--glass-shadow);
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.6);
  background: var(--glass-bg-hover);
}

.bento-span-12 { grid-column: span 12; }
.bento-span-8 { grid-column: span 8; }
.bento-span-6 { grid-column: span 6; }
.bento-span-4 { grid-column: span 4; }
.bento-span-3 { grid-column: span 3; }

/* Banner specific overrides */
.bento-banner {
  background: #111827 url('assets/banner_illustration.png') no-repeat right center;
  background-size: cover;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
  min-height: 240px;
  display: flex;
  align-items: center;
  box-shadow: 0 12px 40px rgba(17, 24, 39, 0.2);
}
.bento-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(17,24,39,0.95) 0%, rgba(17,24,39,0.85) 40%, rgba(17,24,39,0.2) 100%);
  pointer-events: none;
}
.bento-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(17, 24, 39, 0.3);
  border-color: rgba(255,255,255,0.2);
}
.bento-banner .banner-content { z-index: 1; position: relative; max-width: 550px; }

.bento-kpi-value {
  font-size: 32px; font-weight: 800;
  color: #111827;
  font-family: 'Manrope', sans-serif;
  line-height: 1.1; margin: 12px 0 4px;
}
.bento-kpi-label {
  font-size: 13px; font-weight: 600;
  color: #667085;
}
.bento-kpi-trend {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 12px;
  margin-left: auto;
}
.bento-kpi-trend.up { background: rgba(74, 222, 128, 0.15); color: #16A34A; }
.bento-kpi-trend.down { background: rgba(248, 113, 113, 0.15); color: #DC2626; }

.bento-chart-container {
  height: 300px; width: 100%; margin-top: 16px;
}

.bento-live-ops-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px;
}
.bento-live-op {
  background: rgba(255,255,255,0.5); border: 1px solid rgba(255,255,255,0.6);
  padding: 16px; border-radius: 16px; transition: all 0.3s;
}
.bento-live-op:hover { background: rgba(255,255,255,0.9); }
.bento-live-val { font-size: 24px; font-weight: 800; color: var(--primary); font-family: 'Manrope', sans-serif; }
.bento-live-label { font-size: 12px; font-weight: 600; color: #667085; margin-top: 2px; }

@media (max-width: 1200px) {
  .bento-span-3 { grid-column: span 6; }
  .bento-span-4 { grid-column: span 6; }
  .bento-span-8 { grid-column: span 12; }
}
@media (max-width: 768px) {
  .bento-span-6 { grid-column: span 12; }
  .bento-span-3 { grid-column: span 12; }
  .bento-span-4 { grid-column: span 12; }
}
/* -- BENTO GRID 2026 - ALL ORDERS -- */
.bento-orders-banner {
  background: #111827 url('assets/orders_banner_illustration.png') no-repeat right center;
  background-size: cover;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
  min-height: 180px;
  display: flex;
  align-items: center;
  box-shadow: 0 12px 40px rgba(17, 24, 39, 0.2);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}
.bento-orders-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(17,24,39,0.95) 0%, rgba(17,24,39,0.85) 40%, rgba(17,24,39,0.2) 100%);
  pointer-events: none;
}
.bento-orders-banner .banner-content { z-index: 1; position: relative; max-width: 550px; padding: 32px 40px; }

.bento-filter-bar {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 24px;
  background: rgba(255,255,255,0.4); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: 12px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 4px 16px rgba(15,23,42,0.02);
  position: relative;
  z-index: 50;
}
.bento-filter-select {
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 12px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-primary);
  outline: none; transition: all 0.2s;
  cursor: pointer;
}
.bento-filter-select:hover, .bento-filter-select:focus { background: #fff; box-shadow: 0 4px 12px rgba(15,23,42,0.05); }

.bento-table-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15,23,42,0.05);
}
.bento-table-card table { width: 100%; border-collapse: collapse; }
.bento-table-card th {
  background: rgba(255,255,255,0.4); padding: 16px 20px; text-align: left;
  font-size: 12px; font-weight: 700; color: #667085; text-transform: uppercase; letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.bento-table-card td { padding: 16px 20px; font-size: 14px; border-bottom: 1px solid rgba(0,0,0,0.03); }
.bento-table-card tr { transition: all 0.2s ease; cursor: pointer; }
.bento-table-card tr:hover { background: var(--glass-bg-hover); transform: scale(1.002); }

/* EV Module Specific Typography Differentiations */
.sidebar-nav.ev-module .sidebar-section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #64748B;
  text-transform: none;
  letter-spacing: normal;
}
.sidebar-nav.ev-module .sidebar-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #E2E8F0;
}
.sidebar-nav.ev-module .nav-item {
  font-size: 16px;
  font-weight: 600;
  color: #0F172A;
}
.sidebar-nav.ev-module .nav-item.active {
  font-weight: 700;
}
.sidebar-nav.ev-module .sub-item {
  font-size: 14px;
  font-weight: 500;
  color: #64748B;
}
.sidebar-nav.ev-module .sub-item.active {
  font-weight: 600;
  color: var(--primary);
}
. t a b l e - s t i c k y   t h   {   p o s i t i o n :   s t i c k y ;   t o p :   0 ;   z - i n d e x :   1 0 ;   b a c k g r o u n d :   v a r ( - - b g ) ;   } 
 
 
/* Parcel Utility Classes */
.mb-24 { margin-bottom: 24px; }
.mb-20 { margin-bottom: 20px; }
.mb-16 { margin-bottom: 16px; }
.mb-12 { margin-bottom: 12px; }
.mb-8 { margin-bottom: 8px; }
.mt-16 { margin-top: 16px; }
.p-60 { padding: 60px; }
.p-40 { padding: 40px; }
.p-24 { padding: 24px; }
.p-20 { padding: 20px; }
.p-16 { padding: 16px; }
.p-12 { padding: 12px; }
.p-0 { padding: 0px; }
.d-flex { display: flex; }
.flex-col { flex-direction: column; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.gap-20 { gap: 20px; }
.gap-16 { gap: 16px; }
.gap-12 { gap: 12px; }
.gap-8 { gap: 8px; }
.w-100 { width: 100%; }
.min-w-140 { min-width: 140px; }
.text-center { text-align: center; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-warning-dark { color: #92400e; }
.text-danger-dark { color: #991b1b; }
.font-500 { font-weight: 500; }
.font-bold { font-weight: 700; }
.font-mono { font-family: monospace; }
.inline-icon { display: inline-block; vertical-align: middle; margin-right: 4px; }
.icon-box-primary { width:40px; height:40px; border-radius:8px; background:var(--primary-bg); color:var(--primary-color); display:flex; align-items:center; justify-content:center; }
.icon-box-success { width:40px; height:40px; border-radius:8px; background:var(--success-bg); color:var(--success-color); display:flex; align-items:center; justify-content:center; }
.icon-box-warning { width:40px; height:40px; border-radius:8px; background:var(--warning-bg); color:var(--warning-color); display:flex; align-items:center; justify-content:center; }
.h2-title { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.card-title { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.border-bottom { border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
.map-placeholder { background:#f1f5f9; border-radius:8px; height:400px; display:flex; align-items:center; justify-content:center; color:#94a3b8; border:1px solid var(--border-color); }
.placeholder-height { height: 350px; display:flex; align-items:center; justify-content:center; background:#f8fafc; border:1px solid var(--border-color); color:var(--text-muted); }
.placeholder-icon { background:#f1f5f9; width:64px; height:64px; border-radius:50%; display:flex; align-items:center; justify-content:center; margin:0 auto 16px; }
.upload-area { border:2px dashed var(--border-color); border-radius:8px; padding:32px; text-align:center; background:var(--bg); cursor:pointer; }
.dot { width:8px; height:8px; border-radius:50%; margin-top:6px; }
.bg-primary { background: var(--primary-color); }
.bg-danger { background: var(--danger-color); }
.bg-success { background: var(--success-color); }
.bg-danger-light { background: #fee2e2; }
.bg-warning-light { background: #fef3c7; }
.list-none { list-style: none; }
.rounded-6 { border-radius: 6px; }
.opacity-50 { opacity: 0.5; }
.text-ellipsis { max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
. t a b l e - s t i c k y   t h   {   p o s i t i o n :   s t i c k y ;   t o p :   0 ;   z - i n d e x :   1 0 ;   b a c k g r o u n d :   v a r ( - - b g ) ;   }  
 
/* Parcel Utility Classes */
.mb-24 { margin-bottom: 24px; }
.mb-20 { margin-bottom: 20px; }
.mb-16 { margin-bottom: 16px; }
.mb-12 { margin-bottom: 12px; }
.mb-8 { margin-bottom: 8px; }
.mt-16 { margin-top: 16px; }
.p-60 { padding: 60px; }
.p-40 { padding: 40px; }
.p-24 { padding: 24px; }
.p-20 { padding: 20px; }
.p-16 { padding: 16px; }
.p-12 { padding: 12px; }
.p-0 { padding: 0px; }
.d-flex { display: flex; }
.flex-col { flex-direction: column; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.gap-20 { gap: 20px; }
.gap-16 { gap: 16px; }
.gap-12 { gap: 12px; }
.gap-8 { gap: 8px; }
.w-100 { width: 100%; }
.min-w-140 { min-width: 140px; }
.text-center { text-align: center; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-warning-dark { color: #92400e; }
.text-danger-dark { color: #991b1b; }
.font-500 { font-weight: 500; }
.font-bold { font-weight: 700; }
.font-mono { font-family: monospace; }
.inline-icon { display: inline-block; vertical-align: middle; margin-right: 4px; }
.icon-box-primary { width:40px; height:40px; border-radius:8px; background:var(--primary-bg); color:var(--primary-color); display:flex; align-items:center; justify-content:center; }
.icon-box-success { width:40px; height:40px; border-radius:8px; background:var(--success-bg); color:var(--success-color); display:flex; align-items:center; justify-content:center; }
.icon-box-warning { width:40px; height:40px; border-radius:8px; background:var(--warning-bg); color:var(--warning-color); display:flex; align-items:center; justify-content:center; }
.h2-title { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.card-title { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.border-bottom { border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
.map-placeholder { background:#f1f5f9; border-radius:8px; height:400px; display:flex; align-items:center; justify-content:center; color:#94a3b8; border:1px solid var(--border-color); }
.placeholder-height { height: 350px; display:flex; align-items:center; justify-content:center; background:#f8fafc; border:1px solid var(--border-color); color:var(--text-muted); }
.placeholder-icon { background:#f1f5f9; width:64px; height:64px; border-radius:50%; display:flex; align-items:center; justify-content:center; margin:0 auto 16px; }
.upload-area { border:2px dashed var(--border-color); border-radius:8px; padding:32px; text-align:center; background:var(--bg); cursor:pointer; }
.dot { width:8px; height:8px; border-radius:50%; margin-top:6px; }
.bg-primary { background: var(--primary-color); }
.bg-danger { background: var(--danger-color); }
.bg-success { background: var(--success-color); }
.bg-danger-light { background: #fee2e2; }
.bg-warning-light { background: #fef3c7; }
.list-none { list-style: none; }
.rounded-6 { border-radius: 6px; }
.opacity-50 { opacity: 0.5; }
.text-ellipsis { max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-large { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.border-rounded { border: 1px solid var(--border-color); border-radius: 8px; }
.table-overflow { overflow-x: auto; }
.d-grid { display: grid; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 768px) {
  .grid-3 { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* Background Utility Classes for Avatars & Badges */
.bg-primary { background-color: var(--primary) !important; }
.bg-success { background-color: var(--success) !important; }
.bg-warning { background-color: var(--warning) !important; }
.bg-danger { background-color: var(--danger) !important; }
.bg-info { background-color: var(--info) !important; }

/* Timeline Dot Utility */
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* ── Modern Table Pagination (SaaS Design) ── */
.table-pagination-modern {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  min-height: 58px;
  max-height: 64px;
  padding: 0 24px;
  border-top: 1px solid #ECECEC;
  background: #FFFFFF;
  border-radius: 0 0 28px 28px;
  gap: 16px;
  flex-wrap: wrap;
}

.pagination-left {
  font-size: 14px;
  font-weight: 500;
  color: #6B7280;
}

.pagination-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.rows-per-page-container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #6B7280;
  font-weight: 500;
}

.rows-select {
  height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid #F1F1F1;
  background-color: #FFFFFF;
  color: #8A8A8A;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  min-width: 60px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.pagination-btns-modern {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-btn-modern {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid #EEEEEE;
  background: #FFFFFF;
  color: #8A8A8A;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 200ms ease-in-out;
}

.page-btn-modern:hover {
  background: #F9FAFB;
  border-color: #D1D5DB;
  color: #111827;
}

.page-btn-modern.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0px 2px 8px rgba(var(--primary-rgb), 0.3);
  cursor: default;
  pointer-events: none;
}

.page-btn-modern[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 768px) {
  .table-pagination-modern {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
    max-height: none;
    gap: 12px;
    padding: 16px;
  }
  .pagination-right {
    flex-direction: row;
    justify-content: center;
    gap: 12px;
  }
}

/* Custom Rows per page Select */
.custom-select-container.is-rows-select {
  width: auto;
  min-width: 60px;
}
.custom-select-container.is-rows-select .custom-select-trigger {
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid #F1F1F1;
  background-color: #FFFFFF;
  color: #8A8A8A;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.2s ease;
}
.custom-select-container.is-rows-select.active .custom-select-trigger {
  border-color: #D1D5DB;
  background: #F9FAFB;
}
.custom-select-container.is-rows-select .custom-select-dropdown {
  min-width: 60px;
  width: 100%;
  border-radius: 8px;
  padding: 4px;
  top: auto;
  bottom: calc(100% + 8px);
  transform-origin: bottom center;
}
.custom-select-container.is-rows-select .custom-select-item {
  padding: 6px 10px;
  font-size: 12.5px;
  text-align: center;
  justify-content: center;
}

/* ── Action Menu Dropdown (Three Dots Menu) ── */
.action-menu-trigger {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #8A8A8A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-menu-trigger:hover,
.action-menu-wrapper.active .action-menu-trigger {
  background: #F3F4F6;
  color: #1F2937;
  border-color: #E5E7EB;
}

.action-menu-dropdown {
  position: absolute;
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid #EAEAEA;
  box-shadow: 0px 12px 30px rgba(0, 0, 0, 0.12);
  padding: 8px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: action-menu-in 200ms cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top right;
}

.action-menu-dropdown.dropdown-hidden {
  display: none !important;
}

.action-menu-item {
  height: 44px;
  padding: 12px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 200ms ease-in-out;
}

.action-menu-item:hover {
  background: #F3F4F6;
  color: #111827;
}

.action-menu-item i,
.action-menu-item svg {
  color: #6B7280;
  transition: color 200ms ease-in-out;
}

.action-menu-item:hover i,
.action-menu-item:hover svg {
  color: #111827;
}

/* Delete Specific Styling */
.action-menu-item.delete-item {
  color: #EF4444;
}

.action-menu-item.delete-item i,
.action-menu-item.delete-item svg {
  color: #EF4444;
}

.action-menu-item.delete-item:hover {
  background: #FEF2F2;
  color: #DC2626;
}

.action-menu-item.delete-item:hover i,
.action-menu-item.delete-item:hover svg {
  color: #DC2626;
}

@keyframes action-menu-in {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-4px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ============================================================
   TABLE INTERACTIVE CHECKBOXES & ROW SELECTION
   ============================================================ */
.checkbox-column {
  width: 40px;
  text-align: center;
  vertical-align: middle;
}

table tr.row-selected {
  background-color: var(--primary-faint) !important;
}

table tr.row-selected:hover {
  background-color: var(--primary-light) !important;
}

/* Modern Checkbox styling */
table input[type="checkbox"] {
  cursor: pointer;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid #D1D5DB;
  accent-color: var(--primary);
  transition: all 0.2s ease;
}

table input[type="checkbox"]:hover {
  border-color: var(--primary);
  transform: scale(1.05);
}

table input[type="checkbox"]:focus {
  outline: 2px solid var(--primary-light);
  outline-offset: 1px;
}

/* Quick Action Dropdown Styling */
.qa-dropdown {
  position: absolute;
  right: 0; top: calc(100% + 8px);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.12);
  width: 280px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 999;
  padding: 10px;
  animation: dropdown-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.qa-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 13.5px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-primary);
}

.qa-dropdown .dropdown-item:hover {
  background: var(--primary-faint) !important;
  color: var(--primary) !important;
}

/* App Footer Styling */
.app-footer {
  height: 48px;
  background: #ffffff;
  border: 1px solid var(--border, rgba(0, 0, 0, 0.08));
  border-radius: 16px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.06);
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  font-size: 13px;
  color: var(--text-secondary, #64748B);
  flex-shrink: 0;
  z-index: 10;
}

.app-footer .footer-company {
  color: var(--primary, #16A34A);
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.app-footer .footer-company:hover {
  opacity: 0.8;
}

.app-footer .footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-footer .footer-link {
  color: var(--text-secondary, #64748B);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.app-footer .footer-link:hover {
  color: var(--primary, #16A34A);
}

.app-footer .footer-sep {
  color: #CBD5E1;
  user-select: none;
}

.app-footer .footer-version-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #EFF6FF; /* light blue */
  color: #1D4ED8; /* blue text */
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
}

.app-footer .footer-version-badge .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3B82F6; /* blue dot */
}

@media (max-width: 767px) {
  .app-footer {
    height: auto;
    padding: 8px 12px;
    margin-top: auto;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 12px;
    font-size: 11px;
  }
  .app-footer .footer-left {
    margin-right: 0;
  }
  .app-footer .footer-right {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }
  .app-footer .footer-version-badge {
    padding: 2px 8px;
    font-size: 10px;
  }
}

/* ── Bento Grid Layout & Responsiveness ── */
.bento-overview {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  width: 100%;
}

.bento-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  min-width: 0; /* Prevents cell layout overflow on small screens */
}

.bento-span-12 {
  grid-column: span 12;
}

.bento-span-8 {
  grid-column: span 8;
}

.bento-span-6 {
  grid-column: span 6;
}

.bento-span-4 {
  grid-column: span 4;
}

/* Responsive adjustments for Bento Grid */
@media (max-width: 1024px) {
  .bento-span-8 {
    grid-column: span 12;
  }
  .bento-span-4 {
    grid-column: span 12;
  }
  .bento-span-6 {
    grid-column: span 12;
  }
}

@media (max-width: 767px) {
  .bento-overview {
    gap: 16px;
  }
  .bento-card {
    padding: 16px;
  }
}

/* ── Quick Actions Floating Card ── */
.qa-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.12);
  width: 240px;
  z-index: 999;
  overflow: hidden;
  padding: 8px;
  animation: dropdown-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Table Responsiveness scrollbars ── */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Prevent dropdown menu overflow on smaller mobile screens */
@media (max-width: 767px) {
  .notif-dropdown {
    position: fixed !important;
    top: 80px !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: none !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
  }
  .qa-dropdown {
    position: fixed !important;
    top: 80px !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: none !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
  }
}

/* Service Switcher mobile button styling */
@media (max-width: 1024px) {
  .service-switcher-pill {
    padding: 0 !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }
  .service-switcher-pill .switcher-label,
  .service-switcher-pill > svg {
    display: none !important;
  }
}

/* ──────────────────────────────────────────────────────────────
   31. SELECT2 SEARCHABLE DROPDOWN & CUSTOM DATE PICKER (PREMIUM 2026)
────────────────────────────────────────────────────────────── */
.custom-select-container {
  position: relative;
  display: inline-block;
  vertical-align: middle;
}

.custom-select-trigger {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  background: #ffffff !important;
  border: 1.5px solid var(--border, #e2e8f0) !important;
  border-radius: 10px !important;
  padding: 8px 14px !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: var(--text-primary, #0f172a) !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  user-select: none !important;
  min-height: 40px !important;
  box-sizing: border-box !important;
}

.custom-select-container.active .custom-select-trigger,
.custom-select-trigger:hover {
  border-color: var(--primary, #2563eb) !important;
  box-shadow: 0 0 0 3px var(--primary-faint, rgba(37, 99, 235, 0.12)) !important;
}

.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 1050;
  min-width: 100%;
  width: max-content;
  max-width: 320px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow: 0 12px 32px -4px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  padding: 8px;
  animation: dropdown-in 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Search Wrapper inside Dropdown */
.custom-select-search-wrapper {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  padding: 4px 4px 8px 4px !important;
  margin-bottom: 6px !important;
  border-bottom: 1px solid var(--border-subtle, #f1f5f9) !important;
}

.custom-select-search-wrapper svg,
.custom-select-search-wrapper i {
  position: absolute !important;
  left: 14px !important;
  top: 50% !important;
  transform: translateY(-60%) !important;
  color: #3b82f6 !important;
  pointer-events: none !important;
  z-index: 10 !important;
  width: 16px !important;
  height: 16px !important;
}

/* Force override any legacy input padding rules with maximum specificity */
.filter-row .custom-select-container .custom-select-dropdown .custom-select-search-wrapper input.custom-select-search-input,
.custom-select-dropdown .custom-select-search-wrapper input.custom-select-search-input,
.filter-row .custom-select-search-input,
.custom-select-search-input {
  width: 100% !important;
  height: 38px !important;
  padding: 8px 14px 8px 40px !important; /* 40px left padding guarantees zero overlap with icon */
  font-size: 13px !important;
  font-weight: 400 !important;
  border: 1.5px solid #bfdbfe !important;
  border-radius: 12px !important;
  outline: none !important;
  background: #f0f7ff !important;
  color: #1e293b !important;
  box-shadow: none !important;
  transition: all 0.15s ease !important;
  box-sizing: border-box !important;
}

.filter-row .custom-select-container .custom-select-dropdown .custom-select-search-wrapper input.custom-select-search-input:focus,
.custom-select-dropdown .custom-select-search-wrapper input.custom-select-search-input:focus,
.filter-row .custom-select-search-input:focus,
.custom-select-search-input:focus {
  border-color: #2563eb !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

.custom-select-items-list {
  max-height: 210px;
  overflow-y: auto;
  padding-right: 2px;
}

.custom-select-items-list::-webkit-scrollbar {
  width: 5px;
}
.custom-select-items-list::-webkit-scrollbar-track {
  background: transparent;
}
.custom-select-items-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.custom-select-item {
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary, #1e293b);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  margin-bottom: 2px;
}

.custom-select-item:hover,
.custom-select-item.highlighted {
  background: var(--primary-faint, #eff6ff);
  color: var(--primary, #2563eb);
  transform: translateX(2px);
}

.custom-select-item.selected {
  font-weight: 600;
  background: var(--primary, #2563eb) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px var(--primary-faint, rgba(37, 99, 235, 0.25));
}

.custom-select-no-results {
  padding: 14px;
  font-size: 12.5px;
  color: #94a3b8;
  text-align: center;
  font-weight: 500;
}

/* ── CUSTOM DATE PICKER COMPONENT ── */
.custom-date-container {
  position: relative;
  display: inline-block;
  vertical-align: middle;
}

.custom-date-trigger {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: #ffffff !important;
  border: 1.5px solid var(--border, #e2e8f0) !important;
  border-radius: 10px !important;
  padding: 8px 14px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--text-primary, #0f172a) !important;
  cursor: pointer !important;
  min-height: 40px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  user-select: none !important;
  box-sizing: border-box !important;
}

.custom-date-trigger:hover,
.custom-date-container.active .custom-date-trigger {
  border-color: var(--primary, #2563eb) !important;
  box-shadow: 0 0 0 3px var(--primary-faint, rgba(37, 99, 235, 0.12)) !important;
}

.custom-date-popover {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 1050;
  width: 280px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.14), 0 4px 12px -2px rgba(15, 23, 42, 0.06);
  padding: 16px;
  animation: dropdown-in 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.custom-date-popover.dropdown-hidden {
  display: none !important;
}

.custom-date-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.custom-date-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 4px;
}

.custom-date-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.custom-date-nav-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: none;
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.custom-date-nav-btn:hover {
  background: var(--primary-faint, #eff6ff);
  color: var(--primary, #2563eb);
}

.custom-date-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.custom-date-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.custom-date-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 500;
  color: #1e293b;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.custom-date-day:hover {
  background: var(--primary-faint, #eff6ff);
  color: var(--primary, #2563eb);
}

.custom-date-day.other-month {
  color: #cbd5e1;
}

.custom-date-day.today {
  font-weight: 700;
  color: var(--primary, #2563eb);
  background: var(--primary-faint, #eff6ff);
}

.custom-date-day.selected {
  background: var(--primary, #2563eb) !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 4px 10px var(--primary-faint, rgba(37, 99, 235, 0.35)) !important;
}

.custom-date-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.custom-date-btn-clear,
.custom-date-btn-today {
  background: none;
  border: none;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.custom-date-btn-clear {
  color: #64748b;
}
.custom-date-btn-clear:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.custom-date-btn-today {
  color: var(--primary, #2563eb);
  background: var(--primary-faint, #eff6ff);
}
.custom-date-btn-today:hover {
  background: var(--primary-light, #dbeafe);
}

