/* 
============================================================================
SHALUB CRM — PREMIUM DESIGN SYSTEM v5.0
============================================================================
Core design tokens for a high-end, editorial aesthetic.
Themes: Deep Graphite, Metallic Gold, Glassmorphism.
*/

:root {
  /* Colors */
  --shalub-gold: #c9a646;
  --shalub-gold-light: #e6cf8b;
  --shalub-gold-dark: #a8862d;
  --shalub-graphite: #0f1115;
  --shalub-graphite-soft: #171a20;
  --shalub-graphite-deep: #07080a;
  --shalub-border: rgba(201, 166, 70, 0.12);
  --shalub-border-bright: rgba(201, 166, 70, 0.25);
  
  /* Gradientes */
  --grad-gold: linear-gradient(135deg, #c9a646 0%, #a8862d 100%);
  --grad-gold-text: linear-gradient(135deg, #f5deb3 0%, #c9a646 48%, #8f6b1d 100%);
  --grad-dark: linear-gradient(180deg, #171a20 0%, #0f1115 100%);
}

/* Base Styles */
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--shalub-graphite-deep);
  background-image: 
    radial-gradient(circle at top left, rgba(201, 166, 70, 0.08), transparent 40%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.03), transparent 30%);
  color: #f8fafc;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--shalub-graphite-deep); }
::-webkit-scrollbar-thumb { background: var(--shalub-gold-dark); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--shalub-gold); }

/* Premium Cards (Glassmorphism) */
.premium-card {
  background: linear-gradient(180deg, rgba(23, 26, 32, 0.8), rgba(12, 14, 19, 0.9));
  border: 1px solid var(--shalub-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Skeleton Loading States */
.skeleton {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite linear;
  border-radius: 8px;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text { height: 10px; width: 100%; }
.skeleton-title { height: 18px; width: 60%; }
.skeleton-row { height: 45px; width: 100%; margin-bottom: 4px; }

.premium-card:hover { border-color: var(--shalub-border-bright); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5); }

/* Buttons */
.btn-gold {
  background: var(--grad-gold);
  color: #07080a;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(201, 166, 70, 0.2);
}

.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(201, 166, 70, 0.35); opacity: 0.95; }
.btn-gold:active { transform: translateY(0); scale: 0.98; }

/* Text Gradients */
.gradient-text {
  background: var(--grad-gold-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

/* Inputs */
input.premium-input, select.premium-input, textarea.premium-input {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
  transition: all 0.2s ease;
}

input.premium-input:focus {
  border-color: var(--shalub-gold) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 0 0 3px rgba(201, 166, 70, 0.1);
  outline: none;
}

/* Sidebar & Navigation */
.sidebar-premium {
  background: rgba(7, 8, 10, 0.8) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-right: 1px solid var(--shalub-border);
}

.nav-link-premium {
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.2s ease;
  position: relative;
}

.nav-link-premium:hover, .nav-link-premium.active {
  color: var(--shalub-gold-light);
  background: rgba(201, 166, 70, 0.05);
}

.nav-link-premium.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 3px;
  background: var(--shalub-gold);
  box-shadow: 0 0 10px var(--shalub-gold);
}

/* Tables */
.premium-table thead { background: rgba(255, 255, 255, 0.02); }
.premium-table th { color: var(--shalub-gold-light); font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.7rem; }
.premium-table td { border-bottom: 1px solid rgba(255, 255, 255, 0.03); }
.premium-table tr:hover td { background: rgba(255, 255, 255, 0.01); }

/* Animation Classes */
.fade-in { animation: fadeIn 0.4s ease-out forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Kanban Columns */
.kanban-col { background: rgba(255, 255, 255, 0.02); border: 1px dashed rgba(255, 255, 255, 0.05); }
.kanban-col.drag-over { border-color: var(--shalub-gold); background: rgba(201, 166, 70, 0.03); }

/* Premium Badges */
.premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-google { background: rgba(66, 133, 244, 0.15); color: #8ab4f8; border-color: rgba(66, 133, 244, 0.3); }
.badge-meta { background: rgba(0, 129, 251, 0.15); color: #70b5ff; border-color: rgba(0, 129, 251, 0.3); }
.badge-whatsapp { background: rgba(37, 211, 102, 0.15); color: #6fed94; border-color: rgba(37, 211, 102, 0.3); }
.badge-gold { background: rgba(201, 166, 70, 0.15); color: var(--shalub-gold-light); border-color: var(--shalub-border-bright); }

/* Interactive Hover Effects */
.hover-lift { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.hover-lift:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0,0,0,0.3); }

/* High Visibility Typography */
.text-premium { color: rgba(255,255,255,0.9); font-weight: 500; }
.text-muted-premium { color: rgba(255,255,255,0.5); font-size: 0.75rem; }

/* Global Font Refinement */
* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* FIX: Visibilidade de textos e fundos */
thead, .premium-table thead {
  background: rgba(0, 0, 0, 0.4) !important;
}

th {
  color: var(--shalub-gold-light) !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Dropdowns e Selects (Impedir texto branco no fundo branco) */
select, .premium-input option, select option {
  background-color: var(--shalub-graphite-soft) !important;
  color: #fff !important;
}

/* WhatsApp Chat Header Fix */
#chat-header, .whatsapp-header {
  background: var(--shalub-graphite-deep) !important;
  border-bottom: 1px solid var(--shalub-border-bright) !important;
  color: #fff !important;
}

/* Chat Background Fallback (Resolves 404 for chat-bg-dark.png) */
.wa-chat-bg, #support-chat-messages {
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(201, 166, 70, 0.05) 0%, transparent 10%),
    radial-gradient(circle at 80% 70%, rgba(201, 166, 70, 0.05) 0%, transparent 10%),
    linear-gradient(rgba(11, 18, 35, 0.97), rgba(11, 18, 35, 0.97)) !important;
  background-size: 100px 100px, 120px 120px, 100% 100% !important;
  background-repeat: repeat, repeat, no-repeat !important;
}

/* Correção de Dropdowns de Automação e Filtros */
.dropdown-menu, .select2-dropdown, .bg-white.dark\:bg-slate-900 {
  background-color: var(--shalub-graphite-soft) !important;
  border: 1px solid var(--shalub-border-bright) !important;
  color: #fff !important;
}

/* Forçar visibilidade em listas */
.text-slate-500, .dark .text-slate-400 {
  color: #a0aec0 !important; /* Um cinza mais claro para contraste */
}

/* WhatsApp Inbox Specific Fixes */
#wa-inbox-chat-list .bg-slate-50, 
#wa-inbox-chat-list .dark\:bg-white\/5 {
  background: var(--shalub-graphite-soft) !important;
}

#wa-inbox-conv-header {
  background: var(--shalub-graphite-deep) !important;
  border-bottom: 1px solid var(--shalub-border-bright) !important;
}

#wa-inbox-conv-header p {
  color: #fff !important;
}

#wa-inbox-conv-header span {
  color: var(--shalub-gold-light) !important;
}

/* Fix for any container using bg-slate-50 that should be dark */
.dark .bg-slate-50, .dark .bg-white {
  background-color: var(--shalub-graphite-soft) !important;
  color: #fff !important;
}

/* Fix table headers in all lists */
table thead th {
  background-color: rgba(0,0,0,0.5) !important;
  color: var(--shalub-gold-light) !important;
  border-bottom: 1px solid var(--shalub-border) !important;
}

/* Ensure text in inputs is visible */
input, textarea, select {
  color-scheme: dark;
}
/* Timeline & Activity Styles */
.timeline-container {
  position: relative;
  padding-left: 24px;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--shalub-border);
}

.timeline-item {
  position: relative;
  padding-bottom: 24px;
}

.timeline-marker {
  position: absolute;
  left: -24px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--shalub-graphite-deep);
  border: 2px solid var(--shalub-gold);
  z-index: 1;
}

.timeline-content {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--shalub-border);
  border-radius: 12px;
  padding: 12px;
  transition: all 0.2s ease;
}

.timeline-content:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--shalub-gold-dark);
}

/* Toast & Notifications System */
.glass-premium {
  background: rgba(15, 17, 21, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(201, 166, 70, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(100%) scale(0.9); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes slideOut {
  from { opacity: 1; transform: translateX(0) scale(1); }
  to { opacity: 0; transform: translateX(100%) scale(0.9); }
}

.animate-slide-in {
  animation: slideIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.animate-slide-out {
  animation: slideOut 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Glass UI Utility */
.glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Status Pulse Animation */
.lead-status-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--shalub-gold);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(201, 166, 70, 0.7);
  animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(201, 166, 70, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(201, 166, 70, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(201, 166, 70, 0); }
}

.interaction-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  background: var(--shalub-graphite-soft);
  border: 1px solid var(--shalub-border);
  color: var(--shalub-gold-light);
}

.interaction-btn:hover {
  background: var(--shalub-gold);
  color: #000;
  transform: translateY(-2px);
}
/* Command Palette (Ctrl+K) */
.command-palette-overlay {
  background: rgba(7, 8, 10, 0.7);
  backdrop-filter: blur(8px);
}

.command-palette-box {
  background: rgba(15, 17, 21, 0.95);
  border: 1px solid var(--shalub-border-bright);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), 0 0 20px rgba(201, 166, 70, 0.1);
  border-radius: 20px;
}

.command-item {
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.command-item.active, .command-item:hover {
  background: rgba(201, 166, 70, 0.1);
  border-left-color: var(--shalub-gold);
  transform: translateX(4px);
}

/* Modal 360° & Tabs */
.modal-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0 24px;
}

.modal-tab-btn {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.modal-tab-btn:hover {
  color: var(--shalub-gold-light);
}

.modal-tab-btn.active {
  color: var(--shalub-gold);
  border-bottom-color: var(--shalub-gold);
}

/* Temperature Filters */
.filter-temp-btn {
  @apply flex items-center gap-2 px-3 py-1.5 rounded-full text-[11px] font-bold uppercase transition-all border;
}

.filter-temp-btn.active {
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transform: translateY(-1px);
}
/* Floating Bulk Bar */
#bulk-toolbar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(15, 17, 21, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--shalub-gold);
  border-radius: 100px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 1000;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 20px rgba(201, 166, 70, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#bulk-toolbar.active {
  transform: translateX(-50%) translateY(0);
}

.bulk-count {
  background: var(--shalub-gold);
  color: #000;
  font-weight: 900;
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 12px;
}

.bulk-action-btn {
  @apply flex items-center gap-2 px-4 py-2 rounded-full text-xs font-bold uppercase transition-all hover:bg-white/10 text-white/80 hover:text-white;
}

/* Funnel Chart */
.funnel-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 0;
}

.funnel-step {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 11px;
  position: relative;
  transition: all 0.3s ease;
  clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
}

.funnel-step:hover {
  filter: brightness(1.2);
  transform: scaleX(1.02);
}
/* ============================================================================
   RESPONSIVIDADE MOBILE — SHALUB CRM
   ============================================================================ */

/* Bottom Navigation Bar (mobile only) */
#mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(7, 8, 10, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(201, 166, 70, 0.15);
  padding: 6px 0 env(safe-area-inset-bottom, 6px);
}

#mobile-bottom-nav a,
#mobile-bottom-nav button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 4px;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

#mobile-bottom-nav a.active,
#mobile-bottom-nav button.active,
#mobile-bottom-nav a:active,
#mobile-bottom-nav button:active {
  color: var(--shalub-gold);
}

#mobile-bottom-nav svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 1023px) {
  /* Show bottom nav on mobile */
  #mobile-bottom-nav {
    display: flex;
  }

  /* Add bottom padding to main content so it's not hidden behind bottom nav */
  #main-content {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Bulk toolbar: raise above bottom nav */
  #bulk-toolbar.active {
    bottom: 80px !important;
  }

  /* Toast container: above bottom nav */
  #toast-container {
    bottom: 88px !important;
    top: auto !important;
    right: 12px !important;
  }

  /* Main padding on mobile */
  #main-content {
    padding: 16px 12px !important;
  }
  
  /* Hide search on very small screens if too cramped */
  #global-search {
    font-size: 13px;
  }
}

/* Generic table scroll wrapper */
.table-responsive-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
}

/* Kanban horizontal scroll */
.kanban-board {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
}

.kanban-board .kanban-col,
.kanban-board [class*="kanban-col"] {
  scroll-snap-align: start;
  min-width: 280px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  /* Bulk toolbar */
  #bulk-toolbar {
    width: 92% !important;
    gap: 8px !important;
    padding: 10px 14px !important;
    flex-wrap: wrap;
  }
  
  .bulk-action-btn span {
    display: none;
  }
  
  .premium-card {
    padding: 1rem !important;
  }
  
  /* Modais: full width on mobile */
  .modal-box,
  [id^="modal-"] > div {
    width: 96% !important;
    max-width: 96vw !important;
    margin: 8px !important;
    max-height: 88vh !important;
    overflow-y: auto !important;
  }

  /* Modal tabs: scrollable on mobile */
  .modal-tabs {
    overflow-x: auto;
    padding: 0 8px;
    gap: 4px;
  }

  .modal-tab-btn {
    white-space: nowrap;
    font-size: 11px;
    padding: 10px 10px;
  }

  /* Tables: force horizontal scroll */
  table {
    min-width: 500px;
  }

  /* Dashboard header: stack vertically */
  .dashboard-header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Settings cards: full width */
  .settings-card {
    grid-column: 1 / -1 !important;
  }
}


/* Sidebar Collapsed State Fixes */
.collapsed-sidebar .sidebar-text {
  display: none !important;
}

.collapsed-sidebar {
  width: 80px !important;
}

/* ============================================================================
   PREMIUM MODAL SYSTEM (Alert Replacement)
   ============================================================================ */
.shalub-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 8, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.shalub-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.shalub-modal-box {
  background: linear-gradient(135deg, rgba(23, 26, 32, 0.95) 0%, rgba(15, 17, 21, 0.98) 100%);
  border: 1px solid var(--shalub-border-bright);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), 0 0 30px rgba(201, 166, 70, 0.1);
  border-radius: 24px;
  width: 90%;
  max-width: 500px;
  padding: 40px;
  transform: scale(0.9) translateY(20px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
}

.shalub-modal-overlay.active .shalub-modal-box {
  transform: scale(1) translateY(0);
}

.shalub-modal-title {
  color: var(--shalub-gold);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.shalub-modal-content {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  max-height: 60vh;
  overflow-y: auto;
  text-align: left;
}

.shalub-modal-btn {
  background: var(--grad-gold);
  color: #07080a;
  border: none;
  padding: 14px 40px;
  border-radius: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(201, 166, 70, 0.3);
}

.shalub-modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(201, 166, 70, 0.45);
  filter: brightness(1.1);
}

.shalub-modal-btn:active {
  transform: translateY(0);
  scale: 0.96;
}

/* Personalização para Resumo de IA */
.shalub-modal-content strong {
  color: var(--shalub-gold-light);
}

.shalub-modal-content ul {
  list-style: none;
  padding: 0;
}

.shalub-modal-content li {
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
}

.shalub-modal-content li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--shalub-gold);
}

/* ============================================================================
   SHALUB PREMIUM UI - Dashboard operacional e superficies refinadas
   ============================================================================ */
:root {
  --shalub-canvas: #09090b;
  --shalub-line: rgba(255, 255, 255, 0.08);
  --shalub-text-muted: #a1a1aa;
}

.dark body {
  background:
    radial-gradient(1000px 520px at 70% -10%, rgba(201, 166, 70, 0.12), transparent 62%),
    radial-gradient(760px 460px at -10% 30%, rgba(103, 72, 20, 0.12), transparent 60%),
    var(--shalub-canvas) !important;
}

.sidebar-premium {
  background: rgba(9, 9, 11, 0.88) !important;
  border-color: rgba(255, 255, 255, 0.07) !important;
}

header.sidebar-premium {
  background: rgba(9, 9, 11, 0.72) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.dark .glass {
  background: linear-gradient(145deg, rgba(28, 28, 33, 0.92), rgba(15, 15, 18, 0.94)) !important;
  border-color: var(--shalub-line) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22) !important;
}

.sidebar-link.active {
  background: linear-gradient(90deg, rgba(201, 166, 70, 0.18), rgba(201, 166, 70, 0.05) 72%, transparent) !important;
  color: #f5deb3 !important;
  box-shadow: none !important;
}

.sidebar-link:hover { box-shadow: none !important; }
.sidebar-link.active i { color: var(--shalub-gold) !important; }

.dashboard-premium { max-width: 1600px; margin: 0 auto; }
.dashboard-header { padding: 4px 2px 2px; }
.dashboard-period-control { border: 1px solid var(--shalub-line); background: rgba(255,255,255,0.035); }

.dashboard-metric-card { overflow: hidden; position: relative; min-height: 170px; }
.dashboard-metric-card::after {
  content: '';
  position: absolute;
  width: 145px;
  height: 145px;
  border-radius: 999px;
  right: -72px;
  bottom: -92px;
  opacity: 0.35;
  pointer-events: none;
}
.metric-leads::after { background: #2563eb; }
.metric-sla::after { background: var(--shalub-gold); }
.metric-pipeline::after { background: #10b981; }
.metric-revenue::after { background: #f59e0b; }
.dashboard-metric-card > * { position: relative; z-index: 1; }
.dashboard-metric-card p.text-2xl { color: #fff; font-size: clamp(1.55rem, 2.2vw, 2rem); letter-spacing: -0.045em; }
.dashboard-metric-card > div:first-child > p { color: var(--shalub-text-muted) !important; letter-spacing: .08em; }
.dashboard-metric-card .text-slate-400 { color: #b1b1b8 !important; }

.dashboard-action-card { background: linear-gradient(145deg, rgba(48, 40, 20, 0.52), rgba(18, 18, 21, 0.96)) !important; }
.dashboard-priority-row {
  width: 100%; display: flex; align-items: center; gap: 11px; padding: 12px;
  border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; background: rgba(0,0,0,.18);
  color: #f4f4f5; transition: border-color .2s ease, background .2s ease;
}
.dashboard-priority-row:hover { border-color: rgba(201,166,70,.38); background: rgba(201,166,70,.08); }
.dashboard-priority-row strong { display: block; font-size: 12px; }
.dashboard-priority-row small { display: block; color: var(--shalub-text-muted); font-size: 10px; margin-top: 2px; }
.priority-icon { display: inline-flex; padding: 8px; border-radius: 10px; background: rgba(255,255,255,.06); }
.is-attention .priority-icon { color: #fbbf24; }
.is-calm .priority-icon { color: #6ee7b7; }
.dashboard-activity-card > h3 { padding-bottom: 14px; border-bottom: 1px solid var(--shalub-line); }

.dark .kanban-card { background: linear-gradient(145deg, rgba(30,30,35,.94), rgba(19,19,23,.96)) !important; border-color: var(--shalub-line) !important; box-shadow: none; }
.dark .kanban-card:hover { border-color: rgba(201,166,70,.4) !important; box-shadow: 0 14px 26px rgba(0,0,0,.22); }

@media (max-width: 640px) {
  .dashboard-header { align-items: flex-start; }
  .dashboard-period-control { width: 100%; }
  .dashboard-period-control select { width: 100%; }
  .dashboard-metric-card { min-height: 154px; }
}

/* Shared polish for Leads, Pipeline, WhatsApp, Tasks, Reports, Settings and Automations */

/* Dashboard refinement v2: clearer hierarchy, less decorative noise. */
#master-impersonate-banner {
  min-height: 42px;
  padding-top: 7px !important;
  padding-bottom: 7px !important;
  color: #f7e8b3 !important;
  background: linear-gradient(90deg, #17130b 0%, #211a0d 52%, #17130b 100%) !important;
  border-bottom: 1px solid rgba(201, 166, 70, .35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22) !important;
}
#master-impersonate-banner > div:first-child > div {
  color: #18140a;
  background: #d5b457 !important;
  box-shadow: 0 0 0 4px rgba(213, 180, 87, .10);
}
#master-impersonate-banner button {
  color: #f8e7ae !important;
  background: rgba(213, 180, 87, .10) !important;
  border: 1px solid rgba(213, 180, 87, .35);
  border-radius: 10px;
}

.dashboard-premium {
  max-width: 1680px;
  margin: 0 auto;
}
.dashboard-header {
  padding: 18px 20px !important;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 22px;
  background:
    linear-gradient(100deg, rgba(201, 166, 70, .09), transparent 30%),
    rgba(255, 255, 255, .018);
}
.dashboard-header h1 { letter-spacing: -.035em; }
.dashboard-header > div:first-child > p:last-child { max-width: 620px; }
.dashboard-period-control {
  box-shadow: inset 0 1px rgba(255, 255, 255, .06), 0 8px 24px rgba(0, 0, 0, .15);
}

.dashboard-metric-card {
  min-height: 146px !important;
  padding: 18px 19px !important;
  border-color: rgba(255, 255, 255, .075) !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .016)) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .045), 0 12px 26px rgba(0, 0, 0, .12);
}
.dashboard-metric-card::after {
  top: 0 !important;
  right: auto !important;
  bottom: auto !important;
  left: 19px;
  width: 34px !important;
  height: 3px !important;
  opacity: 1 !important;
  border-radius: 0 0 8px 8px;
  transform: none !important;
  filter: none !important;
}
.metric-leads::after { background: #6ea8fe !important; }
.metric-sla::after { background: #c9a646 !important; }
.metric-pipeline::after { background: #34d399 !important; }
.metric-revenue::after { background: #f59e0b !important; }
.dashboard-metric-card p.text-2xl {
  margin-top: 13px;
  font-size: clamp(1.65rem, 2.1vw, 2.05rem) !important;
  line-height: 1.05;
}
.dashboard-metric-card:hover {
  border-color: rgba(201, 166, 70, .28) !important;
  transform: translateY(-3px);
}

.dashboard-insights-grid > .glass,
.dashboard-activity-card {
  border-color: rgba(255, 255, 255, .07) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .035), 0 16px 36px rgba(0, 0, 0, .14);
}
.dashboard-chart-card { background: linear-gradient(150deg, rgba(201, 166, 70, .06), rgba(255,255,255,.018) 38%) !important; }
.dashboard-chart-body.is-sparse { height: 150px !important; }
.dashboard-chart-body.is-sparse canvas { display: none !important; }
.dashboard-sparse-state {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  text-align: center;
}
.dashboard-sparse-state strong { font-size: 1.85rem; letter-spacing: -.045em; color: #f7e8b3; }
.dashboard-sparse-state span { max-width: 390px; color: #92929c; font-size: .77rem; line-height: 1.5; }
.dashboard-action-card { background: linear-gradient(145deg, rgba(77, 61, 25, .46), rgba(18, 18, 21, .97)) !important; }
.dashboard-priority-row { border-color: rgba(201, 166, 70, .22) !important; }

@media (max-width: 768px) {
  .dashboard-header { padding: 15px !important; }
  .dashboard-metric-card { min-height: 132px !important; }
  #master-impersonate-banner { min-height: 38px; }
}
#view-content > div {
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;
}

#view-content h1.gradient-text {
  letter-spacing: -0.035em;
  font-weight: 800;
}

.dark #view-content input:not([type="checkbox"]):not([type="radio"]),
.dark #view-content select,
.dark #view-content textarea {
  background-color: rgba(9, 9, 11, 0.54) !important;
  border-color: rgba(255, 255, 255, 0.10) !important;
  color: #f4f4f5 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.dark #view-content input:focus,
.dark #view-content select:focus,
.dark #view-content textarea:focus {
  border-color: rgba(201, 166, 70, 0.72) !important;
  box-shadow: 0 0 0 3px rgba(201, 166, 70, 0.12) !important;
}

.dark #view-content table thead,
.dark #view-content table thead tr {
  background: rgba(255,255,255,.025) !important;
}

.dark #view-content table tbody tr:hover td,
.dark #view-content table tbody tr:hover {
  background: rgba(201,166,70,.045) !important;
}

.leads-table-view,
#logs-table-wrapper {
  box-shadow: 0 18px 42px rgba(0,0,0,.22) !important;
}

.dark .leads-table-view {
  background: linear-gradient(145deg, rgba(28,28,33,.94), rgba(15,15,18,.96)) !important;
  border-color: var(--shalub-line) !important;
}

.dark .kanban-column {
  background: rgba(255,255,255,.025) !important;
  border-color: rgba(255,255,255,.075) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.dark .kanban-empty {
  background: rgba(9,9,11,.24);
  border-color: rgba(255,255,255,.09) !important;
}

.dark .filter-temp-btn:not(.active) {
  border-color: rgba(255,255,255,.07) !important;
  background: rgba(255,255,255,.025);
}

/* The reports room and settings cards get the same deliberate spacing as the dashboard. */
#view-content .rounded-\[32px\],
#view-content .rounded-\[28px\] {
  box-shadow: 0 20px 44px rgba(0,0,0,.2);
}

#whatsapp-inbox-container {
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(0,0,0,.25);
}

#wa-inbox-conv-header,
#wa-inbox-input-area {
  background: rgba(18,18,22,.92) !important;
  border-color: rgba(255,255,255,.07) !important;
}

#wa-inbox-chat-list .wa-chat-row:hover,
#wa-inbox-chat-list .wa-chat-row[data-active="true"] {
  background: rgba(201,166,70,.075) !important;
}

@media (max-width: 768px) {
  #view-content > div { padding-bottom: 10px; }
  #whatsapp-inbox-container { border-radius: 14px; }
  .leads-table-view { border-radius: 14px !important; }
}

/* Shalub executive shell: compact navigation and restrained surfaces. */
.app-sidebar {
  background: #0b0b0d !important;
  border-right: 1px solid rgba(255, 255, 255, .065) !important;
}
.app-sidebar > div:first-child {
  min-height: 64px;
  border-color: rgba(255, 255, 255, .065) !important;
}
.app-sidebar nav { padding: 17px 12px !important; }
.nav-section {
  margin: 0 10px 9px;
  color: #73737c;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .13em;
  line-height: 1;
  text-transform: uppercase;
}
.app-sidebar .sidebar-link {
  min-height: 40px;
  padding: 9px 11px !important;
  border-radius: 10px !important;
  color: #aaaab2 !important;
}
.app-sidebar .sidebar-link > i {
  width: 18px;
  height: 18px;
  color: #85858e !important;
}
.app-sidebar .sidebar-link:hover {
  background: rgba(255, 255, 255, .045) !important;
  color: #f2f2f3 !important;
  transform: none !important;
}
.app-sidebar .sidebar-link.active {
  background: rgba(201, 166, 70, .12) !important;
  color: #f4df9d !important;
}
.app-sidebar .sidebar-link.active::before {
  width: 2px !important;
  height: 17px !important;
  border-radius: 0 4px 4px 0;
  background: #d9b953 !important;
  box-shadow: none !important;
}
.app-sidebar .sidebar-link.active > i { color: #d9b953 !important; }
.app-sidebar > div:last-child {
  padding: 12px !important;
  border-color: rgba(255, 255, 255, .065) !important;
}
.app-sidebar > div:last-child > div {
  padding: 10px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, .035) !important;
  box-shadow: none !important;
}

.app-header {
  height: 62px !important;
  background: rgba(11, 11, 13, .90) !important;
  border-bottom: 1px solid rgba(255, 255, 255, .065) !important;
  backdrop-filter: blur(18px);
}
.app-header #global-search { font-size: 12px; }
.app-header #global-search + * { display: none; }
.app-header .relative.flex-1 > div:first-child {
  height: 36px;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-radius: 9px !important;
  background: rgba(255,255,255,.035) !important;
  box-shadow: none !important;
}
.app-header #wa-instances-status {
  border-radius: 9px !important;
  background: rgba(255, 255, 255, .03) !important;
}
.app-header #theme-toggle,
.app-header #notif-btn { border-radius: 9px !important; }
.app-header .btn-primary {
  min-height: 36px;
  border-radius: 9px !important;
  background: #c9a646 !important;
  color: #171208 !important;
  box-shadow: none !important;
}
.app-main {
  padding: 26px 30px 34px !important;
  background:
    radial-gradient(900px 500px at 90% -15%, rgba(201, 166, 70, .055), transparent 60%),
    #0e0e10;
}

/* Remove the repeated 'glass' treatment: operational data needs calm contrast. */
.dark .glass,
.dark .leads-table-view {
  background: #151518 !important;
  border-color: rgba(255, 255, 255, .075) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .20) !important;
}
.dashboard-header {
  padding: 2px 0 11px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}
.dashboard-header h1 { font-size: 24px !important; }
.dashboard-header > div:first-child > p:last-child { color: #8d8d96 !important; }
.dashboard-period-control {
  border-radius: 9px !important;
  background: #161619 !important;
  box-shadow: none !important;
}
.dashboard-metric-card {
  min-height: 128px !important;
  padding: 16px !important;
  border-radius: 14px !important;
  background: #151518 !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.22) !important;
}
.dashboard-metric-card::after { left: 16px; width: 26px !important; }
.dashboard-metric-card p.text-2xl { margin-top: 9px; font-size: 27px !important; }
.dashboard-metric-card .text-slate-400 { font-size: 10px !important; }
.dashboard-metric-card:hover { transform: translateY(-1px); }
.dashboard-insights-grid > .glass,
.dashboard-activity-card {
  border-radius: 14px !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.22) !important;
}
.dashboard-chart-card,
.dashboard-action-card { background: #151518 !important; }
.dashboard-priority-row { border-radius: 10px; background: #111113; }
.dashboard-priority-row:hover { background: rgba(201, 166, 70, .08); }

/* Dashboard operation center replaces empty chart real estate when history is sparse. */
.dashboard-operations-card { min-height: 312px; }
.dashboard-operations-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.dashboard-eyebrow { margin: 0 0 7px; color: #aa8c3f; font-size: 9px; font-weight: 750; letter-spacing: .14em; }
.dashboard-operations-heading h3 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 17px; }
.dashboard-operations-heading h3 svg { width: 18px; color: #d4b04f; }
.dashboard-open-queue { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid rgba(201,166,70,.28); border-radius: 9px; color: #ead68e; font-size: 11px; font-weight: 700; transition: background .18s ease; }
.dashboard-open-queue:hover { background: rgba(201,166,70,.10); }
.dashboard-open-queue svg { width: 14px; }
.dashboard-queue-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 12px; margin-top: 31px; }
.queue-stat { min-height: 128px; padding: 17px; border: 1px solid rgba(255,255,255,.075); border-radius: 12px; background: #111114; text-align: left; }
.queue-stat-alert { cursor: pointer; border-color: rgba(201,166,70,.38); background: linear-gradient(135deg, rgba(201,166,70,.14), rgba(17,17,20,.98) 65%); }
.queue-stat-alert:hover { border-color: rgba(201,166,70,.65); }
.queue-stat span { display: block; color: #8f8f98; font-size: 9px; font-weight: 750; letter-spacing: .10em; }
.queue-stat strong { display: block; margin-top: 10px; color: #f4f4f5; font-size: 31px; font-weight: 750; letter-spacing: -.05em; line-height: 1; }
.queue-stat-alert strong { color: #f0d679; }
.queue-stat small { display: block; margin-top: 10px; color: #888891; font-size: 10px; }
.dashboard-queue-foot { display: flex; align-items: center; gap: 7px; margin-top: 20px; color: #777780; font-size: 10px; }
.dashboard-queue-foot svg { width: 13px; min-width: 13px; color: #aa8c3f; }

@media (min-width: 1024px) {
  .app-sidebar { width: 228px !important; }
  .app-main { padding-left: 30px !important; padding-right: 30px !important; }
  .collapsed-sidebar { width: 72px !important; }
  .collapsed-sidebar nav { padding-inline: 10px !important; }
  .collapsed-sidebar .sidebar-link { justify-content: center; padding-inline: 0 !important; }
}
@media (max-width: 768px) {
  .app-main { padding: 18px 14px 90px !important; }
  .app-header { height: 58px !important; }
  .app-header #wa-instances-status { display: none !important; }
  .dashboard-queue-grid { grid-template-columns: 1fr; margin-top: 20px; }
  .dashboard-operations-card { min-height: auto; }
}

/* ============================================================================
   SHALUB UI 2026 - unified operational workspace
   ============================================================================ */
:root {
  --ui-bg: #0c0d0f;
  --ui-surface: #141518;
  --ui-surface-2: #191a1e;
  --ui-border: rgba(255,255,255,.075);
  --ui-border-strong: rgba(255,255,255,.13);
  --ui-copy: #f2f2f3;
  --ui-muted: #8d8f98;
  --ui-gold: #c8a548;
  --ui-radius: 12px;
}

/* Support mode must remain visible without dominating the application. */
#master-impersonate-banner {
  min-height: 36px !important;
  padding: 5px 14px !important;
  color: #bdb7a5 !important;
  background: #111113 !important;
  border-bottom: 1px solid rgba(201,166,70,.20) !important;
  box-shadow: none !important;
  font-size: 11px;
}
#master-impersonate-banner > div:first-child { gap: 9px !important; }
#master-impersonate-banner > div:first-child > div {
  padding: 5px !important;
  color: #d8b755 !important;
  background: rgba(201,166,70,.10) !important;
  box-shadow: none !important;
  border: 1px solid rgba(201,166,70,.20);
  border-radius: 7px !important;
}
#master-impersonate-banner > div:first-child > div svg { width: 14px; height: 14px; }
#master-impersonate-banner .font-bold { color: #d8c98e; font-size: 10px; letter-spacing: .08em; }
#master-impersonate-banner button {
  padding: 6px 10px !important;
  color: #c9b86f !important;
  background: transparent !important;
  border-color: rgba(201,166,70,.22) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

.app-main { background: var(--ui-bg) !important; }
.crm-page { width: 100%; max-width: 1680px; margin-inline: auto; color: var(--ui-copy); }
.crm-page > div:first-child:not(.glass) { min-height: 62px; }
.crm-page h1 { color: #f5f5f6 !important; background: none !important; -webkit-text-fill-color: currentColor !important; font-size: 24px !important; font-weight: 720 !important; letter-spacing: -.035em !important; }
.crm-page h3 { letter-spacing: -.015em; }
.crm-page .gradient-text { color: #f5f5f6 !important; background: none !important; -webkit-text-fill-color: currentColor !important; }
.crm-kicker { margin-bottom: 5px; color: var(--ui-gold); font-size: 9px; font-weight: 750; letter-spacing: .14em; }
.crm-secondary-action { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid var(--ui-border-strong); border-radius: 9px; background: var(--ui-surface); color: #d0d1d5; font-size: 11px; font-weight: 650; }
.crm-secondary-action:hover { border-color: rgba(201,166,70,.35); color: #e6d18c; }
.crm-secondary-action svg { width: 15px; height: 15px; }

.crm-page .glass,
.crm-page .bg-white,
.crm-page .dark\:bg-slate-800,
.crm-page .dark\:bg-slate-900 {
  border-color: var(--ui-border) !important;
  background: var(--ui-surface) !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.22) !important;
}
.crm-page .rounded-3xl,
.crm-page .rounded-\[32px\],
.crm-page .rounded-\[28px\] { border-radius: 14px !important; }
.crm-page .rounded-2xl { border-radius: 11px !important; }

.crm-page input:not([type="checkbox"]):not([type="radio"]),
.crm-page select,
.crm-page textarea {
  min-height: 38px;
  border-color: var(--ui-border-strong) !important;
  border-radius: 9px !important;
  background: #101114 !important;
  color: #e8e8ea !important;
  font-size: 12px !important;
}
.crm-page input:focus,
.crm-page select:focus,
.crm-page textarea:focus { border-color: rgba(201,166,70,.60) !important; box-shadow: 0 0 0 3px rgba(201,166,70,.10) !important; }

.crm-page table { border-collapse: separate; border-spacing: 0; }
.crm-page table thead,
.crm-page table thead tr,
.crm-page table thead th { background: #111216 !important; }
.crm-page table th { height: 42px; color: #92949d !important; text-shadow: none !important; font-size: 9px !important; letter-spacing: .08em; }
.crm-page table td { border-color: rgba(255,255,255,.055) !important; }
.crm-page table tbody tr { background: transparent !important; }
.crm-page table tbody tr:hover td { background: rgba(201,166,70,.035) !important; }

/* Leads: filters and dense data take priority over decoration. */
.crm-page-leads > div:nth-child(3) { padding: 13px !important; border-radius: 11px !important; background: var(--ui-surface) !important; }
.crm-page-leads .filter-temp-btn { padding: 6px 10px !important; border: 1px solid var(--ui-border) !important; border-radius: 8px !important; background: #111216 !important; }
.crm-page-leads .filter-temp-btn.active { border-color: rgba(201,166,70,.35) !important; background: rgba(201,166,70,.10) !important; color: #e8d48f !important; }
.leads-table-view { border-radius: 11px !important; box-shadow: none !important; }
.lead-row td { padding-top: 10px !important; padding-bottom: 10px !important; }

/* Pipeline: narrower columns and calmer cards improve scan speed. */
.crm-page-pipeline .kanban-column { width: 292px !important; border-radius: 12px !important; background: #111216 !important; }
.crm-page-pipeline .kanban-card { padding: 13px !important; border-radius: 10px !important; background: #18191d !important; box-shadow: none !important; }
.crm-page-pipeline #kanban-scroll-area { gap: 14px !important; }

/* Forms become sections, not oversized promotional cards. */
.crm-page-tasks > .glass,
.crm-page-settings .glass,
.crm-page-automations .glass { border-radius: 12px !important; padding: 18px !important; }
.crm-page-settings > .grid { gap: 14px !important; }
.crm-page-settings button,
.crm-page-tasks button,
.crm-page-automations button { border-radius: 9px !important; box-shadow: none !important; }

/* Reports: remove the marketing hero treatment inside an operational product. */
.crm-page-reports > div:first-child {
  padding: 20px 22px !important;
  border: 1px solid var(--ui-border) !important;
  border-radius: 12px !important;
  background: var(--ui-surface) !important;
  box-shadow: none !important;
}
.crm-page-reports > div:first-child > [class*="absolute"] { display: none !important; }
.crm-page-reports h1 { font-size: 26px !important; }

/* Calendar: distinguish month structure while keeping task colors semantic. */
.calendar-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.crm-page-calendar > .glass { padding: 12px !important; border-radius: 12px !important; }
.crm-page-calendar .grid-cols-7 > div { border-color: rgba(255,255,255,.055) !important; }

/* Dashboard: tighten top fold and reserve emphasis for work requiring action. */
.dashboard-premium { max-width: 1680px; }
.dashboard-premium > .grid:first-of-type { gap: 12px !important; }
.dashboard-action-card > h3 { margin-bottom: 15px !important; }
.dashboard-action-card > .space-y-4 > div { border-radius: 10px !important; background: #111216 !important; }

@media (max-width: 768px) {
  #master-impersonate-banner { padding-inline: 9px !important; }
  #master-impersonate-banner .font-bold { letter-spacing: .04em; }
  .calendar-page-heading { align-items: flex-start; flex-direction: column; }
  .crm-page h1 { font-size: 21px !important; }
}
