
:root {
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  background-color: #050505;
  color: #EAE7E0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

#root {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

input {
  font-family: inherit;
  outline: none;
  border: none;
}

/* Custom sleek scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
}
/* ========================================================
   GLASSY CRM DASHBOARD - PERFECTED DARK GLASSMORPHISM
   - Dedicated views for every sidebar icon with animated charts
   - Prominent left & right spacing for breathing room over 3D background
   - Pure dark glassmorphism (light mode removed as requested)
   - Zero-scroll 100vh fit on desktop
   - Luminous specular rim highlights & organic wavy reflections
   ======================================================== */

.app-viewport {
  position: relative;
  height: 100vh;
  max-height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Left and right generous spacing so the dashboard floats cleanly */
  padding: 18px 52px;
  box-sizing: border-box;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* 3D Faceted Background Layer using public/image.png */
.faceted-background-layer {
  position: fixed;
  inset: 0;
  background-image: url('/crm/crm_fundo.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: 0;
}

/* Crisp high-contrast ambient vignette */
.faceted-background-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.58) 100%);
  pointer-events: none;
}

/* Ambient glow spotlight behind glass */
.ambient-glass-spotlight {
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 25% 25%, rgba(198, 166, 103, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 75% 75%, rgba(198, 166, 103, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 50% 15%, rgba(198, 166, 103, 0.06) 0%, transparent 35%);
  pointer-events: none;
  z-index: 1;
}

/* ========================================================
   MASTER GLASS WINDOW CONTAINER
   ======================================================== */
.dashboard-glass-window {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1320px; /* Sized with elegant left/right margins */
  height: 100%;
  max-height: calc(100vh - 36px);
  border-radius: 28px;
  display: flex;
  overflow: hidden;
  box-sizing: border-box;
  margin: 0 auto;
  /* Dark translucent smoky glass with background shards visible */
  background: linear-gradient(145deg, 
    rgba(255, 255, 255, 0.08) 0%, 
    rgba(22, 22, 22, 0.28) 35%, 
    rgba(10, 10, 10, 0.40) 100%
  );
  backdrop-filter: blur(22px) saturate(175%) brightness(1.08);
  -webkit-backdrop-filter: blur(22px) saturate(175%) brightness(1.08);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-top-color: rgba(255, 255, 255, 0.48);
  border-left-color: rgba(255, 255, 255, 0.32);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  border-right-color: rgba(255, 255, 255, 0.16);
  box-shadow: 
    0 40px 100px -15px rgba(0, 0, 0, 0.9),
    0 15px 35px -5px rgba(0, 0, 0, 0.65),
    /* Luminous top rim highlight */
    inset 0 1.5px 2px 0 rgba(255, 255, 255, 0.75),
    inset 0 4px 14px 0 rgba(255, 255, 255, 0.18),
    /* Bottom 3D bevel depth */
    inset 0 -3px 12px 0 rgba(0, 0, 0, 0.65),
    inset 0 -1px 2px 0 rgba(0, 0, 0, 0.85);
  color: #EAE7E0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Smooth Entrance on Load */
.animate-window-entrance {
  animation: windowFadeInScale 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes windowFadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ========================================================
   SIDEBAR COMPONENT
   ======================================================== */
.sidebar-glass {
  width: 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 22px 12px 18px;
  flex-shrink: 0;
  transition: width 0.3s ease;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 10, 0.22);
  box-shadow: inset -1px 0 2px rgba(255, 255, 255, 0.06);
  box-sizing: border-box;
}

.sidebar-glass.sidebar-collapsed {
  width: 64px;
}

.sidebar-brand-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 20px;
}

.sidebar-logo-wrap {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 10px;
}

.sidebar-brand-icon {
  font-size: 26px !important;
  color: #EAE7E0;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.3));
  transition: transform 0.35s ease;
}

.sidebar-brand-row:hover .sidebar-brand-icon {
  transform: rotate(60deg);
}

.sidebar-collapse-toggle {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  opacity: 0.6;
  transition: all 0.2s ease;
  color: inherit;
  font-size: 13px;
}

.sidebar-collapse-toggle:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.15);
}

.chevron-indicator {
  transition: transform 0.2s ease;
}

.rotate-180 {
  transform: rotate(180deg);
}

/* Sidebar Nav Stack */
.sidebar-nav-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.sidebar-nav-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9b968c;
  font-size: 18px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-nav-btn:hover {
  color: #EAE7E0;
  transform: translateY(-1px);
}

/* Active Nav Button - Luminous Glass Pill */
.sidebar-nav-active {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 
    0 8px 20px -4px rgba(0, 0, 0, 0.6),
    inset 0 1px 1.5px rgba(255, 255, 255, 0.6),
    inset 0 -1px 2px rgba(0, 0, 0, 0.5);
}

.nav-active-pip {
  position: absolute;
  right: -6px;
  width: 3px;
  height: 15px;
  border-radius: 3px;
  background: #C6A667; /* Lime neon accent from Image 1 */
  box-shadow: 0 0 10px rgba(198, 166, 103, 0.9);
}

.sidebar-logout-btn {
  margin-top: auto;
}

.sidebar-logout-btn:hover {
  color: #f87171 !important;
}

/* ========================================================
   MAIN CONTENT WRAPPER & TAB TRANSITION
   ======================================================== */
.dashboard-main-content {
  flex: 1;
  padding: 18px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.tab-view-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
}

.tab-view-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-height: 0;
  width: 100%;
  animation: tabEntrance 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes tabEntrance {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.99);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ========================================================
   HEADER & GREETING
   ======================================================== */
.dashboard-header-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.header-left-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Glass Search pill */
.search-pill-container {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: 9999px;
  width: 240px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.35);
  color: #EAE7E0;
  transition: all 0.25s ease;
}

.search-pill-container:focus-within {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.15), inset 0 1px 1.5px rgba(255, 255, 255, 0.5);
  width: 270px;
}

.search-icon {
  opacity: 0.65;
  font-size: 15px;
  flex-shrink: 0;
}

.search-input {
  background: transparent;
  width: 100%;
  font-size: 13.5px;
  color: inherit;
}

.search-input::placeholder {
  opacity: 0.6;
  color: inherit;
}

/* Date badge pill (Today, Mon 22 Nov) */
.date-badge-pill {
  font-size: 13px;
  font-weight: 600;
  color: #E0C58B;
  text-shadow: 0 0 10px rgba(224, 197, 139, 0.4);
  padding: 2px 6px;
}

/* Header right group */
.header-right-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.relative-popover-wrap {
  position: relative;
}

.header-icon-circle-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.4);
  color: #EAE7E0;
  transition: all 0.22s ease;
}

.header-icon-circle-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.notification-dot {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  border: 1.5px solid #111111;
}

/* Avatar Wrap */
.avatar-wrap {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #8C6A32, #8C6A32);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.avatar-status-dot {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  border: 1.5px solid #111111;
}

/* Popover styles */
.glass-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 230px;
  border-radius: 16px;
  padding: 14px;
  z-index: 100;
  background: rgba(17, 17, 17, 0.94);
  backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
  color: #EAE7E0;
  animation: popoverFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popoverFadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.popover-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.65;
  margin-bottom: 8px;
}

.popover-item {
  font-size: 12.5px;
  padding: 5px 0;
  opacity: 0.85;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.notif-dot-unread {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #C6A667;
  margin-top: 4px;
  flex-shrink: 0;
}

.notif-msg {
  font-size: 12px;
  font-weight: 500;
}

.notif-time {
  font-size: 10px;
  opacity: 0.55;
}

/* ========================================================
   GREETING ROW
   ======================================================== */
.greeting-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
}

.greeting-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.greeting-wave {
  font-size: 22px;
  animation: waveArm 2.5s infinite;
  transform-origin: 70% 70%;
  display: inline-block;
}

@keyframes waveArm {
  0% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
  60% { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}

.greeting-subtitle {
  font-size: 13px;
  opacity: 0.7;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.greeting-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.period-dropdown-wrap {
  position: relative;
}

.period-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.35);
  color: #EAE7E0;
  transition: all 0.22s ease;
}

.period-dropdown-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.period-popover {
  top: calc(100% + 6px);
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 150px;
}

.period-option-btn {
  padding: 7px 10px;
  text-align: left;
  font-size: 12.5px;
  border-radius: 8px;
  color: inherit;
  transition: all 0.18s ease;
}

.period-option-btn:hover {
  background: rgba(198, 166, 103, 0.15);
  color: #C6A667;
}

.period-option-active {
  background: rgba(198, 166, 103, 0.25);
  color: #C6A667;
  font-weight: 700;
}

.calendar-btn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.35);
  color: #EAE7E0;
  transition: all 0.22s ease;
}

.calendar-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

/* ========================================================
   TRANSPARENT GLASS CARD FOUNDATION
   ======================================================== */
.glass-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-sizing: border-box;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.12) 0%, 
    rgba(26, 26, 26, 0.32) 35%, 
    rgba(13, 13, 13, 0.44) 100%
  );
  backdrop-filter: blur(18px) saturate(180%) brightness(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(180%) brightness(1.08);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-top-color: rgba(255, 255, 255, 0.48);
  border-left-color: rgba(255, 255, 255, 0.32);
  border-bottom-color: rgba(255, 255, 255, 0.10);
  border-right-color: rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 20px 45px -12px rgba(0, 0, 0, 0.8),
    0 8px 18px -4px rgba(0, 0, 0, 0.5),
    /* Luminous upper rim reflection */
    inset 0 1.5px 2px 0 rgba(255, 255, 255, 0.7),
    inset 0 4px 12px 0 rgba(255, 255, 255, 0.14),
    /* Inner bottom shadow */
    inset 0 -3px 10px 0 rgba(0, 0, 0, 0.55),
    inset 0 -1px 2px 0 rgba(0, 0, 0, 0.75);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Organic wavy diffuse lighting matching reference image */
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: 
    radial-gradient(ellipse at 25% 15%, rgba(255, 255, 255, 0.16) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 35%, rgba(255, 255, 255, 0.09) 0%, transparent 50%),
    radial-gradient(ellipse at 45% 85%, rgba(255, 255, 255, 0.05) 0%, transparent 40%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, transparent 50%, rgba(0, 0, 0, 0.25) 100%);
  pointer-events: none;
  mix-blend-mode: overlay;
}

.glass-card:hover {
  border-top-color: rgba(255, 255, 255, 0.65);
  border-left-color: rgba(255, 255, 255, 0.45);
  box-shadow: 
    0 24px 50px -10px rgba(0, 0, 0, 0.9),
    inset 0 1.8px 2.5px 0 rgba(255, 255, 255, 0.85),
    inset 0 4px 14px 0 rgba(255, 255, 255, 0.2),
    inset 0 -3px 10px 0 rgba(0, 0, 0, 0.55);
}

/* Staggered Card Entrance Animation */
@keyframes cardSlideUp {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-card-delay-1 { animation: cardSlideUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both; }
.animate-card-delay-2 { animation: cardSlideUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.14s both; }
.animate-card-delay-3 { animation: cardSlideUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.20s both; }
.animate-card-delay-4 { animation: cardSlideUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.26s both; }
.animate-card-delay-5 { animation: cardSlideUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both; }
.animate-card-delay-6 { animation: cardSlideUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.32s both; }
.animate-card-delay-7 { animation: cardSlideUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.38s both; }
.animate-card-delay-8 { animation: cardSlideUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.44s both; }

/* ========================================================
   TYPOGRAPHY & CONTENT REVEAL ANIMATIONS (ON LOAD & SHIFT)
   ======================================================== */
@keyframes greetingWipe {
  0% {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
}

@keyframes textRevealUp {
  0% {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
  }
}

@keyframes numberSlideUp {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.94);
    filter: blur(5px);
  }
  65% {
    opacity: 1;
    transform: translateY(-2px) scale(1.02);
    filter: blur(0px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
}

.animate-text-greeting {
  animation: greetingWipe 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-text-title {
  display: inline-block;
  animation: textRevealUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

.animate-text-subtitle {
  display: inline-block;
  animation: textRevealUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.14s both;
}

.animate-metric-num {
  display: inline-block;
  animation: numberSlideUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.16s both;
}

.animate-metric-badge {
  animation: textRevealUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both;
}

.animate-text-desc {
  animation: textRevealUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.26s both;
}

.animate-text-legend {
  animation: textRevealUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.30s both;
}

.animate-text-tick {
  animation: textRevealUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.20s both;
}

/* Card Header */
.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin-bottom: 2px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.card-subtitle {
  font-size: 11.5px;
  opacity: 0.6;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* Action button with diagonal arrow ↗ */
.icon-action-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.12);
  color: #EAE7E0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.45);
  transition: all 0.22s ease;
  flex-shrink: 0;
}

.icon-action-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
}

/* ========================================================
   TOP SECTION GRID: 2x2 METRICS + REVENUE CHART (FLEX-FIT)
   ======================================================== */
.dashboard-top-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 12px;
  flex: 1.15;
  min-height: 0;
}

/* 2x2 Metric Cards Grid */
.metric-cards-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  height: 100%;
}

.metric-card {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  height: 100%;
}

.metric-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.metric-title {
  font-size: 13.5px;
  font-weight: 600;
  opacity: 0.88;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.metric-card-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.metric-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.metric-main-value {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.4px;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* Metric Pill Badges */
.metric-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2.5px 7px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.metric-badge-up {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.35);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3);
  text-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

.metric-badge-down {
  background: rgba(248, 113, 113, 0.2);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.35);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.metric-subtext {
  font-size: 11px;
  opacity: 0.6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* TRANSLUCENT PURPLE GLASS: PRIMARY CARDS */
.metric-card-primary {
  background: linear-gradient(135deg, 
    rgba(198, 166, 103, 0.52) 0%, 
    rgba(140, 106, 50, 0.62) 100%
  ) !important;
  backdrop-filter: blur(20px) saturate(200%) brightness(1.12) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.36) !important;
  border-top-color: rgba(255, 255, 255, 0.65) !important;
  box-shadow: 
    0 20px 45px -10px rgba(140, 106, 50, 0.55),
    inset 0 1.5px 2px 0 rgba(255, 255, 255, 0.85),
    inset 0 4px 12px 0 rgba(255, 255, 255, 0.22),
    inset 0 -3px 8px 0 rgba(0, 0, 0, 0.4) !important;
}

.metric-card-primary .metric-title {
  color: rgba(255, 255, 255, 0.95);
}

.metric-card-primary .metric-subtext {
  color: rgba(255, 255, 255, 0.75);
}

.metric-card-primary .icon-action-btn-white {
  background: rgba(255, 255, 255, 0.95) !important;
  color: #8C6A32 !important;
  border: none !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2), inset 0 1px 1px #ffffff;
}

.metric-card-primary .metric-badge-up {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* ========================================================
   REVENUE & TIMELINE BAR CHART COMPONENT (ANIMATED)
   ======================================================== */
.revenue-chart-column {
  height: 100%;
  min-height: 0;
}

.revenue-card {
  padding: 16px 22px 14px;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.revenue-chart-container {
  display: flex;
  flex: 1;
  gap: 12px;
  min-height: 0;
  margin-top: 4px;
}

/* Y-Axis */
.revenue-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 20px;
  font-size: 10.5px;
  font-weight: 500;
  opacity: 0.6;
  text-align: right;
  min-width: 52px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

/* Plot Area */
.revenue-plot-area {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
}

/* Dotted horizontal grid lines */
.grid-lines-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.grid-dotted-line {
  width: 100%;
  height: 1px;
  border-bottom: 1.2px dashed rgba(255, 255, 255, 0.12);
}

/* Bars flex container */
.bars-flex-container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 100%;
  padding-bottom: 20px;
}

.bar-column {
  position: relative;
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  cursor: pointer;
}

.bar-track {
  width: 26px;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.bar-fill {
  width: 100%;
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(224, 197, 139, 0.95) 0%, rgba(140, 106, 50, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 4px 14px rgba(140, 106, 50, 0.5),
    inset 0 1px 1.5px rgba(255, 255, 255, 0.6);
  position: relative;
  overflow: hidden;
  transform-origin: bottom;
}

.bar-fill-active,
.bar-column:hover .bar-fill {
  background: #C6A667 !important;
  transform: scaleY(1.03);
  box-shadow: 0 0 20px rgba(198, 166, 103, 0.75), inset 0 1px 2px #ffffff !important;
}

.bar-gloss-sheen {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, transparent 100%);
  border-radius: 7px 7px 0 0;
}

/* X-Tick label */
.x-tick-label {
  position: absolute;
  bottom: 0;
  font-size: 10.5px;
  font-weight: 600;
  opacity: 0.6;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.x-tick-active,
.bar-column:hover .x-tick-label {
  opacity: 1;
  color: #C6A667;
  font-weight: 700;
}

/* Tooltip Badge with smooth bounce entrance */
.chart-tooltip-badge {
  position: absolute;
  transform: translateX(-50%);
  left: 50%;
  background: #ffffff;
  color: #0D0D0D;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 7px;
  box-shadow: 0 8px 18px -2px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  pointer-events: none;
  animation: tooltipBounce 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
  z-index: 10;
}

.tooltip-arrow {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #ffffff;
}

@keyframes tooltipBounce {
  0% { opacity: 0; transform: translate(-50%, 6px) scale(0.9); }
  60% { opacity: 1; transform: translate(-50%, -2px) scale(1.05); }
  100% { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

/* ========================================================
   BOTTOM ROW GRID: 3 CARDS LAYOUT
   ======================================================== */
.dashboard-bottom-grid {
  display: grid;
  grid-template-columns: 0.9fr 0.9fr 1.6fr;
  gap: 12px;
  flex: 0.95;
  min-height: 0;
}

/* Stat Summary Card Style */
.stat-summary-card {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  height: 100%;
}

.card-top-icon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.icon-circle-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.check-circle-badge,
.user-circle-badge {
  background: rgba(255, 255, 255, 0.14);
  color: #EAE7E0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.45);
}

.stat-bold-headline {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.stat-word {
  font-size: 18px;
  font-weight: 500;
  opacity: 0.85;
}

.stat-desc-text {
  font-size: 12px;
  opacity: 0.65;
  line-height: 1.35;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.accent-highlight-coral {
  color: #f87171;
  font-weight: 600;
}

.accent-highlight {
  color: #E0C58B;
  font-weight: 600;
}

/* CUSTOMERS WAITING CARD SPECIFICS */
.card-top-icon-row-with-wave {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
}

.wave-bg-container {
  position: absolute;
  right: -6px;
  top: -8px;
  width: 140px;
  height: 60px;
  pointer-events: none;
}

.wave-spline-graphic {
  width: 100%;
  height: 100%;
  animation: wavePulse 4s ease-in-out infinite alternate;
}

@keyframes wavePulse {
  0% { transform: translateY(0px); opacity: 0.85; }
  100% { transform: translateY(-2px); opacity: 1; }
}

.customers-action-anchor {
  position: absolute;
  top: 45%;
  right: 14px;
}

.icon-action-floating {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.32) !important;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4), inset 0 1px 1.5px rgba(255, 255, 255, 0.5) !important;
}

/* ========================================================
   SALES BY CATEGORY CARD & DONUT CHART (ANIMATED)
   ======================================================== */
.sales-category-card {
  padding: 16px 20px;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.sales-category-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 1;
  min-height: 0;
}

/* Donut Wrapper */
.donut-chart-wrapper {
  position: relative;
  width: 130px;
  height: 130px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.donut-chart-in {
  animation: donutPop 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

@keyframes donutPop {
  0% {
    transform: scale(0.85) rotate(-140deg);
    opacity: 0;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.donut-svg {
  transform: rotate(-90deg);
  overflow: visible;
}

.donut-segment {
  cursor: pointer;
}

/* Percentage badges overlay */
.donut-labels-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.donut-labels-in {
  animation: labelsFade 0.6s ease 0.7s both;
}

@keyframes labelsFade {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

.donut-badge {
  position: absolute;
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.donut-badge-tr { top: 24px; right: 20px; }
.donut-badge-tl { top: 24px; left: 22px; }
.donut-badge-bl { bottom: 24px; left: 22px; }
.donut-badge-b  { bottom: 10px; left: 54px; }
.donut-badge-br { bottom: 28px; right: 20px; }

/* Legend List */
.sales-legend-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.88;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 6px;
  transition: all 0.2s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.legend-item:hover,
.legend-item-active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

.legend-color-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.legend-hover-percent {
  font-weight: 700;
  font-size: 11px;
  opacity: 0.95;
}

/* Carrier Progress Bars (in Tasks view) */
.carrier-progress-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.carrier-progress-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.carrier-row-label {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 500;
  opacity: 0.85;
}

.carrier-progress-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.carrier-progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.fill-blue { background: #C6A667; box-shadow: 0 0 10px rgba(198, 166, 103, 0.6); }
.fill-purple { background: #E0C58B; box-shadow: 0 0 10px rgba(224, 197, 139, 0.6); }
.fill-green { background: #34d399; box-shadow: 0 0 10px rgba(52, 211, 153, 0.6); }

/* ========================================================
   CUSTOM UNIQUE CHART TYPES (CURVE, TWIN-BAR, CAPSULE, MATRIX)
   ======================================================== */

/* 1. Spline / Curved Area Chart */
.spline-chart-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.spline-svg {
  width: 100%;
  height: calc(100% - 20px);
  overflow: visible;
}

.spline-x-axis {
  display: flex;
  justify-content: space-between;
  padding: 0 14px;
  height: 20px;
}

.ping-circle {
  animation: pingDot 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes pingDot {
  0% { r: 7; opacity: 0.8; }
  100% { r: 16; opacity: 0; }
}

/* 2. Twin-Bar Comparison Chart */
.dual-chart-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
}

.legend-tag {
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0.85;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.dot-indigo { background: #C6A667; box-shadow: 0 0 6px #C6A667; }
.dot-cyan { background: #C6A667; box-shadow: 0 0 6px #C6A667; }
.dot-purple { background: #E0C58B; box-shadow: 0 0 6px #E0C58B; }
.dot-emerald { background: #34d399; box-shadow: 0 0 6px #34d399; }

.twin-bar-group {
  position: relative;
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  cursor: pointer;
}

.twin-bars-pair {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 100%;
  padding-bottom: 20px;
}

.twin-bar {
  width: 11px;
  border-radius: 5px;
  transform-origin: bottom;
  position: relative;
  transition: all 0.25s ease;
}

.in-bar {
  background: linear-gradient(180deg, #E0C58B 0%, #8C6A32 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.out-bar {
  background: linear-gradient(180deg, #C6A667 0%, #C6A667 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.twin-bar-group:hover .twin-bar {
  transform: scaleY(1.04);
}

.twin-bar-group:hover .in-bar {
  box-shadow: 0 0 14px rgba(198, 166, 103, 0.8);
}

.twin-bar-group:hover .out-bar {
  box-shadow: 0 0 14px rgba(198, 166, 103, 0.8);
}

/* 3. Concentric Activity Rings & Speedometer Gauge */
.concentric-rings-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.rings-svg {
  overflow: visible;
}

.gauge-wrap {
  position: relative;
  width: 120px;
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gauge-svg {
  overflow: visible;
}

.gauge-center-val {
  position: absolute;
  bottom: 8px;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(52, 211, 153, 0.5);
}

/* 4. Floating Capsule Chart */
.capsules-flex-container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  height: 100%;
  padding-bottom: 20px;
}

.capsule-column {
  position: relative;
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  cursor: pointer;
}

.capsule-track {
  position: relative;
  width: 38px;
  height: 100%;
  display: flex;
  justify-content: center;
}

.floating-capsule {
  position: absolute;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(198, 166, 103, 0.7) 0%, rgba(198, 166, 103, 0.5) 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 15px rgba(198, 166, 103, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.capsule-column:hover .floating-capsule {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(198, 166, 103, 0.75), inset 0 1px 2px #ffffff;
}

.capsule-target-marker {
  position: absolute;
  left: 50%;
  transform: translate(-50%, 50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #34d399;
  box-shadow: 0 0 10px #34d399;
}

/* 5. Warehouse Bay Matrix */
.warehouse-matrix-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  flex: 1;
  min-height: 0;
  margin-top: 6px;
}

.bay-matrix-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
  cursor: pointer;
}

.bay-matrix-row:hover,
.bay-row-active {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
}

.bay-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bay-name-text {
  font-size: 12.5px;
  font-weight: 600;
}

.bay-meta-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bay-units-text {
  font-size: 11.5px;
  opacity: 0.65;
}

.bay-status-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.bay-track-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.bay-fill-bar {
  height: 100%;
  border-radius: 999px;
  position: relative;
}

.bay-bar-gloss {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: rgba(255, 255, 255, 0.35);
}

/* ========================================================
   TAB 2: TASKS VIEW - 3-COLUMN ASYMMETRIC DISPATCH TERMINAL
   ======================================================== */
.tasks-layout-board {
  height: 100%;
}

.tasks-three-col-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.55fr 1.05fr;
  gap: 12px;
  flex: 1;
  min-height: 0;
  height: 100%;
}

/* Terminal Queue Card */
.terminal-queue-card {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 0;
  gap: 10px;
}

.live-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
}

.live-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulseDot 1.4s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.terminal-filter-pills {
  display: flex;
  gap: 6px;
}

.filter-pill-btn {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.filter-pill-active {
  background: rgba(198, 166, 103, 0.2) !important;
  border-color: rgba(198, 166, 103, 0.4) !important;
  color: #C6A667 !important;
}

.terminal-orders-stream {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.stream-order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.stream-order-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(2px);
}

.order-item-left {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.order-id-num {
  font-size: 11px;
  font-weight: 700;
  color: #C6A667;
}

.order-item-prod {
  font-size: 11.5px;
  font-weight: 500;
}

.order-cust-name {
  font-size: 10px;
  opacity: 0.55;
}

.order-status-pill {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.badge-blue {
  background: rgba(198, 166, 103, 0.16);
  border-color: rgba(198, 166, 103, 0.35);
  color: #C6A667;
}

.badge-purple {
  background: rgba(224, 197, 139, 0.16);
  border-color: rgba(224, 197, 139, 0.35);
  color: #E0C58B;
}

.badge-green {
  background: rgba(52, 211, 153, 0.16);
  border-color: rgba(52, 211, 153, 0.35);
  color: #34d399;
}

.badge-orange {
  background: rgba(224, 197, 139, 0.16);
  border-color: rgba(224, 197, 139, 0.35);
  color: #E0C58B;
}

.terminal-dispatch-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 8px;
  background: rgba(198, 166, 103, 0.18);
  border: 1px solid rgba(198, 166, 103, 0.35);
  color: #C6A667;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.terminal-dispatch-action-btn:hover {
  background: rgba(198, 166, 103, 0.28);
  color: #ffffff;
  border-color: rgba(198, 166, 103, 0.6);
}

/* Center Column */
.tasks-center-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  min-height: 0;
}

.tasks-hero-spline-card {
  padding: 14px 16px;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.spline-chart-canvas-wrap {
  display: flex;
  gap: 10px;
  flex: 1;
  min-height: 0;
  position: relative;
  padding-top: 8px;
}

.spline-y-ticks {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 10px;
  opacity: 0.5;
  font-weight: 500;
  padding-bottom: 20px;
}

.spline-svg-container {
  flex: 1;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.tasks-ribbon-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  flex: 0.32;
  min-height: 0;
}

.ribbon-stat-tile {
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
}

.ribbon-stat-label {
  font-size: 10px;
  opacity: 0.6;
}

.ribbon-stat-val {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.ribbon-stat-sub {
  font-size: 9.5px;
  font-weight: 600;
}

.text-green { color: #34d399; }
.text-blue { color: #C6A667; }

/* Right Column: Carrier Pipeline */
.carrier-pipeline-card {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 0;
  gap: 12px;
}

.carrier-pipeline-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  flex: 1;
  min-height: 0;
}

.warehouse-hubs-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hub-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}

.hub-dot-online {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px #34d399;
  margin-right: 6px;
  flex-shrink: 0;
}

.hub-name {
  flex: 1;
  opacity: 0.8;
  font-size: 11px;
}

.hub-load {
  font-weight: 600;
  color: #C6A667;
  font-size: 10.5px;
}

/* ========================================================
   TAB 3: APPS VIEW - 6-TILE INTERACTIVE APP GRID & TWIN-BAR
   ======================================================== */
.apps-layout-board {
  height: 100%;
}

.apps-tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 10px;
  flex: 1.15;
  min-height: 0;
}

.app-integration-tile {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  transition: all 0.25s ease;
}

.app-tile-disabled {
  opacity: 0.55;
  filter: grayscale(0.5);
}

.app-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-icon-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-toggle-switch {
  position: relative;
  width: 32px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  padding: 1.5px;
  transition: all 0.25s ease;
}

.toggle-on {
  background: rgba(34, 197, 94, 0.35);
  border-color: rgba(34, 197, 94, 0.6);
}

.toggle-off {
  background: rgba(155, 150, 140, 0.15);
  border-color: rgba(155, 150, 140, 0.3);
}

.toggle-thumb {
  display: block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.toggle-on .toggle-thumb {
  transform: translateX(14px);
  background: #4ade80;
}

.toggle-off .toggle-thumb {
  transform: translateX(0);
}

.app-tile-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.app-name-title {
  font-size: 13px;
  font-weight: 600;
}

.app-category-text {
  font-size: 10.5px;
  opacity: 0.6;
}

.app-tile-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
}

.app-status-text {
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0.85;
}

.status-ping-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.app-latency-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.apps-bottom-split-row {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 12px;
  flex: 1;
  min-height: 0;
}

.apps-traffic-card {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.telemetry-rings-card {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.telemetry-body-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 1;
  min-height: 0;
}

/* ========================================================
   TAB 4: CUSTOMERS VIEW - 2-COLUMN MASTER-DETAIL CRM
   ======================================================== */
.customers-layout-board {
  height: 100%;
}

.crm-master-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 12px;
  flex: 1;
  min-height: 0;
  height: 100%;
}

.crm-left-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  min-height: 0;
}

.crm-vip-spotlight-card {
  padding: 14px 16px;
  flex: 1.25;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
}

.vip-diamond-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(224, 197, 139, 0.25) 0%, rgba(198, 166, 103, 0.25) 100%);
  border: 1px solid rgba(224, 197, 139, 0.45);
  color: #EAE7E0;
}

.vip-verified-dot {
  font-size: 10.5px;
  color: #34d399;
  font-weight: 600;
}

.vip-profile-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vip-avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.vip-info-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vip-name {
  font-size: 14px;
  font-weight: 700;
}

.vip-email {
  font-size: 10.5px;
  opacity: 0.6;
}

.vip-orders-count {
  font-size: 10.5px;
  color: #C6A667;
  font-weight: 600;
}

.vip-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vip-tag {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0.85;
}

.vip-action-btns {
  display: flex;
  gap: 8px;
}

.vip-btn {
  flex: 1;
  padding: 7px 10px;
  font-size: 10.5px;
  font-weight: 600;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vip-btn-primary {
  background: rgba(198, 166, 103, 0.2);
  border: 1px solid rgba(198, 166, 103, 0.4);
  color: #C6A667;
}

.vip-btn-primary:hover {
  background: rgba(198, 166, 103, 0.35);
  color: #ffffff;
}

.vip-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
}

.vip-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.crm-quick-stats-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  flex: 0.55;
  min-height: 0;
}

.crm-stat-tile {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
}

.crm-stat-lbl {
  font-size: 10.5px;
  opacity: 0.65;
}

.crm-stat-val {
  font-size: 18px;
  font-weight: 700;
}

.crm-stat-sub {
  font-size: 9.5px;
  font-weight: 600;
}

.crm-right-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  min-height: 0;
}

.crm-growth-chart-card {
  padding: 14px 16px;
  flex: 1.35;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.crm-bottom-row {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 12px;
  flex: 0.95;
  min-height: 0;
}

.crm-gauge-card {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 0;
}

.crm-geo-card {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
}

/* ========================================================
   TAB 5: REPORTS VIEW - CFO FINANCIAL COCKPIT
   ======================================================== */
.reports-layout-board {
  height: 100%;
  gap: 10px;
}

.reports-banner-bar {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  flex: 0.85;
  min-height: 0;
}

.reports-banner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reports-banner-title-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.reports-cfo-tag {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #C6A667;
}

.reports-banner-heading {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.reports-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quarter-pill-selector {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.quarter-btn {
  padding: 3px 9px;
  font-size: 11px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  transition: all 0.2s ease;
}

.quarter-btn:hover {
  color: #ffffff;
}

.quarter-btn-active {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.reports-export-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 7px;
  background: rgba(198, 166, 103, 0.16);
  border: 1px solid rgba(198, 166, 103, 0.35);
  color: #C6A667;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reports-export-btn:hover {
  background: rgba(198, 166, 103, 0.28);
  color: #ffffff;
}

.reports-kpi-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.reports-kpi-cell {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.kpi-cell-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 12px;
}

.kpi-cell-label {
  font-size: 10.5px;
  opacity: 0.65;
}

.kpi-cell-val-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.kpi-cell-num {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.kpi-cell-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
}

.kpi-cell-footnote {
  font-size: 9.5px;
  opacity: 0.5;
}

.reports-split-row {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 10px;
  flex: 1.35;
  min-height: 0;
}

.reports-capsules-card {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.reports-pnl-card {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.pnl-ledger-stack {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  flex: 1;
  min-height: 0;
  margin-top: 4px;
}

.pnl-ledger-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 4px 6px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.pnl-row-highlight {
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.22);
}

.pnl-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pnl-row-title {
  font-size: 11.5px;
  opacity: 0.85;
}

.pnl-row-val {
  font-size: 12px;
  font-weight: 700;
}

.pnl-progress-track {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.pnl-progress-fill {
  height: 100%;
  border-radius: 999px;
}

.reports-compliance-strip {
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex: 0.42;
  min-height: 0;
}

.compliance-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.compliance-check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.18);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.compliance-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.compliance-name {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.9;
}

.compliance-status {
  font-size: 9.5px;
  font-weight: 700;
}

.status-verified {
  color: #34d399;
}

.status-optimal {
  color: #C6A667;
}

.compliance-divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.12);
}

/* ========================================================
   TAB 6: INVENTORY VIEW - WAREHOUSE COMMAND CENTER & REORDER DECK
   ======================================================== */
.inventory-layout-board {
  height: 100%;
  gap: 10px;
}

.inventory-top-split-row {
  display: grid;
  grid-template-columns: 1.2fr 1.35fr 0.95fr;
  gap: 10px;
  flex: 1.35;
  min-height: 0;
}

.inventory-bays-card {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.inventory-velocity-card {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.inventory-gauge-card {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.inventory-gauge-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  flex: 1;
  min-height: 0;
  gap: 8px;
}

.inventory-stat-pills {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}

.inv-stat-mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.inv-mini-label {
  opacity: 0.65;
}

.inv-mini-val {
  font-weight: 600;
}

.inventory-reorder-deck-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1.05;
  min-height: 0;
}

.reorder-deck-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.reorder-deck-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reorder-deck-title {
  font-size: 13px;
  font-weight: 700;
}

.reorder-count-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 1.5px 7px;
  border-radius: 999px;
  background: rgba(248, 113, 113, 0.16);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #f87171;
}

.reorder-deck-hint {
  font-size: 10.5px;
  opacity: 0.6;
}

.sku-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  flex: 1;
  min-height: 0;
}

.sku-card {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  gap: 4px;
}

.sku-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sku-id-tag {
  font-size: 10px;
  font-weight: 700;
  opacity: 0.65;
  letter-spacing: 0.5px;
}

.sku-status-pill {
  font-size: 9px;
  font-weight: 700;
  padding: 1.5px 6px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.sku-card-mid {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sku-product-name {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sku-category-tag {
  font-size: 10px;
  opacity: 0.6;
}

.sku-stock-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sku-stock-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
}

.sku-stock-count {
  font-weight: 700;
}

.sku-threshold-lbl {
  opacity: 0.6;
}

.sku-track-bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.sku-fill-bar {
  height: 100%;
  border-radius: 999px;
}

.sku-reorder-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 8px;
  font-size: 10.5px;
  font-weight: 600;
  border-radius: 6px;
  background: rgba(198, 166, 103, 0.15);
  border: 1px solid rgba(198, 166, 103, 0.3);
  color: #C6A667;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sku-reorder-action-btn:hover {
  background: rgba(198, 166, 103, 0.28);
  color: #ffffff;
}

.sku-reordered-done {
  background: rgba(52, 211, 153, 0.2) !important;
  border-color: rgba(52, 211, 153, 0.4) !important;
  color: #34d399 !important;
  cursor: default;
}

/* ========================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ======================================================== */
@media (max-width: 1180px) {
  .app-viewport {
    padding: 16px 20px;
  }
}

@media (max-height: 680px) {
  .app-viewport {
    height: auto;
    max-height: none;
    overflow-y: auto;
  }
  .dashboard-glass-window {
    height: auto;
    max-height: none;
  }
}

@media (max-width: 1040px) {
  .app-viewport {
    height: auto;
    max-height: none;
    overflow-y: auto;
    padding: 12px;
  }
  .dashboard-glass-window {
    height: auto;
    max-height: none;
    flex-direction: column;
  }
  .sidebar-glass {
    width: 100%;
    flex-direction: row;
    padding: 12px 18px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .sidebar-nav-stack {
    flex-direction: row;
  }
  .sidebar-brand-row {
    margin-bottom: 0;
  }
  .dashboard-top-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-bottom-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================================
   CRM VERTEX (11/11/2026): peças novas no mesmo vidro do template, paleta Vertex (ouro)
   ======================================================== */
.sidebar-glass.sidebar-aberta { width: 200px; align-items: stretch; }
.sidebar-aberta .sidebar-nav-btn { width: 100%; justify-content: flex-start; gap: 10px; padding: 0 12px; }
.nav-rotulo { font-size: 13px; font-weight: 600; white-space: nowrap; }
.sidebar-logo-img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.zap-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); }
.zap-dot { width: 8px; height: 8px; border-radius: 50%; background: #9b968c; }
.zap-ok .zap-dot { background: #22c55e; box-shadow: 0 0 6px #22c55e; }
.zap-erro .zap-dot { background: #f87171; box-shadow: 0 0 6px #f87171; }
.zap-espera .zap-dot { background: #E0C58B; }
.avatar-iniciais { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: linear-gradient(135deg, #E0C58B, #8C6A32); color: #050505; font-weight: 800; font-size: 13px; }
.abas-pill { display: flex; gap: 4px; flex-wrap: wrap; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); }
.abas-pill button { color: #EAE7E0; padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; opacity: 0.75; }
.abas-pill button:hover { opacity: 1; }
.abas-pill button.on { background: linear-gradient(135deg, #E0C58B, #C6A667); color: #050505; opacity: 1; }
.crm-moldura { flex: 1; width: 100%; min-height: 0; border: 0; border-radius: 22px; background: transparent; }
.aviso-card { padding: 22px; font-size: 14px; }
.entrar-viewport { display: flex; align-items: center; justify-content: center; }
.entrar-card { position: relative; z-index: 2; width: min(380px, calc(100vw - 32px)); padding: 30px 28px; display: flex; flex-direction: column; gap: 12px; }
.entrar-logo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.entrar-card label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 600; opacity: 0.85; }
.entrar-card input { padding: 11px 14px; border-radius: 12px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.14); color: #EAE7E0; font-size: 14px; }
.entrar-card input:focus { border-color: #C6A667; }
.entrar-erro { color: #f87171; font-size: 13px; }
.entrar-bt { margin-top: 6px; padding: 12px; border-radius: 12px; background: linear-gradient(135deg, #E0C58B, #C6A667); color: #050505; font-weight: 800; font-size: 14px; }
.entrar-bt:disabled { opacity: 0.6; }
.card-header .card-title { margin-right: 8px; display: inline; }
