
.fade-table-enter-active[data-v-41eb6216], .fade-table-leave-active[data-v-41eb6216] {
  transition: opacity 0.4s cubic-bezier(.4,0,.2,1);
}
.fade-table-enter[data-v-41eb6216], .fade-table-leave-to[data-v-41eb6216] {
  opacity: 0;
}
.margin-x-dashboard[data-v-41eb6216] {
    margin: 0 28px 0 28px;
}
@media(max-width: 1650px) {
.margin-x-dashboard[data-v-41eb6216] {
        margin: 0 70px 0 70px;
}
}
@media(max-width: 1300px) {
.margin-x-dashboard[data-v-41eb6216] {
        margin: 0 20px 0 20px;
}
}
@media(max-width: 1190px) {
.margin-x-dashboard[data-v-41eb6216] {
        margin: 0 10px 0 10px;
}
}
.tickets-section[data-v-41eb6216] {
  padding: 0;
  /*font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;*/
}

/* ===================================================================
   Dashboard (Home): tabela embutida no card .real-time-section.
   Sem margens laterais (o card já enquadra) e card interno achatado
   pra não virar "card dentro de card" colado/desalinhado.
   =================================================================== */
.tickets-section--embedded[data-v-41eb6216] {
  margin: 0;
}

/* Achata o card interno do ListViewDefault: sem borda, sem raio e sem
   sombra, pra ele continuar a superfície do card externo em vez de
   desenhar uma segunda moldura por dentro. */
.tickets-section--embedded[data-v-41eb6216] .lvd {
  gap: 0;
}
.tickets-section--embedded[data-v-41eb6216] .lvd__card {
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

/* Só as bordas externas alinham com o padding do header do card externo
   (.real-time-header usa 24px). As colunas internas mantêm o padding
   padrão (16px) pra não inflar a largura e gerar overflow horizontal. */
.tickets-section--embedded[data-v-41eb6216] .lvd__cell:first-child,
.tickets-section--embedded[data-v-41eb6216] .lvd__cell--header:first-child {
  padding-left: 24px;
}
.tickets-section--embedded[data-v-41eb6216] .lvd__row > .lvd__cell:last-child,
.tickets-section--embedded[data-v-41eb6216] .lvd__row--header .lvd__cell--header:last-child {
  padding-right: 24px;
}

/* Linha do header encosta na borda inferior do header do card externo,
   sem dupla divisória no topo. */
.tickets-section--embedded[data-v-41eb6216] .lvd__header-wrapper {
  border-top: none;
}

/* Empty state respira melhor dentro do card. */
.tickets-section--embedded[data-v-41eb6216] .lvd__empty {
  padding: 56px 24px;
}
@media (max-width: 768px) {
.tickets-section--embedded[data-v-41eb6216] .lvd__cell:first-child,
  .tickets-section--embedded[data-v-41eb6216] .lvd__cell--header:first-child {
    padding-left: 16px;
}
.tickets-section--embedded[data-v-41eb6216] .lvd__row > .lvd__cell:last-child,
  .tickets-section--embedded[data-v-41eb6216] .lvd__row--header .lvd__cell--header:last-child {
    padding-right: 16px;
}
}

/* Loading State */
.loading-container[data-v-41eb6216] {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}
.loading-spinner[data-v-41eb6216] {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.spinner[data-v-41eb6216] {
  width: 32px;
  height: 32px;
  border: 3px solid #f1f5f9;
  border-top: 3px solid #3b82f6;
  border-radius: 50%;
  animation: spin-41eb6216 1s linear infinite;
}
@keyframes spin-41eb6216 {
0% { transform: rotate(0deg);
}
100% { transform: rotate(360deg);
}
}
.loading-text[data-v-41eb6216] {
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}

/* Cell Content Styles for ListViewDefault */
.cell-content-flex[data-v-41eb6216] {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  position: relative;
}
.cell-content-flex[data-v-41eb6216] > * {
  min-width: 0;
  max-width: 100%;
  flex-shrink: 1;
}
.cell-content-flex-center[data-v-41eb6216] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  position: relative;
}
.cell-icon[data-v-41eb6216] {
  color: #64748b;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.text-orange-500[data-v-41eb6216] {
  color: #f97316;
}

/* User Avatar */
.user-avatar[data-v-41eb6216] {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}
.agent-avatar[data-v-41eb6216] {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

/* Text Styles */
.primary-text[data-v-41eb6216] {
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  max-width: 100%;
  flex-shrink: 1;
}
.secondary-text[data-v-41eb6216] {
  font-size: 13px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  max-width: 100%;
  flex-shrink: 1;
}
.text-gray-400[data-v-41eb6216] {
  color: #9ca3af;
}

/* Protocol Badge */
.protocol-badge[data-v-41eb6216] {
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  /*font-family: 'Monaco', 'Menlo', monospace;*/
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: inline-block;
}
.protocol-badge[data-v-41eb6216]:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

/* Status Badges */
.status-badge[data-v-41eb6216] {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  flex-shrink: 1;
}
.status-success[data-v-41eb6216] {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.status-warning[data-v-41eb6216] {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}
.status-danger[data-v-41eb6216] {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.status-primary[data-v-41eb6216] {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}
.status-secondary[data-v-41eb6216] {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}
.status-info[data-v-41eb6216] {
  background: #e0e7ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
}

/* Motive Badge */
.motive-badge[data-v-41eb6216] {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.motive-resolved[data-v-41eb6216] {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.motive-unresolved[data-v-41eb6216] {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

/* Rating Stars */
.rating-stars[data-v-41eb6216] {
  display: flex;
  gap: 2px;
}
.rating-text[data-v-41eb6216] {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

/* Pagination */
.pagination-container[data-v-41eb6216] {
  display: flex;
  justify-content: center;
  padding: 24px 0;
}
.pagination-component[data-v-41eb6216] {
  padding: 8px 0;
}

/* Responsive */
@media (max-width: 768px) {
.loading-container[data-v-41eb6216] {
    padding: 48px 16px;
}
.user-avatar[data-v-41eb6216] {
    width: 28px;
    height: 28px;
}
.agent-avatar[data-v-41eb6216] {
    width: 20px;
    height: 20px;
}
}
/* ===================================
   RESET E BASE
   =================================== */
/* * {
  box-sizing: border-box;
} */
.fade-table-enter-active[data-v-c0e0e01a], .fade-table-leave-active[data-v-c0e0e01a] {
  transition: opacity 0.4s cubic-bezier(.4,0,.2,1);
}
.fade-table-enter[data-v-c0e0e01a], .fade-table-leave-to[data-v-c0e0e01a] {
  opacity: 0;
}
.dashboard[data-v-c0e0e01a] {
  /* max-width: 1400px; */
  padding: 12px;
  min-height: 100vh;
  border-radius: 12px;
  background-color: #f8fafc;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  container-type: inline-size;
  container-name: dashboard;
}
.help-badge[data-v-c0e0e01a] {
  position: absolute;
  right: 10px;
  bottom: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #eef2ff;
  color: #1e293b;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  cursor: default;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  outline: none;
}


/* ===================================
   HEADER E NAVEGAÇÃO
   =================================== */
.select-option.disabled[data-v-c0e0e01a] {
  color: #bbb;
  pointer-events: none;
  cursor: not-allowed;
}
.header[data-v-c0e0e01a] {
  padding: 2rem 1.5rem;
  border-radius: 12px;
  position: relative;
  overflow: visible;
}
.header-content[data-v-c0e0e01a] {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: 100%;
  position: relative;
  overflow: visible;
}

/* Titulo + badge de periodo agrupados a esquerda */
.header-title-wrap[data-v-c0e0e01a] {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
}
.header-title[data-v-c0e0e01a] {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
  color: #1e293b;
  letter-spacing: -0.025em;
  text-align: left;
}

/* Badge de periodo (Mês/Hoje/Semana) ao lado do titulo */
.period-badge[data-v-c0e0e01a] {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  background: #eff6ff;
  color: #1877f2;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.dev-overlay[data-v-c0e0e01a] {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px; /* ou ajuste conforme seu layout */
  width: 100%;
  background: none;
  position: static;
  box-shadow: none;
  z-index: 1;
}
.dev-overlay-content[data-v-c0e0e01a] {
  text-align: center;
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  padding: 3rem 2.5rem;
  border: 1px solid #e5e7eb;
}










/* ===================================
   FILTROS E CONTROLES
   =================================== */
.header-filters[data-v-c0e0e01a] {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.875rem;
}
.header-filters .filter-group[data-v-c0e0e01a] {
  min-width: 190px;
}

/* O filtro de periodo (date range) precisa de mais largura pro "dd/mm - dd/mm" */
.header-filters .filter-group--period[data-v-c0e0e01a] {
  min-width: 232px;
}
.filter-group[data-v-c0e0e01a] {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}
.filter-label-container[data-v-c0e0e01a] {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  justify-content: flex-start;
  padding-left: 0.125rem;
}
.filter-icon[data-v-c0e0e01a] {
  width: 0.875rem;
  height: 0.875rem;
  color: #94a3b8;
  flex-shrink: 0;
}

/* Label discreto acima do controle — uppercase suave, tom muted (estilo premium) */
.filter-label[data-v-c0e0e01a] {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}

/* Garante que ComboBox e DatePicker preencham a largura do grupo */
.filter-group .filter-control[data-v-c0e0e01a] {
  width: 100%;
}

/* ===================================
   HELPER TOOLTIP
   =================================== */
/* Hide help badge by default; show when hovering the card */
.help-badge[data-v-c0e0e01a] {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  color: #64748b;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 600;
  cursor: help;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;

  /* start hidden */
  opacity: 0;
  visibility: hidden;
  transform: scale(0.96);
  pointer-events: none;
}
.metric-card:hover .help-badge[data-v-c0e0e01a] {
  /* show when hovering the entire card */
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
}
.help-badge[data-v-c0e0e01a]:hover {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-color: #cbd5e1;
  color: #475569;
  transform: scale(1.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.help-badge[data-v-c0e0e01a]:focus {
  outline: none;
  box-shadow: 0 0 0 2px #3b82f6, 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* keep tooltip styles (unchanged) */
.help-tooltip[data-v-c0e0e01a] {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  max-width: 280px;
  background: #ffffff;
  color: #374151;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.01em;
  border: 1px solid #e5e7eb;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.02),
    0 4px 6px -1px rgba(0, 0, 0, 0.08),
    0 10px 15px -3px rgba(0, 0, 0, 0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px) scale(0.96);
  pointer-events: none;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 50;
}
.help-badge:hover .help-tooltip[data-v-c0e0e01a],
.help-badge:focus .help-tooltip[data-v-c0e0e01a] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* ===================================
   MÉTRICAS E CARDS
   =================================== */
.metrics-grid[data-v-c0e0e01a] {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.5rem;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Receita Gerada e sempre o ultimo card: estica da sua coluna ate o fim da
   linha, preenchendo o espaco que sobra (some o card de Agentes p/ operador
   comum -> a Receita ocupa mais; ninguem fica com coluna vazia). */
.metrics-grid .revenue-card[data-v-c0e0e01a] {
  grid-column: auto / -1;
}
.metric-card[data-v-c0e0e01a] {
  position: relative;
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  transition: all 0.2s ease;
  overflow: visible;
  min-width: 0;
  /* Altura minima compartilhada com .status-card pra que as duas linhas de
     cards (Metricas em cima, Status embaixo) fiquem alinhadas, mesmo com
     quantidades diferentes de texto. Conteudo fica ancorado no topo. */
  min-height: 11.5rem;
}
.metric-card[data-v-c0e0e01a]:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}
.metric-header[data-v-c0e0e01a] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.metric-title[data-v-c0e0e01a] {
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
}
.metric-icon[data-v-c0e0e01a] {
  width: 1rem;
  height: 1rem;
  color: #64748b;
}
.metric-value[data-v-c0e0e01a] {
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}
.metric-description[data-v-c0e0e01a] {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0 0 0.75rem 0;
}
.metric-trend[data-v-c0e0e01a] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.metric-trend.positive .trend-text[data-v-c0e0e01a] {
  color: #059669;
}
.metric-trend.negative .trend-text[data-v-c0e0e01a] {
  color: #dc2626;
}
.trend-icon[data-v-c0e0e01a] {
  width: 0.75rem;
  height: 0.75rem;
}
.metric-trend.positive .trend-icon[data-v-c0e0e01a] {
  color: #059669;
}
.metric-trend.negative .trend-icon[data-v-c0e0e01a] {
  color: #dc2626;
  transform: rotate(180deg);
}
.trend-text[data-v-c0e0e01a] {
  font-size: 0.75rem;
  font-weight: 500;
}
.metric-badge .badge[data-v-c0e0e01a] {
  background: #f1f5f9;
  color: #475569;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
}
.rating-container[data-v-c0e0e01a] {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.stars[data-v-c0e0e01a] {
  display: flex;
}
.star-wrapper[data-v-c0e0e01a] {
  position: relative;
  display: inline-flex;
  width: 0.75rem;
  height: 0.75rem;
}
.star-icon[data-v-c0e0e01a] {
  width: 0.75rem;
  height: 0.75rem;
  color: #d1d5db;
}

/* Overlay amarelo sobreposto à estrela cinza base */
.star-icon-overlay[data-v-c0e0e01a] {
  position: absolute;
  top: 0;
  left: 0;
  color: #fbbf24;
  fill: #fbbf24;
}
.star-icon.filled[data-v-c0e0e01a] {
  color: #fbbf24;
  fill: #fbbf24;
}

/* Meia estrela: corta a metade direita do overlay, mostrando a cinza de baixo */
.star-icon.half-filled[data-v-c0e0e01a] {
  clip-path: inset(0 50% 0 0);
}
.rating-count[data-v-c0e0e01a] {
  font-size: 0.75rem;
  color: #6b7280;
}

/* ===================================
   GRÁFICOS - LAYOUT GERAL
   =================================== */
.charts-grid[data-v-c0e0e01a] {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1.5rem;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Variante de coluna unica: usada quando o Chart de Mensagens esta
   desativado e so a Discriminacao de Conversas e exibida (ocupa a largura
   toda). Remover esta classe do wrapper se o Chart de Mensagens voltar. */
.charts-grid--single[data-v-c0e0e01a] {
  grid-template-columns: 1fr;
}
.chart-messages[data-v-c0e0e01a] {
  min-height: 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(148, 163, 184, 0.1);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
}
.chart-card[data-v-c0e0e01a] {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  min-width: 0;
  overflow: hidden;
}
.chart-header[data-v-c0e0e01a] {
  margin-bottom: 1.25rem;
}
.chart-title[data-v-c0e0e01a] {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.chart-title-icon[data-v-c0e0e01a] {
  width: 1.25rem;
  height: 1.25rem;
  color: #64748b;
}
.chart-description[data-v-c0e0e01a] {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}
.chart-content[data-v-c0e0e01a] {
  position: relative;
}
.chart-canvas[data-v-c0e0e01a] {
  height: 300px !important;
}
/* ===================================
   GRÁFICO DE MENSAGENS - CANVAS META STYLE
   =================================== */
.chart-header-meta[data-v-c0e0e01a] {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e4e6ea;
}
.chart-title-section[data-v-c0e0e01a] {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.chart-title-meta[data-v-c0e0e01a] {
  font-size: 16px;
  font-weight: 600;
  color: #1c1e21;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chart-title-icon[data-v-c0e0e01a] {
  width: 16px;
  height: 16px;
  color: #65676b;
}
.chart-subtitle[data-v-c0e0e01a] {
  font-size: 12px;
  color: #65676b;
  margin: 0;
  font-weight: 400;
}
.total-display[data-v-c0e0e01a] {
  font-size: 32px;
  font-weight: 700;
  color: #1c1e21;
  line-height: 1;
}
.chart-header-stylish[data-v-c0e0e01a] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  padding: 24px 28px;
  background: linear-gradient(135deg, #fdfdfe 0%, #f8fafc 50%, #f1f5f9 100%);
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.06);
  box-shadow:
    0 1px 3px rgba(15, 23, 42, 0.04),
    0 1px 2px rgba(15, 23, 42, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}
.chart-header-stylish[data-v-c0e0e01a]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}
.chart-identity[data-v-c0e0e01a] {
  display: flex;
  align-items: center;
  gap: 14px;
}
.chart-badge[data-v-c0e0e01a] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.07), 0 1.5px 4px rgba(15, 23, 42, 0.04);
  border: 1px solid #f1f5f9;
  position: relative;
  transition: box-shadow 0.2s;
}
.chart-badge[data-v-c0e0e01a]::before {
  display: none;
}
.badge-icon[data-v-c0e0e01a] {
  width: 20px;
  height: 20px;
  color: #3b82f6;
  filter: none;
  position: relative;
  z-index: 1;
  transition: color 0.2s;
}
.chart-meta[data-v-c0e0e01a] {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.chart-title-stylish[data-v-c0e0e01a] {
  font-size: 17px;
  font-weight: 650;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.chart-period-tag[data-v-c0e0e01a] {
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.08em;
  opacity: 0.85;
}
.metric-highlight[data-v-c0e0e01a] {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.metric-label[data-v-c0e0e01a] {
  font-size: 8px;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0.8;
}
.metric-value-stylish[data-v-c0e0e01a] {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  line-height: 0.9;
  background: linear-gradient(135deg, #0f172a 0%, #334155 50%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.1));
  letter-spacing: -0.03em;
}
.chart-legend-mini[data-v-c0e0e01a] {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}
.legend-item-mini[data-v-c0e0e01a] {
  display: flex;
  align-items: center;
  gap: 4px;
}
.legend-dot[data-v-c0e0e01a] {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.legend-text[data-v-c0e0e01a] {
  font-size: 10px;
  color: #64748b;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Responsividade */
@media (max-width: 768px) {
.chart-legend-mini[data-v-c0e0e01a] {
    gap: 8px;
}
.legend-text[data-v-c0e0e01a] {
    font-size: 8px;
}
.legend-dot[data-v-c0e0e01a] {
    width: 5px;
    height: 5px;
}
}
@media (max-width: 480px) {
.chart-legend-mini[data-v-c0e0e01a] {
    flex-direction: column;
    gap: 2px;
    margin-top: 2px;
}
}
/* Responsividade refinada */
@media (max-width: 768px) {
.chart-header-stylish[data-v-c0e0e01a] {
    padding: 20px 22px;
    margin-bottom: 22px;
    border-radius: 14px;
}
.chart-badge[data-v-c0e0e01a] {
    width: 38px;
    height: 38px;
    border-radius: 10px;
}
.chart-badge[data-v-c0e0e01a]::before {
    border-radius: 9px;
}
.badge-icon[data-v-c0e0e01a] {
    width: 17px;
    height: 17px;
}
.chart-title-stylish[data-v-c0e0e01a] {
    font-size: 15px;
    font-weight: 600;
}
.chart-period-tag[data-v-c0e0e01a] {
    font-size: 9px;
}
.metric-value-stylish[data-v-c0e0e01a] {
    font-size: 26px;
}
.chart-identity[data-v-c0e0e01a] {
    gap: 12px;
}
}
@media (max-width: 480px) {
.chart-header-stylish[data-v-c0e0e01a] {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    text-align: left;
    padding: 18px 20px;
    border-radius: 12px;
}
.metric-highlight[data-v-c0e0e01a] {
    align-items: flex-start;
    width: 100%;
}
.metric-value-stylish[data-v-c0e0e01a] {
    font-size: 25px;
    font-weight: 900;
}
.metric-label[data-v-c0e0e01a] {
    font-size: 8px;
}
.chart-title-stylish[data-v-c0e0e01a] {
    font-size: 16px;
}
}


/* Canvas Chart Container */
.canvas-chart-container[data-v-c0e0e01a] {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.messages-canvas[data-v-c0e0e01a] {
  width: 100%;
  height: 420px; /* Increased height */
  border-radius: 4px;
  cursor: default;
}

/* Canvas Tooltip Styles - Positioned closer to bars */
.canvas-tooltip[data-v-c0e0e01a] {
  position: absolute;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 12px;
  pointer-events: none;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-width: 200px;
  min-width: 140px;
 transform: translateX(12px);
}
.tooltip-content[data-v-c0e0e01a] {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tooltip-date[data-v-c0e0e01a] {
  font-weight: 600;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 6px;
  text-align: center;
}
.tooltip-values[data-v-c0e0e01a] {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tooltip-item[data-v-c0e0e01a] {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.tooltip-color[data-v-c0e0e01a] {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}
.tooltip-item.received .tooltip-color[data-v-c0e0e01a] {
  background-color: #1877f2;
}
.tooltip-item.sent .tooltip-color[data-v-c0e0e01a] {
  background-color: #42a5f5;
}

/* Chart Legend */
.chart-legend[data-v-c0e0e01a] {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding-top: 16px;
  border-top: 1px solid #e4e6ea;
}
.legend-item[data-v-c0e0e01a] {
  display: flex;
  align-items: center;
  gap: 8px;
}
.legend-color[data-v-c0e0e01a] {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}
.received-color[data-v-c0e0e01a] {
  background-color: #1877f2;
}
.sent-color[data-v-c0e0e01a] {
  background-color: #42a5f5;
}
.legend-label[data-v-c0e0e01a] {
  font-size: 14px;
  color: #1c1e21;
  font-weight: 500;
}
.legend-percentage[data-v-c0e0e01a] {
  font-size: 14px;
  color: #65676b;
  font-weight: 600;
}

/* ===================================
   ESTATÍSTICAS DAS MENSAGENS
   =================================== */
.messages-stats[data-v-c0e0e01a] {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
}
.total-messages[data-v-c0e0e01a] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}
.total-label[data-v-c0e0e01a] {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}
.total-value[data-v-c0e0e01a] {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}
.messages-breakdown[data-v-c0e0e01a] {
  display: flex;
  gap: 1.5rem;
}
.message-stat[data-v-c0e0e01a] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.stat-indicator[data-v-c0e0e01a] {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}
.message-stat.received .stat-indicator[data-v-c0e0e01a] {
  background: #3b82f6;
}
.message-stat.sent .stat-indicator[data-v-c0e0e01a] {
  background: #10b981;
}
.stat-label[data-v-c0e0e01a] {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}
.stat-value[data-v-c0e0e01a] {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
}

/* ===================================
   RESPONSIVIDADE PARA CANVAS
   =================================== */
@media (max-width: 768px) {
.chart-header-meta[data-v-c0e0e01a] {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}
.total-display[data-v-c0e0e01a] {
    font-size: 28px;
}
.messages-canvas[data-v-c0e0e01a] {
    height: 350px; /* Reduced height for mobile */
}
.chart-legend[data-v-c0e0e01a] {
    flex-direction: column;
    gap: 12px;
    align-items: center;
}
.canvas-tooltip[data-v-c0e0e01a] {
    font-size: 11px;
    padding: 10px 12px;
    max-width: 160px;
}
}
@media (max-width: 480px) {
.total-display[data-v-c0e0e01a] {
    font-size: 24px;
}
.chart-title-meta[data-v-c0e0e01a] {
    font-size: 14px;
}
.chart-subtitle[data-v-c0e0e01a] {
    font-size: 11px;
}
.messages-canvas[data-v-c0e0e01a] {
    height: 300px; /* Further reduced for small screens */
}
.canvas-tooltip[data-v-c0e0e01a] {
    font-size: 10px;
    padding: 8px 10px;
    max-width: 140px;
}
.tooltip-date[data-v-c0e0e01a] {
    font-size: 11px;
}
.tooltip-item[data-v-c0e0e01a] {
    font-size: 10px;
}
}
/* ===================================
   GRÁFICO DE DISCRIMINAÇÃO MODERNO
   =================================== */
.chart-header-modern[data-v-c0e0e01a] {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}
.chart-title-modern[data-v-c0e0e01a] {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.025em;
}
.chart-period[data-v-c0e0e01a] {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
  font-weight: 400;
}
.chart-stats-inline[data-v-c0e0e01a] {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.stat-pill[data-v-c0e0e01a] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
}
.stat-pill.empresa[data-v-c0e0e01a] {
  background: rgba(99, 102, 241, 0.08);
  color: #4338ca;
  border: 1px solid rgba(99, 102, 241, 0.15);
}
.stat-pill.cliente[data-v-c0e0e01a] {
  background: rgba(16, 185, 129, 0.08);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.15);
}
.stat-pill.novos-contatos[data-v-c0e0e01a] {
  background: rgba(245, 158, 11, 0.08);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.15);
}
.stat-dot[data-v-c0e0e01a] {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.stat-pill.empresa .stat-dot[data-v-c0e0e01a] {
  background: #6366f1;
}
.stat-pill.cliente .stat-dot[data-v-c0e0e01a] {
  background: #10b981;
}
.stat-pill.novos-contatos .stat-dot[data-v-c0e0e01a] {
  background: #f59e0b;
}
.stat-text[data-v-c0e0e01a] {
  white-space: nowrap;
}
.chart-content-modern[data-v-c0e0e01a] {
  position: relative;
  height: 405px;
  padding: 0 0.5rem;
}
.chart-canvas-modern[data-v-c0e0e01a] {
  height: 100% !important;
  width: 100% !important;
}

/* ===================================
   STATUS CARDS
   =================================== */
.status-update-bar[data-v-c0e0e01a] {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 1.5rem 0;
  justify-content: flex-end;
}
.status-update-icon[data-v-c0e0e01a] {
  width: 13px;
  height: 13px;
  color: #94a3b8;
}
.status-update-icon.animate-spin[data-v-c0e0e01a] {
  animation: spin-c0e0e01a 1s linear infinite;
}
@keyframes spin-c0e0e01a {
from { transform: rotate(0deg);
}
to { transform: rotate(360deg);
}
}
.status-update-text[data-v-c0e0e01a] {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 400;
}
.status-grid[data-v-c0e0e01a] {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  padding: 1.5rem;
}

/* Operador comum nao ve o card de FCR aqui (ele sobe pra linha de Metricas),
   entao sobram 4 cards de status. Em 5 colunas isso deixaria a 5a coluna vazia
   -> reduz pra 4 colunas pra preencher a linha. Os breakpoints menores (3/2/1
   coluna) ja reflowam os 4 cards sem buraco, nao precisam de ajuste. */
.status-grid--operator[data-v-c0e0e01a] {
  grid-template-columns: repeat(4, 1fr);
}
.status-card[data-v-c0e0e01a] {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  border-left: 4px solid transparent;
  transition: all 0.2s ease;
  min-width: 0;
  /* Mesma altura minima do .metric-card pra alinhar as duas linhas de cards. */
  min-height: 11.5rem;
}
.status-card[data-v-c0e0e01a]:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}
.status-header[data-v-c0e0e01a] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.status-title[data-v-c0e0e01a] {
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
}
.status-icon[data-v-c0e0e01a] {
  width: 1rem;
  height: 1rem;
  opacity: 0.7;
}
.status-value[data-v-c0e0e01a] {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}
/* Borda com cores correspondentes */
.status-card.success[data-v-c0e0e01a] {
  border-left-color: #10b981;
}
.status-card.warning[data-v-c0e0e01a] {
  border-left-color: #f59e0b;
}
.status-card.neutral[data-v-c0e0e01a] {
  border-left-color: #b71c1c;
}
.status-card.info[data-v-c0e0e01a] {
  border-left-color: #3b82f6;
}
.status-card.active[data-v-c0e0e01a] {
  border-left-color: #374151;
}
.status-card.success .status-value[data-v-c0e0e01a] {
  color: #059669;
}
.status-card.success .status-icon[data-v-c0e0e01a] {
  color: #10b981;
}
.status-card.active .status-value[data-v-c0e0e01a] {
  color: #374151;
}
.status-card.active .status-icon[data-v-c0e0e01a] {
  color: #4b5563;
}
.status-card.warning .status-value[data-v-c0e0e01a] {
  color: #d97706;
}
.status-card.warning .status-icon[data-v-c0e0e01a] {
  color: #f59e0b;
}
.status-card.neutral .status-value[data-v-c0e0e01a] {
  color: #c04141;
}
.status-card.neutral .status-icon[data-v-c0e0e01a] {
  color: #b71c1c;
}
.status-card.info .status-value[data-v-c0e0e01a] {
  color: #2563eb;
}
.status-card.info .status-icon[data-v-c0e0e01a] {
  color: #3b82f6;
}
.status-description[data-v-c0e0e01a] {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
}

/* ===================================
   RESPONSIVIDADE POR CONTAINER
   Reage ao espaço real do .dashboard
   (sidebar aberta/fechada), não à viewport.
   Deve vir DEPOIS das definições base de
   .metrics-grid e .status-grid para sobrescrever
   corretamente grid-template-columns/padding.
   =================================== */

/* Faixa folgada: 4 cols com padding/gap reduzidos */
@container dashboard (max-width: 1100px) {
.metrics-grid[data-v-c0e0e01a],
  .status-grid[data-v-c0e0e01a] {
    gap: 0.75rem;
    padding: 1rem;
}
.metrics-grid .metric-card[data-v-c0e0e01a],
  .status-grid .status-card[data-v-c0e0e01a] {
    padding: 1rem;
    /* Padding/fonte menores aqui -> reduz a altura minima na mesma proporcao
       pra nao sobrar espaco vazio embaixo. */
    min-height: 10rem;
}
.metric-value[data-v-c0e0e01a],
  .status-value[data-v-c0e0e01a] {
    font-size: 1.5rem;
}
}

/* Faixa crítica: laptop 1024px + sidebar aberta → 3 + 2 */
@container dashboard (max-width: 820px) {
.metrics-grid[data-v-c0e0e01a],
  .status-grid[data-v-c0e0e01a] {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    padding: 0.875rem;
}
.metrics-grid .metric-card[data-v-c0e0e01a],
  .status-grid .status-card[data-v-c0e0e01a] {
    padding: 0.875rem;
}
.metric-value[data-v-c0e0e01a],
  .status-value[data-v-c0e0e01a] {
    font-size: 1.375rem;
}
.metric-description[data-v-c0e0e01a],
  .status-description[data-v-c0e0e01a] {
    font-size: 0.7rem;
}
}

/* Container estreito: 2 colunas */
@container dashboard (max-width: 560px) {
.metrics-grid[data-v-c0e0e01a],
  .status-grid[data-v-c0e0e01a] {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 0.75rem;
}
}

/* Container muito estreito: coluna única */
@container dashboard (max-width: 400px) {
.metrics-grid[data-v-c0e0e01a],
  .status-grid[data-v-c0e0e01a] {
    grid-template-columns: 1fr;
}
}

/* ===================================
   GRÁFICOS ADICIONAIS
   =================================== */
.additional-charts[data-v-c0e0e01a] {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1.5rem;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* ===================================
   SEÇÃO DE AGENTES
   =================================== */
.agents-section[data-v-c0e0e01a] {
  padding: 1.5rem;
}
.agents-card[data-v-c0e0e01a] {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
}
.agents-header[data-v-c0e0e01a] {
  margin-bottom: 1.25rem;
}
.agents-title[data-v-c0e0e01a] {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 0.5rem 0;
}
.agents-description[data-v-c0e0e01a] {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}
.agents-grid[data-v-c0e0e01a] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.agent-item[data-v-c0e0e01a] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid #f1f5f9;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}
.agent-item[data-v-c0e0e01a]:hover {
  border-color: #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.agent-info[data-v-c0e0e01a] {
  display: flex;
  flex-direction: column;
}
.agent-name[data-v-c0e0e01a] {
  font-weight: 500;
  color: #0f172a;
  margin: 0 0 0.25rem 0;
}
.agent-team[data-v-c0e0e01a] {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}
.agent-status[data-v-c0e0e01a] {
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
}
.agent-status.online[data-v-c0e0e01a] {
  background: #dcfce7;
  color: #166534;
}
.agent-status.busy[data-v-c0e0e01a] {
  background: #fef3c7;
  color: #92400e;
}
.agent-status.offline[data-v-c0e0e01a] {
  background: #fee2e2;
  color: #991b1b;
}

/* ===================================
   EFEITOS HOVER
   =================================== */
.stat-pill[data-v-c0e0e01a]:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.stat-pill.empresa[data-v-c0e0e01a]:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.25);
}
.stat-pill.cliente[data-v-c0e0e01a]:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.25);
}
.stat-pill.novos-contatos[data-v-c0e0e01a]:hover {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.25);
}
/* ===================================
   LOADING
   =================================== */
.metric-loading-overlay[data-v-c0e0e01a] {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.7);
  z-index: 2;
}
.metric-loading[data-v-c0e0e01a] {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  font-size: 1.2rem;
  color: #888;
  position: relative;
}
.metric-loading[data-v-c0e0e01a]::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 32px;
  margin-right: 12px;
  border: 4px solid #e0e0e0;
  border-top: 4px solid #2563eb;
  border-radius: 50%;
  animation: metric-spin-c0e0e01a 0.8s linear infinite;
  vertical-align: middle;
}
@keyframes metric-spin-c0e0e01a {
to {
    transform: rotate(360deg);
}
}
/* ===================================
   REAL TIME SECTION — header no padrao
   stylish dos cards do dashboard
   =================================== */

/* Agrupa header + tabela num card, alinhado aos chart-card */
.real-time-section[data-v-c0e0e01a] {
  margin: 28px 28px 8px 28px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow:
    0 1px 3px rgba(15, 23, 42, 0.04),
    0 1px 2px rgba(15, 23, 42, 0.03);
  overflow: hidden;
}
.real-time-header[data-v-c0e0e01a] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 20px 24px;
  background: linear-gradient(135deg, #fdfdfe 0%, #f8fafc 55%, #f1f5f9 100%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  position: relative;
}

/* Mesma linha de brilho superior dos demais headers stylish */
.real-time-header[data-v-c0e0e01a]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}
.real-time-identity[data-v-c0e0e01a] {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

/* Badge igual ao .chart-badge dos cards de cima */
.real-time-badge[data-v-c0e0e01a] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.07), 0 1.5px 4px rgba(15, 23, 42, 0.04);
  border: 1px solid #f1f5f9;
}
.real-time-badge-icon[data-v-c0e0e01a] {
  width: 20px;
  height: 20px;
  color: #3b82f6;
}
.real-time-meta[data-v-c0e0e01a] {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.real-time-title[data-v-c0e0e01a] {
  font-size: 17px;
  font-weight: 650;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.real-time-subtitle[data-v-c0e0e01a] {
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

/* Botao Relatorios: pill com borda sutil, accent azul, sem glow */
.reports-button[data-v-c0e0e01a] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid rgba(59, 130, 246, 0.18);
  color: #2563eb;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0.5rem 0.875rem;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}
.reports-button[data-v-c0e0e01a]:hover {
  background: #eff6ff;
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
  text-decoration: none;
}

/* Feedback tatil no clique */
.reports-button[data-v-c0e0e01a]:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.reports-button-icon[data-v-c0e0e01a] {
  width: 17px;
  height: 17px;
}

/* Chevron desliza pra direita no hover do botao */
.reports-button-chevron[data-v-c0e0e01a] {
  width: 16px;
  height: 16px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.reports-button:hover .reports-button-chevron[data-v-c0e0e01a] {
  opacity: 1;
  transform: translateX(0);
}
/* ===================================
   RESPONSIVIDADE
   =================================== */

/* Nota: regras de .metrics-grid / .status-grid foram movidas para
   @container dashboard (ver seção "RESPONSIVIDADE POR CONTAINER" acima),
   para que os grids reajam ao espaço real (após sidebar), não à viewport. */
@media (max-width: 1024px) {
.header-filters[data-v-c0e0e01a] {
    gap: 1rem;
}
.charts-grid[data-v-c0e0e01a] {
    grid-template-columns: 1fr;
}
.chart-header-modern[data-v-c0e0e01a] {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
}
.chart-stats-inline[data-v-c0e0e01a] {
    justify-content: center;
    flex-wrap: wrap;
}
.chart-content-modern[data-v-c0e0e01a] {
    height: 320px;
}
.messages-breakdown[data-v-c0e0e01a] {
    flex-direction: column;
    gap: 0.75rem;
}
}

/* --- Tablet portrait --- */
@media (max-width: 768px) {
.dashboard[data-v-c0e0e01a] {
    padding: 8px;
}
.header[data-v-c0e0e01a] {
    padding: 1.5rem 1rem;
}

  /* No mobile o titulo+badge e os filtros voltam a empilhar */
.header-content[data-v-c0e0e01a] {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
}
.header-filters[data-v-c0e0e01a] {
    width: 100%;
    gap: 0.75rem;
}
.header-filters .filter-group[data-v-c0e0e01a] {
    flex: 1 1 160px;
}
.charts-grid[data-v-c0e0e01a] {
    padding: 1rem;
    gap: 0.75rem;
}
.additional-charts[data-v-c0e0e01a] {
    padding: 1rem;
}
.messages-stats[data-v-c0e0e01a] {
    padding: 0.75rem;
}
.total-messages[data-v-c0e0e01a] {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}
.chart-header-meta[data-v-c0e0e01a] {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}
.total-display[data-v-c0e0e01a] {
    font-size: 28px;
}
.chart-bars-vertical[data-v-c0e0e01a] {
    height: 240px;
}
.bars-area[data-v-c0e0e01a] {
    height: 200px;
}
.y-axis-labels[data-v-c0e0e01a] {
    height: 200px;
}
.bar-vertical[data-v-c0e0e01a] {
    width: 20px;
}
.chart-legend[data-v-c0e0e01a] {
    flex-direction: column;
    gap: 12px;
    align-items: center;
}
.real-time-section[data-v-c0e0e01a] {
    margin: 20px 8px 8px 8px;
}
.real-time-header[data-v-c0e0e01a] {
    padding: 16px;
}
.real-time-title[data-v-c0e0e01a] {
    font-size: 15px;
}
}

/* --- Mobile --- */
@media (max-width: 480px) {
.dashboard[data-v-c0e0e01a] {
    padding: 4px;
    font-size: 0.875rem;
}
.header[data-v-c0e0e01a] {
    padding: 1rem 0.75rem;
}
.header-filters[data-v-c0e0e01a] {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
}
.charts-grid[data-v-c0e0e01a] {
    padding: 0.5rem;
}
.additional-charts[data-v-c0e0e01a] {
    padding: 0.5rem;
}
.chart-card[data-v-c0e0e01a], .agents-card[data-v-c0e0e01a] {
    padding: 0.75rem;
}
.chart-canvas[data-v-c0e0e01a] {
    height: 250px !important;
}
.stat-pill[data-v-c0e0e01a] {
    font-size: 0.7rem;
    padding: 0.4rem 0.6rem;
}
.chart-title-modern[data-v-c0e0e01a] {
    font-size: 1rem;
}
.messages-stats[data-v-c0e0e01a] {
    padding: 0.5rem;
}
.total-value[data-v-c0e0e01a] {
    font-size: 1.125rem;
}
.stat-value[data-v-c0e0e01a] {
    font-size: 0.8rem;
}
.total-display[data-v-c0e0e01a] {
    font-size: 24px;
}
.chart-title-meta[data-v-c0e0e01a] {
    font-size: 14px;
}
.chart-subtitle[data-v-c0e0e01a] {
    font-size: 11px;
}
.chart-bars-vertical[data-v-c0e0e01a] {
    height: 200px;
    gap: 8px;
}
.bars-area[data-v-c0e0e01a] {
    height: 160px;
}
.y-axis-labels[data-v-c0e0e01a] {
    height: 160px;
    width: 40px;
}
.bar-vertical[data-v-c0e0e01a] {
    width: 16px;
}
.bars-wrapper[data-v-c0e0e01a] {
    gap: 2px;
}
.real-time-section[data-v-c0e0e01a] {
    margin: 16px 4px 4px 4px;
}
.real-time-header[data-v-c0e0e01a] {
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
}

  /* Botao ocupa a largura toda quando o header empilha */
.reports-button[data-v-c0e0e01a] {
    justify-content: center;
}
}

/* Alinha a altura dos controles do header (ComboBox 40px x input do DatePicker)
   e refina o raio/tipografia pra ficarem coerentes lado a lado. */
.filter-control[data-v-c0e0e01a] .combo-trigger {
  min-height: 40px;
  height: 40px;
  border-radius: 10px;
}
.filter-control[data-v-c0e0e01a] .dp-input {
  height: 40px;
  border-radius: 10px;
  font-size: 0.8125rem;
}
.filter-control[data-v-c0e0e01a] .dp {
  width: 100%;
}
/* ===================================
   RESET E BASE
   =================================== */
/* * {
  box-sizing: border-box;
} */
.fade-table-enter-active[data-v-c957191f], .fade-table-leave-active[data-v-c957191f] {
  transition: opacity 0.4s cubic-bezier(.4,0,.2,1);
}
.fade-table-enter[data-v-c957191f], .fade-table-leave-to[data-v-c957191f] {
  opacity: 0;
}
.dashboard[data-v-c957191f] {
  /* max-width: 1400px; */
  padding: 12px;
  min-height: 100vh;
  border-radius: 12px;
  background-color: #f8fafc;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  container-type: inline-size;
  container-name: dashboard;
}
.help-badge[data-v-c957191f] {
  position: absolute;
  right: 10px;
  bottom: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #eef2ff;
  color: #1e293b;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  cursor: default;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  outline: none;
}


/* ===================================
   HEADER E NAVEGAÇÃO
   =================================== */
.select-option.disabled[data-v-c957191f] {
  color: #bbb;
  pointer-events: none;
  cursor: not-allowed;
}
.header[data-v-c957191f] {
  padding: 2rem 1.5rem;
  border-radius: 12px;
  position: relative;
  overflow: visible;
}
.header-content[data-v-c957191f] {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: 100%;
  position: relative;
  overflow: visible;
}

/* Titulo + badge de periodo agrupados a esquerda */
.header-title-wrap[data-v-c957191f] {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
}
.header-title[data-v-c957191f] {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
  color: #1e293b;
  letter-spacing: -0.025em;
  text-align: left;
}

/* Badge de periodo (Mês/Hoje/Semana) ao lado do titulo */
.period-badge[data-v-c957191f] {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  background: #eff6ff;
  color: #1877f2;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.dev-overlay[data-v-c957191f] {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px; /* ou ajuste conforme seu layout */
  width: 100%;
  background: none;
  position: static;
  box-shadow: none;
  z-index: 1;
}
.dev-overlay-content[data-v-c957191f] {
  text-align: center;
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  padding: 3rem 2.5rem;
  border: 1px solid #e5e7eb;
}










/* ===================================
   FILTROS E CONTROLES
   =================================== */
.header-filters[data-v-c957191f] {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.875rem;
}
.header-filters .filter-group[data-v-c957191f] {
  min-width: 190px;
}

/* O filtro de periodo (date range) precisa de mais largura pro "dd/mm - dd/mm" */
.header-filters .filter-group--period[data-v-c957191f] {
  min-width: 232px;
}
.filter-group[data-v-c957191f] {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}
.filter-label-container[data-v-c957191f] {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  justify-content: flex-start;
  padding-left: 0.125rem;
}
.filter-icon[data-v-c957191f] {
  width: 0.875rem;
  height: 0.875rem;
  color: #94a3b8;
  flex-shrink: 0;
}

/* Label discreto acima do controle — uppercase suave, tom muted (estilo premium) */
.filter-label[data-v-c957191f] {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}

/* Garante que ComboBox e DatePicker preencham a largura do grupo */
.filter-group .filter-control[data-v-c957191f] {
  width: 100%;
}

/* ===================================
   HELPER TOOLTIP
   =================================== */
/* Hide help badge by default; show when hovering the card */
.help-badge[data-v-c957191f] {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  color: #64748b;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 600;
  cursor: help;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;

  /* start hidden */
  opacity: 0;
  visibility: hidden;
  transform: scale(0.96);
  pointer-events: none;
}
.metric-card:hover .help-badge[data-v-c957191f] {
  /* show when hovering the entire card */
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
}
.help-badge[data-v-c957191f]:hover {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-color: #cbd5e1;
  color: #475569;
  transform: scale(1.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.help-badge[data-v-c957191f]:focus {
  outline: none;
  box-shadow: 0 0 0 2px #3b82f6, 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* keep tooltip styles (unchanged) */
.help-tooltip[data-v-c957191f] {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  max-width: 280px;
  background: #ffffff;
  color: #374151;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.01em;
  border: 1px solid #e5e7eb;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.02),
    0 4px 6px -1px rgba(0, 0, 0, 0.08),
    0 10px 15px -3px rgba(0, 0, 0, 0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px) scale(0.96);
  pointer-events: none;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 50;
}
.help-badge:hover .help-tooltip[data-v-c957191f],
.help-badge:focus .help-tooltip[data-v-c957191f] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* ===================================
   MÉTRICAS E CARDS
   =================================== */
.metrics-grid[data-v-c957191f] {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.5rem;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Receita Gerada e sempre o ultimo card: estica da sua coluna ate o fim da
   linha, preenchendo o espaco que sobra (some o card de Agentes p/ operador
   comum -> a Receita ocupa mais; ninguem fica com coluna vazia). */
.metrics-grid .revenue-card[data-v-c957191f] {
  grid-column: auto / -1;
}
.metric-card[data-v-c957191f] {
  position: relative;
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  transition: all 0.2s ease;
  overflow: visible;
  min-width: 0;
  /* Altura minima compartilhada com .status-card pra que as duas linhas de
     cards (Metricas em cima, Status embaixo) fiquem alinhadas, mesmo com
     quantidades diferentes de texto. Conteudo fica ancorado no topo. */
  min-height: 11.5rem;
}
.metric-card[data-v-c957191f]:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}
.metric-header[data-v-c957191f] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.metric-title[data-v-c957191f] {
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
}
.metric-icon[data-v-c957191f] {
  width: 1rem;
  height: 1rem;
  color: #64748b;
}
.metric-value[data-v-c957191f] {
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}
.metric-description[data-v-c957191f] {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0 0 0.75rem 0;
}
.metric-trend[data-v-c957191f] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.metric-trend.positive .trend-text[data-v-c957191f] {
  color: #059669;
}
.metric-trend.negative .trend-text[data-v-c957191f] {
  color: #dc2626;
}
.trend-icon[data-v-c957191f] {
  width: 0.75rem;
  height: 0.75rem;
}
.metric-trend.positive .trend-icon[data-v-c957191f] {
  color: #059669;
}
.metric-trend.negative .trend-icon[data-v-c957191f] {
  color: #dc2626;
  transform: rotate(180deg);
}
.trend-text[data-v-c957191f] {
  font-size: 0.75rem;
  font-weight: 500;
}
.metric-badge .badge[data-v-c957191f] {
  background: #f1f5f9;
  color: #475569;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
}
.rating-container[data-v-c957191f] {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.stars[data-v-c957191f] {
  display: flex;
}
.star-wrapper[data-v-c957191f] {
  position: relative;
  display: inline-flex;
  width: 0.75rem;
  height: 0.75rem;
}
.star-icon[data-v-c957191f] {
  width: 0.75rem;
  height: 0.75rem;
  color: #d1d5db;
}

/* Overlay amarelo sobreposto à estrela cinza base */
.star-icon-overlay[data-v-c957191f] {
  position: absolute;
  top: 0;
  left: 0;
  color: #fbbf24;
  fill: #fbbf24;
}
.star-icon.filled[data-v-c957191f] {
  color: #fbbf24;
  fill: #fbbf24;
}

/* Meia estrela: corta a metade direita do overlay, mostrando a cinza de baixo */
.star-icon.half-filled[data-v-c957191f] {
  clip-path: inset(0 50% 0 0);
}
.rating-count[data-v-c957191f] {
  font-size: 0.75rem;
  color: #6b7280;
}

/* ===================================
   GRÁFICOS - LAYOUT GERAL
   =================================== */
.charts-grid[data-v-c957191f] {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1.5rem;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Variante de coluna unica: usada quando o Chart de Mensagens esta
   desativado e so a Discriminacao de Conversas e exibida (ocupa a largura
   toda). Remover esta classe do wrapper se o Chart de Mensagens voltar. */
.charts-grid--single[data-v-c957191f] {
  grid-template-columns: 1fr;
}
.chart-messages[data-v-c957191f] {
  min-height: 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(148, 163, 184, 0.1);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
}
.chart-card[data-v-c957191f] {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  min-width: 0;
  overflow: hidden;
}
.chart-header[data-v-c957191f] {
  margin-bottom: 1.25rem;
}
.chart-title[data-v-c957191f] {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.chart-title-icon[data-v-c957191f] {
  width: 1.25rem;
  height: 1.25rem;
  color: #64748b;
}
.chart-description[data-v-c957191f] {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}
.chart-content[data-v-c957191f] {
  position: relative;
}
.chart-canvas[data-v-c957191f] {
  height: 300px !important;
}
/* ===================================
   GRÁFICO DE MENSAGENS - CANVAS META STYLE
   =================================== */
.chart-header-meta[data-v-c957191f] {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e4e6ea;
}
.chart-title-section[data-v-c957191f] {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.chart-title-meta[data-v-c957191f] {
  font-size: 16px;
  font-weight: 600;
  color: #1c1e21;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chart-title-icon[data-v-c957191f] {
  width: 16px;
  height: 16px;
  color: #65676b;
}
.chart-subtitle[data-v-c957191f] {
  font-size: 12px;
  color: #65676b;
  margin: 0;
  font-weight: 400;
}
.total-display[data-v-c957191f] {
  font-size: 32px;
  font-weight: 700;
  color: #1c1e21;
  line-height: 1;
}
.chart-header-stylish[data-v-c957191f] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  padding: 24px 28px;
  background: linear-gradient(135deg, #fdfdfe 0%, #f8fafc 50%, #f1f5f9 100%);
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.06);
  box-shadow:
    0 1px 3px rgba(15, 23, 42, 0.04),
    0 1px 2px rgba(15, 23, 42, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}
.chart-header-stylish[data-v-c957191f]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}
.chart-identity[data-v-c957191f] {
  display: flex;
  align-items: center;
  gap: 14px;
}
.chart-badge[data-v-c957191f] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.07), 0 1.5px 4px rgba(15, 23, 42, 0.04);
  border: 1px solid #f1f5f9;
  position: relative;
  transition: box-shadow 0.2s;
}
.chart-badge[data-v-c957191f]::before {
  display: none;
}
.badge-icon[data-v-c957191f] {
  width: 20px;
  height: 20px;
  color: #3b82f6;
  filter: none;
  position: relative;
  z-index: 1;
  transition: color 0.2s;
}
.chart-meta[data-v-c957191f] {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.chart-title-stylish[data-v-c957191f] {
  font-size: 17px;
  font-weight: 650;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.chart-period-tag[data-v-c957191f] {
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.08em;
  opacity: 0.85;
}
.metric-highlight[data-v-c957191f] {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.metric-label[data-v-c957191f] {
  font-size: 8px;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0.8;
}
.metric-value-stylish[data-v-c957191f] {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  line-height: 0.9;
  background: linear-gradient(135deg, #0f172a 0%, #334155 50%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.1));
  letter-spacing: -0.03em;
}
.chart-legend-mini[data-v-c957191f] {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}
.legend-item-mini[data-v-c957191f] {
  display: flex;
  align-items: center;
  gap: 4px;
}
.legend-dot[data-v-c957191f] {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.legend-text[data-v-c957191f] {
  font-size: 10px;
  color: #64748b;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Responsividade */
@media (max-width: 768px) {
.chart-legend-mini[data-v-c957191f] {
    gap: 8px;
}
.legend-text[data-v-c957191f] {
    font-size: 8px;
}
.legend-dot[data-v-c957191f] {
    width: 5px;
    height: 5px;
}
}
@media (max-width: 480px) {
.chart-legend-mini[data-v-c957191f] {
    flex-direction: column;
    gap: 2px;
    margin-top: 2px;
}
}
/* Responsividade refinada */
@media (max-width: 768px) {
.chart-header-stylish[data-v-c957191f] {
    padding: 20px 22px;
    margin-bottom: 22px;
    border-radius: 14px;
}
.chart-badge[data-v-c957191f] {
    width: 38px;
    height: 38px;
    border-radius: 10px;
}
.chart-badge[data-v-c957191f]::before {
    border-radius: 9px;
}
.badge-icon[data-v-c957191f] {
    width: 17px;
    height: 17px;
}
.chart-title-stylish[data-v-c957191f] {
    font-size: 15px;
    font-weight: 600;
}
.chart-period-tag[data-v-c957191f] {
    font-size: 9px;
}
.metric-value-stylish[data-v-c957191f] {
    font-size: 26px;
}
.chart-identity[data-v-c957191f] {
    gap: 12px;
}
}
@media (max-width: 480px) {
.chart-header-stylish[data-v-c957191f] {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    text-align: left;
    padding: 18px 20px;
    border-radius: 12px;
}
.metric-highlight[data-v-c957191f] {
    align-items: flex-start;
    width: 100%;
}
.metric-value-stylish[data-v-c957191f] {
    font-size: 25px;
    font-weight: 900;
}
.metric-label[data-v-c957191f] {
    font-size: 8px;
}
.chart-title-stylish[data-v-c957191f] {
    font-size: 16px;
}
}


/* Canvas Chart Container */
.canvas-chart-container[data-v-c957191f] {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.messages-canvas[data-v-c957191f] {
  width: 100%;
  height: 420px; /* Increased height */
  border-radius: 4px;
  cursor: default;
}

/* Canvas Tooltip Styles - Positioned closer to bars */
.canvas-tooltip[data-v-c957191f] {
  position: absolute;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 12px;
  pointer-events: none;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-width: 200px;
  min-width: 140px;
 transform: translateX(12px);
}
.tooltip-content[data-v-c957191f] {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tooltip-date[data-v-c957191f] {
  font-weight: 600;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 6px;
  text-align: center;
}
.tooltip-values[data-v-c957191f] {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tooltip-item[data-v-c957191f] {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.tooltip-color[data-v-c957191f] {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}
.tooltip-item.received .tooltip-color[data-v-c957191f] {
  background-color: #1877f2;
}
.tooltip-item.sent .tooltip-color[data-v-c957191f] {
  background-color: #42a5f5;
}

/* Chart Legend */
.chart-legend[data-v-c957191f] {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding-top: 16px;
  border-top: 1px solid #e4e6ea;
}
.legend-item[data-v-c957191f] {
  display: flex;
  align-items: center;
  gap: 8px;
}
.legend-color[data-v-c957191f] {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}
.received-color[data-v-c957191f] {
  background-color: #1877f2;
}
.sent-color[data-v-c957191f] {
  background-color: #42a5f5;
}
.legend-label[data-v-c957191f] {
  font-size: 14px;
  color: #1c1e21;
  font-weight: 500;
}
.legend-percentage[data-v-c957191f] {
  font-size: 14px;
  color: #65676b;
  font-weight: 600;
}

/* ===================================
   ESTATÍSTICAS DAS MENSAGENS
   =================================== */
.messages-stats[data-v-c957191f] {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
}
.total-messages[data-v-c957191f] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}
.total-label[data-v-c957191f] {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}
.total-value[data-v-c957191f] {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}
.messages-breakdown[data-v-c957191f] {
  display: flex;
  gap: 1.5rem;
}
.message-stat[data-v-c957191f] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.stat-indicator[data-v-c957191f] {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}
.message-stat.received .stat-indicator[data-v-c957191f] {
  background: #3b82f6;
}
.message-stat.sent .stat-indicator[data-v-c957191f] {
  background: #10b981;
}
.stat-label[data-v-c957191f] {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}
.stat-value[data-v-c957191f] {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
}

/* ===================================
   RESPONSIVIDADE PARA CANVAS
   =================================== */
@media (max-width: 768px) {
.chart-header-meta[data-v-c957191f] {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}
.total-display[data-v-c957191f] {
    font-size: 28px;
}
.messages-canvas[data-v-c957191f] {
    height: 350px; /* Reduced height for mobile */
}
.chart-legend[data-v-c957191f] {
    flex-direction: column;
    gap: 12px;
    align-items: center;
}
.canvas-tooltip[data-v-c957191f] {
    font-size: 11px;
    padding: 10px 12px;
    max-width: 160px;
}
}
@media (max-width: 480px) {
.total-display[data-v-c957191f] {
    font-size: 24px;
}
.chart-title-meta[data-v-c957191f] {
    font-size: 14px;
}
.chart-subtitle[data-v-c957191f] {
    font-size: 11px;
}
.messages-canvas[data-v-c957191f] {
    height: 300px; /* Further reduced for small screens */
}
.canvas-tooltip[data-v-c957191f] {
    font-size: 10px;
    padding: 8px 10px;
    max-width: 140px;
}
.tooltip-date[data-v-c957191f] {
    font-size: 11px;
}
.tooltip-item[data-v-c957191f] {
    font-size: 10px;
}
}
/* ===================================
   GRÁFICO DE DISCRIMINAÇÃO MODERNO
   =================================== */
.chart-header-modern[data-v-c957191f] {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}
.chart-title-modern[data-v-c957191f] {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.025em;
}
.chart-period[data-v-c957191f] {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
  font-weight: 400;
}
.chart-stats-inline[data-v-c957191f] {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.stat-pill[data-v-c957191f] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
}
.stat-pill.empresa[data-v-c957191f] {
  background: rgba(99, 102, 241, 0.08);
  color: #4338ca;
  border: 1px solid rgba(99, 102, 241, 0.15);
}
.stat-pill.cliente[data-v-c957191f] {
  background: rgba(16, 185, 129, 0.08);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.15);
}
.stat-pill.novos-contatos[data-v-c957191f] {
  background: rgba(245, 158, 11, 0.08);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.15);
}
.stat-dot[data-v-c957191f] {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.stat-pill.empresa .stat-dot[data-v-c957191f] {
  background: #6366f1;
}
.stat-pill.cliente .stat-dot[data-v-c957191f] {
  background: #10b981;
}
.stat-pill.novos-contatos .stat-dot[data-v-c957191f] {
  background: #f59e0b;
}
.stat-text[data-v-c957191f] {
  white-space: nowrap;
}
.chart-content-modern[data-v-c957191f] {
  position: relative;
  height: 405px;
  padding: 0 0.5rem;
}
.chart-canvas-modern[data-v-c957191f] {
  height: 100% !important;
  width: 100% !important;
}

/* ===================================
   STATUS CARDS
   =================================== */
.status-update-bar[data-v-c957191f] {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 1.5rem 0;
  justify-content: flex-end;
}
.status-update-icon[data-v-c957191f] {
  width: 13px;
  height: 13px;
  color: #94a3b8;
}
.status-update-icon.animate-spin[data-v-c957191f] {
  animation: spin-c957191f 1s linear infinite;
}
@keyframes spin-c957191f {
from { transform: rotate(0deg);
}
to { transform: rotate(360deg);
}
}
.status-update-text[data-v-c957191f] {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 400;
}
.status-grid[data-v-c957191f] {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  padding: 1.5rem;
}

/* Operador comum nao ve o card de FCR aqui (ele sobe pra linha de Metricas),
   entao sobram 4 cards de status. Em 5 colunas isso deixaria a 5a coluna vazia
   -> reduz pra 4 colunas pra preencher a linha. Os breakpoints menores (3/2/1
   coluna) ja reflowam os 4 cards sem buraco, nao precisam de ajuste. */
.status-grid--operator[data-v-c957191f] {
  grid-template-columns: repeat(4, 1fr);
}
.status-card[data-v-c957191f] {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  border-left: 4px solid transparent;
  transition: all 0.2s ease;
  min-width: 0;
  /* Mesma altura minima do .metric-card pra alinhar as duas linhas de cards. */
  min-height: 11.5rem;
}
.status-card[data-v-c957191f]:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}
.status-header[data-v-c957191f] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.status-title[data-v-c957191f] {
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
}
.status-icon[data-v-c957191f] {
  width: 1rem;
  height: 1rem;
  opacity: 0.7;
}
.status-value[data-v-c957191f] {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}
/* Borda com cores correspondentes */
.status-card.success[data-v-c957191f] {
  border-left-color: #10b981;
}
.status-card.warning[data-v-c957191f] {
  border-left-color: #f59e0b;
}
.status-card.neutral[data-v-c957191f] {
  border-left-color: #b71c1c;
}
.status-card.info[data-v-c957191f] {
  border-left-color: #3b82f6;
}
.status-card.active[data-v-c957191f] {
  border-left-color: #374151;
}
.status-card.success .status-value[data-v-c957191f] {
  color: #059669;
}
.status-card.success .status-icon[data-v-c957191f] {
  color: #10b981;
}
.status-card.active .status-value[data-v-c957191f] {
  color: #374151;
}
.status-card.active .status-icon[data-v-c957191f] {
  color: #4b5563;
}
.status-card.warning .status-value[data-v-c957191f] {
  color: #d97706;
}
.status-card.warning .status-icon[data-v-c957191f] {
  color: #f59e0b;
}
.status-card.neutral .status-value[data-v-c957191f] {
  color: #c04141;
}
.status-card.neutral .status-icon[data-v-c957191f] {
  color: #b71c1c;
}
.status-card.info .status-value[data-v-c957191f] {
  color: #2563eb;
}
.status-card.info .status-icon[data-v-c957191f] {
  color: #3b82f6;
}
.status-description[data-v-c957191f] {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
}

/* ===================================
   RESPONSIVIDADE POR CONTAINER
   Reage ao espaço real do .dashboard
   (sidebar aberta/fechada), não à viewport.
   Deve vir DEPOIS das definições base de
   .metrics-grid e .status-grid para sobrescrever
   corretamente grid-template-columns/padding.
   =================================== */

/* Faixa folgada: 4 cols com padding/gap reduzidos */
@container dashboard (max-width: 1100px) {
.metrics-grid[data-v-c957191f],
  .status-grid[data-v-c957191f] {
    gap: 0.75rem;
    padding: 1rem;
}
.metrics-grid .metric-card[data-v-c957191f],
  .status-grid .status-card[data-v-c957191f] {
    padding: 1rem;
    /* Padding/fonte menores aqui -> reduz a altura minima na mesma proporcao
       pra nao sobrar espaco vazio embaixo. */
    min-height: 10rem;
}
.metric-value[data-v-c957191f],
  .status-value[data-v-c957191f] {
    font-size: 1.5rem;
}
}

/* Faixa crítica: laptop 1024px + sidebar aberta → 3 + 2 */
@container dashboard (max-width: 820px) {
.metrics-grid[data-v-c957191f],
  .status-grid[data-v-c957191f] {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    padding: 0.875rem;
}
.metrics-grid .metric-card[data-v-c957191f],
  .status-grid .status-card[data-v-c957191f] {
    padding: 0.875rem;
}
.metric-value[data-v-c957191f],
  .status-value[data-v-c957191f] {
    font-size: 1.375rem;
}
.metric-description[data-v-c957191f],
  .status-description[data-v-c957191f] {
    font-size: 0.7rem;
}
}

/* Container estreito: 2 colunas */
@container dashboard (max-width: 560px) {
.metrics-grid[data-v-c957191f],
  .status-grid[data-v-c957191f] {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 0.75rem;
}
}

/* Container muito estreito: coluna única */
@container dashboard (max-width: 400px) {
.metrics-grid[data-v-c957191f],
  .status-grid[data-v-c957191f] {
    grid-template-columns: 1fr;
}
}

/* ===================================
   GRÁFICOS ADICIONAIS
   =================================== */
.additional-charts[data-v-c957191f] {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1.5rem;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* ===================================
   SEÇÃO DE AGENTES
   =================================== */
.agents-section[data-v-c957191f] {
  padding: 1.5rem;
}
.agents-card[data-v-c957191f] {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
}
.agents-header[data-v-c957191f] {
  margin-bottom: 1.25rem;
}
.agents-title[data-v-c957191f] {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 0.5rem 0;
}
.agents-description[data-v-c957191f] {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}
.agents-grid[data-v-c957191f] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.agent-item[data-v-c957191f] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid #f1f5f9;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}
.agent-item[data-v-c957191f]:hover {
  border-color: #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.agent-info[data-v-c957191f] {
  display: flex;
  flex-direction: column;
}
.agent-name[data-v-c957191f] {
  font-weight: 500;
  color: #0f172a;
  margin: 0 0 0.25rem 0;
}
.agent-team[data-v-c957191f] {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}
.agent-status[data-v-c957191f] {
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
}
.agent-status.online[data-v-c957191f] {
  background: #dcfce7;
  color: #166534;
}
.agent-status.busy[data-v-c957191f] {
  background: #fef3c7;
  color: #92400e;
}
.agent-status.offline[data-v-c957191f] {
  background: #fee2e2;
  color: #991b1b;
}

/* ===================================
   EFEITOS HOVER
   =================================== */
.stat-pill[data-v-c957191f]:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.stat-pill.empresa[data-v-c957191f]:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.25);
}
.stat-pill.cliente[data-v-c957191f]:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.25);
}
.stat-pill.novos-contatos[data-v-c957191f]:hover {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.25);
}
/* ===================================
   LOADING
   =================================== */
.metric-loading-overlay[data-v-c957191f] {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.7);
  z-index: 2;
}
.metric-loading[data-v-c957191f] {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  font-size: 1.2rem;
  color: #888;
  position: relative;
}
.metric-loading[data-v-c957191f]::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 32px;
  margin-right: 12px;
  border: 4px solid #e0e0e0;
  border-top: 4px solid #2563eb;
  border-radius: 50%;
  animation: metric-spin-c957191f 0.8s linear infinite;
  vertical-align: middle;
}
@keyframes metric-spin-c957191f {
to {
    transform: rotate(360deg);
}
}
/* ===================================
   REAL TIME SECTION — header no padrao
   stylish dos cards do dashboard
   =================================== */

/* Agrupa header + tabela num card, alinhado aos chart-card */
.real-time-section[data-v-c957191f] {
  margin: 28px 28px 8px 28px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow:
    0 1px 3px rgba(15, 23, 42, 0.04),
    0 1px 2px rgba(15, 23, 42, 0.03);
  overflow: hidden;
}
.real-time-header[data-v-c957191f] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 20px 24px;
  background: linear-gradient(135deg, #fdfdfe 0%, #f8fafc 55%, #f1f5f9 100%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  position: relative;
}

/* Mesma linha de brilho superior dos demais headers stylish */
.real-time-header[data-v-c957191f]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}
.real-time-identity[data-v-c957191f] {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

/* Badge igual ao .chart-badge dos cards de cima */
.real-time-badge[data-v-c957191f] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.07), 0 1.5px 4px rgba(15, 23, 42, 0.04);
  border: 1px solid #f1f5f9;
}
.real-time-badge-icon[data-v-c957191f] {
  width: 20px;
  height: 20px;
  color: #3b82f6;
}
.real-time-meta[data-v-c957191f] {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.real-time-title[data-v-c957191f] {
  font-size: 17px;
  font-weight: 650;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.real-time-subtitle[data-v-c957191f] {
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

/* Botao Relatorios: pill com borda sutil, accent azul, sem glow */
.reports-button[data-v-c957191f] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid rgba(59, 130, 246, 0.18);
  color: #2563eb;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0.5rem 0.875rem;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}
.reports-button[data-v-c957191f]:hover {
  background: #eff6ff;
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
  text-decoration: none;
}

/* Feedback tatil no clique */
.reports-button[data-v-c957191f]:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.reports-button-icon[data-v-c957191f] {
  width: 17px;
  height: 17px;
}

/* Chevron desliza pra direita no hover do botao */
.reports-button-chevron[data-v-c957191f] {
  width: 16px;
  height: 16px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.reports-button:hover .reports-button-chevron[data-v-c957191f] {
  opacity: 1;
  transform: translateX(0);
}
/* ===================================
   RESPONSIVIDADE
   =================================== */

/* Nota: regras de .metrics-grid / .status-grid foram movidas para
   @container dashboard (ver seção "RESPONSIVIDADE POR CONTAINER" acima),
   para que os grids reajam ao espaço real (após sidebar), não à viewport. */
@media (max-width: 1024px) {
.header-filters[data-v-c957191f] {
    gap: 1rem;
}
.charts-grid[data-v-c957191f] {
    grid-template-columns: 1fr;
}
.chart-header-modern[data-v-c957191f] {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
}
.chart-stats-inline[data-v-c957191f] {
    justify-content: center;
    flex-wrap: wrap;
}
.chart-content-modern[data-v-c957191f] {
    height: 320px;
}
.messages-breakdown[data-v-c957191f] {
    flex-direction: column;
    gap: 0.75rem;
}
}

/* --- Tablet portrait --- */
@media (max-width: 768px) {
.dashboard[data-v-c957191f] {
    padding: 8px;
}
.header[data-v-c957191f] {
    padding: 1.5rem 1rem;
}

  /* No mobile o titulo+badge e os filtros voltam a empilhar */
.header-content[data-v-c957191f] {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
}
.header-filters[data-v-c957191f] {
    width: 100%;
    gap: 0.75rem;
}
.header-filters .filter-group[data-v-c957191f] {
    flex: 1 1 160px;
}
.charts-grid[data-v-c957191f] {
    padding: 1rem;
    gap: 0.75rem;
}
.additional-charts[data-v-c957191f] {
    padding: 1rem;
}
.messages-stats[data-v-c957191f] {
    padding: 0.75rem;
}
.total-messages[data-v-c957191f] {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}
.chart-header-meta[data-v-c957191f] {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}
.total-display[data-v-c957191f] {
    font-size: 28px;
}
.chart-bars-vertical[data-v-c957191f] {
    height: 240px;
}
.bars-area[data-v-c957191f] {
    height: 200px;
}
.y-axis-labels[data-v-c957191f] {
    height: 200px;
}
.bar-vertical[data-v-c957191f] {
    width: 20px;
}
.chart-legend[data-v-c957191f] {
    flex-direction: column;
    gap: 12px;
    align-items: center;
}
.real-time-section[data-v-c957191f] {
    margin: 20px 8px 8px 8px;
}
.real-time-header[data-v-c957191f] {
    padding: 16px;
}
.real-time-title[data-v-c957191f] {
    font-size: 15px;
}
}

/* --- Mobile --- */
@media (max-width: 480px) {
.dashboard[data-v-c957191f] {
    padding: 4px;
    font-size: 0.875rem;
}
.header[data-v-c957191f] {
    padding: 1rem 0.75rem;
}
.header-filters[data-v-c957191f] {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
}
.charts-grid[data-v-c957191f] {
    padding: 0.5rem;
}
.additional-charts[data-v-c957191f] {
    padding: 0.5rem;
}
.chart-card[data-v-c957191f], .agents-card[data-v-c957191f] {
    padding: 0.75rem;
}
.chart-canvas[data-v-c957191f] {
    height: 250px !important;
}
.stat-pill[data-v-c957191f] {
    font-size: 0.7rem;
    padding: 0.4rem 0.6rem;
}
.chart-title-modern[data-v-c957191f] {
    font-size: 1rem;
}
.messages-stats[data-v-c957191f] {
    padding: 0.5rem;
}
.total-value[data-v-c957191f] {
    font-size: 1.125rem;
}
.stat-value[data-v-c957191f] {
    font-size: 0.8rem;
}
.total-display[data-v-c957191f] {
    font-size: 24px;
}
.chart-title-meta[data-v-c957191f] {
    font-size: 14px;
}
.chart-subtitle[data-v-c957191f] {
    font-size: 11px;
}
.chart-bars-vertical[data-v-c957191f] {
    height: 200px;
    gap: 8px;
}
.bars-area[data-v-c957191f] {
    height: 160px;
}
.y-axis-labels[data-v-c957191f] {
    height: 160px;
    width: 40px;
}
.bar-vertical[data-v-c957191f] {
    width: 16px;
}
.bars-wrapper[data-v-c957191f] {
    gap: 2px;
}
.real-time-section[data-v-c957191f] {
    margin: 16px 4px 4px 4px;
}
.real-time-header[data-v-c957191f] {
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
}

  /* Botao ocupa a largura toda quando o header empilha */
.reports-button[data-v-c957191f] {
    justify-content: center;
}
}

/* Card de Receita Gerada */
.revenue-card[data-v-c957191f] {
  position: relative;
  overflow: hidden;
}

/* Valor em verde (destaque de receita) */
.revenue-value[data-v-c957191f] {
  color: #059669;
}

/* Selo de variacao (+/-% vs periodo anterior) */
.revenue-delta[data-v-c957191f] {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.revenue-delta.is-up[data-v-c957191f] {
  color: #059669;
}
.revenue-delta.is-down[data-v-c957191f] {
  color: #dc2626;
}
.revenue-delta-icon[data-v-c957191f] {
  width: 0.875rem;
  height: 0.875rem;
  stroke-width: 2.25;
}

/* Icone de tendencia decorativo no canto */
.revenue-bg-icon[data-v-c957191f] {
  position: absolute;
  right: 0.75rem;
  bottom: 0.5rem;
  width: 4.5rem;
  height: 4.5rem;
  color: #059669;
  opacity: 0.08;
  pointer-events: none;
}
/* ===================================
   RESET E BASE
   =================================== */
/* * {
  box-sizing: border-box;
} */
.fade-table-enter-active[data-v-43f4fe52], .fade-table-leave-active[data-v-43f4fe52] {
  transition: opacity 0.4s cubic-bezier(.4,0,.2,1);
}
.fade-table-enter[data-v-43f4fe52], .fade-table-leave-to[data-v-43f4fe52] {
  opacity: 0;
}
.dashboard[data-v-43f4fe52] {
  /* max-width: 1400px; */
  padding: 12px;
  min-height: 100vh;
  border-radius: 12px;
  background-color: #f8fafc;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  container-type: inline-size;
  container-name: dashboard;
}
.help-badge[data-v-43f4fe52] {
  position: absolute;
  right: 10px;
  bottom: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #eef2ff;
  color: #1e293b;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  cursor: default;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  outline: none;
}


/* ===================================
   HEADER E NAVEGAÇÃO
   =================================== */
.select-option.disabled[data-v-43f4fe52] {
  color: #bbb;
  pointer-events: none;
  cursor: not-allowed;
}
.header[data-v-43f4fe52] {
  padding: 2rem 1.5rem;
  border-radius: 12px;
  position: relative;
  overflow: visible;
}
.header-content[data-v-43f4fe52] {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: 100%;
  position: relative;
  overflow: visible;
}

/* Titulo + badge de periodo agrupados a esquerda */
.header-title-wrap[data-v-43f4fe52] {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
}
.header-title[data-v-43f4fe52] {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
  color: #1e293b;
  letter-spacing: -0.025em;
  text-align: left;
}

/* Badge de periodo (Mês/Hoje/Semana) ao lado do titulo */
.period-badge[data-v-43f4fe52] {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  background: #eff6ff;
  color: #1877f2;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.dev-overlay[data-v-43f4fe52] {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px; /* ou ajuste conforme seu layout */
  width: 100%;
  background: none;
  position: static;
  box-shadow: none;
  z-index: 1;
}
.dev-overlay-content[data-v-43f4fe52] {
  text-align: center;
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  padding: 3rem 2.5rem;
  border: 1px solid #e5e7eb;
}










/* ===================================
   FILTROS E CONTROLES
   =================================== */
.header-filters[data-v-43f4fe52] {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.875rem;
}
.header-filters .filter-group[data-v-43f4fe52] {
  min-width: 190px;
}

/* O filtro de periodo (date range) precisa de mais largura pro "dd/mm - dd/mm" */
.header-filters .filter-group--period[data-v-43f4fe52] {
  min-width: 232px;
}
.filter-group[data-v-43f4fe52] {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}
.filter-label-container[data-v-43f4fe52] {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  justify-content: flex-start;
  padding-left: 0.125rem;
}
.filter-icon[data-v-43f4fe52] {
  width: 0.875rem;
  height: 0.875rem;
  color: #94a3b8;
  flex-shrink: 0;
}

/* Label discreto acima do controle — uppercase suave, tom muted (estilo premium) */
.filter-label[data-v-43f4fe52] {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}

/* Garante que ComboBox e DatePicker preencham a largura do grupo */
.filter-group .filter-control[data-v-43f4fe52] {
  width: 100%;
}

/* ===================================
   HELPER TOOLTIP
   =================================== */
/* Hide help badge by default; show when hovering the card */
.help-badge[data-v-43f4fe52] {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  color: #64748b;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 600;
  cursor: help;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;

  /* start hidden */
  opacity: 0;
  visibility: hidden;
  transform: scale(0.96);
  pointer-events: none;
}
.metric-card:hover .help-badge[data-v-43f4fe52] {
  /* show when hovering the entire card */
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
}
.help-badge[data-v-43f4fe52]:hover {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-color: #cbd5e1;
  color: #475569;
  transform: scale(1.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.help-badge[data-v-43f4fe52]:focus {
  outline: none;
  box-shadow: 0 0 0 2px #3b82f6, 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* keep tooltip styles (unchanged) */
.help-tooltip[data-v-43f4fe52] {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  max-width: 280px;
  background: #ffffff;
  color: #374151;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.01em;
  border: 1px solid #e5e7eb;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.02),
    0 4px 6px -1px rgba(0, 0, 0, 0.08),
    0 10px 15px -3px rgba(0, 0, 0, 0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px) scale(0.96);
  pointer-events: none;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 50;
}
.help-badge:hover .help-tooltip[data-v-43f4fe52],
.help-badge:focus .help-tooltip[data-v-43f4fe52] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* ===================================
   MÉTRICAS E CARDS
   =================================== */
.metrics-grid[data-v-43f4fe52] {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.5rem;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Receita Gerada e sempre o ultimo card: estica da sua coluna ate o fim da
   linha, preenchendo o espaco que sobra (some o card de Agentes p/ operador
   comum -> a Receita ocupa mais; ninguem fica com coluna vazia). */
.metrics-grid .revenue-card[data-v-43f4fe52] {
  grid-column: auto / -1;
}
.metric-card[data-v-43f4fe52] {
  position: relative;
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  transition: all 0.2s ease;
  overflow: visible;
  min-width: 0;
  /* Altura minima compartilhada com .status-card pra que as duas linhas de
     cards (Metricas em cima, Status embaixo) fiquem alinhadas, mesmo com
     quantidades diferentes de texto. Conteudo fica ancorado no topo. */
  min-height: 11.5rem;
}
.metric-card[data-v-43f4fe52]:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}
.metric-header[data-v-43f4fe52] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.metric-title[data-v-43f4fe52] {
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
}
.metric-icon[data-v-43f4fe52] {
  width: 1rem;
  height: 1rem;
  color: #64748b;
}
.metric-value[data-v-43f4fe52] {
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}
.metric-description[data-v-43f4fe52] {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0 0 0.75rem 0;
}
.metric-trend[data-v-43f4fe52] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.metric-trend.positive .trend-text[data-v-43f4fe52] {
  color: #059669;
}
.metric-trend.negative .trend-text[data-v-43f4fe52] {
  color: #dc2626;
}
.trend-icon[data-v-43f4fe52] {
  width: 0.75rem;
  height: 0.75rem;
}
.metric-trend.positive .trend-icon[data-v-43f4fe52] {
  color: #059669;
}
.metric-trend.negative .trend-icon[data-v-43f4fe52] {
  color: #dc2626;
  transform: rotate(180deg);
}
.trend-text[data-v-43f4fe52] {
  font-size: 0.75rem;
  font-weight: 500;
}
.metric-badge .badge[data-v-43f4fe52] {
  background: #f1f5f9;
  color: #475569;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
}
.rating-container[data-v-43f4fe52] {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.stars[data-v-43f4fe52] {
  display: flex;
}
.star-wrapper[data-v-43f4fe52] {
  position: relative;
  display: inline-flex;
  width: 0.75rem;
  height: 0.75rem;
}
.star-icon[data-v-43f4fe52] {
  width: 0.75rem;
  height: 0.75rem;
  color: #d1d5db;
}

/* Overlay amarelo sobreposto à estrela cinza base */
.star-icon-overlay[data-v-43f4fe52] {
  position: absolute;
  top: 0;
  left: 0;
  color: #fbbf24;
  fill: #fbbf24;
}
.star-icon.filled[data-v-43f4fe52] {
  color: #fbbf24;
  fill: #fbbf24;
}

/* Meia estrela: corta a metade direita do overlay, mostrando a cinza de baixo */
.star-icon.half-filled[data-v-43f4fe52] {
  clip-path: inset(0 50% 0 0);
}
.rating-count[data-v-43f4fe52] {
  font-size: 0.75rem;
  color: #6b7280;
}

/* ===================================
   GRÁFICOS - LAYOUT GERAL
   =================================== */
.charts-grid[data-v-43f4fe52] {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1.5rem;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Variante de coluna unica: usada quando o Chart de Mensagens esta
   desativado e so a Discriminacao de Conversas e exibida (ocupa a largura
   toda). Remover esta classe do wrapper se o Chart de Mensagens voltar. */
.charts-grid--single[data-v-43f4fe52] {
  grid-template-columns: 1fr;
}
.chart-messages[data-v-43f4fe52] {
  min-height: 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(148, 163, 184, 0.1);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
}
.chart-card[data-v-43f4fe52] {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  min-width: 0;
  overflow: hidden;
}
.chart-header[data-v-43f4fe52] {
  margin-bottom: 1.25rem;
}
.chart-title[data-v-43f4fe52] {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.chart-title-icon[data-v-43f4fe52] {
  width: 1.25rem;
  height: 1.25rem;
  color: #64748b;
}
.chart-description[data-v-43f4fe52] {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}
.chart-content[data-v-43f4fe52] {
  position: relative;
}
.chart-canvas[data-v-43f4fe52] {
  height: 300px !important;
}
/* ===================================
   GRÁFICO DE MENSAGENS - CANVAS META STYLE
   =================================== */
.chart-header-meta[data-v-43f4fe52] {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e4e6ea;
}
.chart-title-section[data-v-43f4fe52] {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.chart-title-meta[data-v-43f4fe52] {
  font-size: 16px;
  font-weight: 600;
  color: #1c1e21;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chart-title-icon[data-v-43f4fe52] {
  width: 16px;
  height: 16px;
  color: #65676b;
}
.chart-subtitle[data-v-43f4fe52] {
  font-size: 12px;
  color: #65676b;
  margin: 0;
  font-weight: 400;
}
.total-display[data-v-43f4fe52] {
  font-size: 32px;
  font-weight: 700;
  color: #1c1e21;
  line-height: 1;
}
.chart-header-stylish[data-v-43f4fe52] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  padding: 24px 28px;
  background: linear-gradient(135deg, #fdfdfe 0%, #f8fafc 50%, #f1f5f9 100%);
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.06);
  box-shadow:
    0 1px 3px rgba(15, 23, 42, 0.04),
    0 1px 2px rgba(15, 23, 42, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}
.chart-header-stylish[data-v-43f4fe52]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}
.chart-identity[data-v-43f4fe52] {
  display: flex;
  align-items: center;
  gap: 14px;
}
.chart-badge[data-v-43f4fe52] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.07), 0 1.5px 4px rgba(15, 23, 42, 0.04);
  border: 1px solid #f1f5f9;
  position: relative;
  transition: box-shadow 0.2s;
}
.chart-badge[data-v-43f4fe52]::before {
  display: none;
}
.badge-icon[data-v-43f4fe52] {
  width: 20px;
  height: 20px;
  color: #3b82f6;
  filter: none;
  position: relative;
  z-index: 1;
  transition: color 0.2s;
}
.chart-meta[data-v-43f4fe52] {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.chart-title-stylish[data-v-43f4fe52] {
  font-size: 17px;
  font-weight: 650;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.chart-period-tag[data-v-43f4fe52] {
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.08em;
  opacity: 0.85;
}
.metric-highlight[data-v-43f4fe52] {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.metric-label[data-v-43f4fe52] {
  font-size: 8px;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0.8;
}
.metric-value-stylish[data-v-43f4fe52] {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  line-height: 0.9;
  background: linear-gradient(135deg, #0f172a 0%, #334155 50%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.1));
  letter-spacing: -0.03em;
}
.chart-legend-mini[data-v-43f4fe52] {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}
.legend-item-mini[data-v-43f4fe52] {
  display: flex;
  align-items: center;
  gap: 4px;
}
.legend-dot[data-v-43f4fe52] {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.legend-text[data-v-43f4fe52] {
  font-size: 10px;
  color: #64748b;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Responsividade */
@media (max-width: 768px) {
.chart-legend-mini[data-v-43f4fe52] {
    gap: 8px;
}
.legend-text[data-v-43f4fe52] {
    font-size: 8px;
}
.legend-dot[data-v-43f4fe52] {
    width: 5px;
    height: 5px;
}
}
@media (max-width: 480px) {
.chart-legend-mini[data-v-43f4fe52] {
    flex-direction: column;
    gap: 2px;
    margin-top: 2px;
}
}
/* Responsividade refinada */
@media (max-width: 768px) {
.chart-header-stylish[data-v-43f4fe52] {
    padding: 20px 22px;
    margin-bottom: 22px;
    border-radius: 14px;
}
.chart-badge[data-v-43f4fe52] {
    width: 38px;
    height: 38px;
    border-radius: 10px;
}
.chart-badge[data-v-43f4fe52]::before {
    border-radius: 9px;
}
.badge-icon[data-v-43f4fe52] {
    width: 17px;
    height: 17px;
}
.chart-title-stylish[data-v-43f4fe52] {
    font-size: 15px;
    font-weight: 600;
}
.chart-period-tag[data-v-43f4fe52] {
    font-size: 9px;
}
.metric-value-stylish[data-v-43f4fe52] {
    font-size: 26px;
}
.chart-identity[data-v-43f4fe52] {
    gap: 12px;
}
}
@media (max-width: 480px) {
.chart-header-stylish[data-v-43f4fe52] {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    text-align: left;
    padding: 18px 20px;
    border-radius: 12px;
}
.metric-highlight[data-v-43f4fe52] {
    align-items: flex-start;
    width: 100%;
}
.metric-value-stylish[data-v-43f4fe52] {
    font-size: 25px;
    font-weight: 900;
}
.metric-label[data-v-43f4fe52] {
    font-size: 8px;
}
.chart-title-stylish[data-v-43f4fe52] {
    font-size: 16px;
}
}


/* Canvas Chart Container */
.canvas-chart-container[data-v-43f4fe52] {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.messages-canvas[data-v-43f4fe52] {
  width: 100%;
  height: 420px; /* Increased height */
  border-radius: 4px;
  cursor: default;
}

/* Canvas Tooltip Styles - Positioned closer to bars */
.canvas-tooltip[data-v-43f4fe52] {
  position: absolute;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 12px;
  pointer-events: none;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-width: 200px;
  min-width: 140px;
 transform: translateX(12px);
}
.tooltip-content[data-v-43f4fe52] {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tooltip-date[data-v-43f4fe52] {
  font-weight: 600;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 6px;
  text-align: center;
}
.tooltip-values[data-v-43f4fe52] {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tooltip-item[data-v-43f4fe52] {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.tooltip-color[data-v-43f4fe52] {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}
.tooltip-item.received .tooltip-color[data-v-43f4fe52] {
  background-color: #1877f2;
}
.tooltip-item.sent .tooltip-color[data-v-43f4fe52] {
  background-color: #42a5f5;
}

/* Chart Legend */
.chart-legend[data-v-43f4fe52] {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding-top: 16px;
  border-top: 1px solid #e4e6ea;
}
.legend-item[data-v-43f4fe52] {
  display: flex;
  align-items: center;
  gap: 8px;
}
.legend-color[data-v-43f4fe52] {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}
.received-color[data-v-43f4fe52] {
  background-color: #1877f2;
}
.sent-color[data-v-43f4fe52] {
  background-color: #42a5f5;
}
.legend-label[data-v-43f4fe52] {
  font-size: 14px;
  color: #1c1e21;
  font-weight: 500;
}
.legend-percentage[data-v-43f4fe52] {
  font-size: 14px;
  color: #65676b;
  font-weight: 600;
}

/* ===================================
   ESTATÍSTICAS DAS MENSAGENS
   =================================== */
.messages-stats[data-v-43f4fe52] {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
}
.total-messages[data-v-43f4fe52] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}
.total-label[data-v-43f4fe52] {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}
.total-value[data-v-43f4fe52] {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}
.messages-breakdown[data-v-43f4fe52] {
  display: flex;
  gap: 1.5rem;
}
.message-stat[data-v-43f4fe52] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.stat-indicator[data-v-43f4fe52] {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}
.message-stat.received .stat-indicator[data-v-43f4fe52] {
  background: #3b82f6;
}
.message-stat.sent .stat-indicator[data-v-43f4fe52] {
  background: #10b981;
}
.stat-label[data-v-43f4fe52] {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}
.stat-value[data-v-43f4fe52] {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
}

/* ===================================
   RESPONSIVIDADE PARA CANVAS
   =================================== */
@media (max-width: 768px) {
.chart-header-meta[data-v-43f4fe52] {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}
.total-display[data-v-43f4fe52] {
    font-size: 28px;
}
.messages-canvas[data-v-43f4fe52] {
    height: 350px; /* Reduced height for mobile */
}
.chart-legend[data-v-43f4fe52] {
    flex-direction: column;
    gap: 12px;
    align-items: center;
}
.canvas-tooltip[data-v-43f4fe52] {
    font-size: 11px;
    padding: 10px 12px;
    max-width: 160px;
}
}
@media (max-width: 480px) {
.total-display[data-v-43f4fe52] {
    font-size: 24px;
}
.chart-title-meta[data-v-43f4fe52] {
    font-size: 14px;
}
.chart-subtitle[data-v-43f4fe52] {
    font-size: 11px;
}
.messages-canvas[data-v-43f4fe52] {
    height: 300px; /* Further reduced for small screens */
}
.canvas-tooltip[data-v-43f4fe52] {
    font-size: 10px;
    padding: 8px 10px;
    max-width: 140px;
}
.tooltip-date[data-v-43f4fe52] {
    font-size: 11px;
}
.tooltip-item[data-v-43f4fe52] {
    font-size: 10px;
}
}
/* ===================================
   GRÁFICO DE DISCRIMINAÇÃO MODERNO
   =================================== */
.chart-header-modern[data-v-43f4fe52] {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}
.chart-title-modern[data-v-43f4fe52] {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.025em;
}
.chart-period[data-v-43f4fe52] {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
  font-weight: 400;
}
.chart-stats-inline[data-v-43f4fe52] {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.stat-pill[data-v-43f4fe52] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
}
.stat-pill.empresa[data-v-43f4fe52] {
  background: rgba(99, 102, 241, 0.08);
  color: #4338ca;
  border: 1px solid rgba(99, 102, 241, 0.15);
}
.stat-pill.cliente[data-v-43f4fe52] {
  background: rgba(16, 185, 129, 0.08);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.15);
}
.stat-pill.novos-contatos[data-v-43f4fe52] {
  background: rgba(245, 158, 11, 0.08);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.15);
}
.stat-dot[data-v-43f4fe52] {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.stat-pill.empresa .stat-dot[data-v-43f4fe52] {
  background: #6366f1;
}
.stat-pill.cliente .stat-dot[data-v-43f4fe52] {
  background: #10b981;
}
.stat-pill.novos-contatos .stat-dot[data-v-43f4fe52] {
  background: #f59e0b;
}
.stat-text[data-v-43f4fe52] {
  white-space: nowrap;
}
.chart-content-modern[data-v-43f4fe52] {
  position: relative;
  height: 405px;
  padding: 0 0.5rem;
}
.chart-canvas-modern[data-v-43f4fe52] {
  height: 100% !important;
  width: 100% !important;
}

/* ===================================
   STATUS CARDS
   =================================== */
.status-update-bar[data-v-43f4fe52] {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 1.5rem 0;
  justify-content: flex-end;
}
.status-update-icon[data-v-43f4fe52] {
  width: 13px;
  height: 13px;
  color: #94a3b8;
}
.status-update-icon.animate-spin[data-v-43f4fe52] {
  animation: spin-43f4fe52 1s linear infinite;
}
@keyframes spin-43f4fe52 {
from { transform: rotate(0deg);
}
to { transform: rotate(360deg);
}
}
.status-update-text[data-v-43f4fe52] {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 400;
}
.status-grid[data-v-43f4fe52] {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  padding: 1.5rem;
}

/* Operador comum nao ve o card de FCR aqui (ele sobe pra linha de Metricas),
   entao sobram 4 cards de status. Em 5 colunas isso deixaria a 5a coluna vazia
   -> reduz pra 4 colunas pra preencher a linha. Os breakpoints menores (3/2/1
   coluna) ja reflowam os 4 cards sem buraco, nao precisam de ajuste. */
.status-grid--operator[data-v-43f4fe52] {
  grid-template-columns: repeat(4, 1fr);
}
.status-card[data-v-43f4fe52] {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  border-left: 4px solid transparent;
  transition: all 0.2s ease;
  min-width: 0;
  /* Mesma altura minima do .metric-card pra alinhar as duas linhas de cards. */
  min-height: 11.5rem;
}
.status-card[data-v-43f4fe52]:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}
.status-header[data-v-43f4fe52] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.status-title[data-v-43f4fe52] {
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
}
.status-icon[data-v-43f4fe52] {
  width: 1rem;
  height: 1rem;
  opacity: 0.7;
}
.status-value[data-v-43f4fe52] {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}
/* Borda com cores correspondentes */
.status-card.success[data-v-43f4fe52] {
  border-left-color: #10b981;
}
.status-card.warning[data-v-43f4fe52] {
  border-left-color: #f59e0b;
}
.status-card.neutral[data-v-43f4fe52] {
  border-left-color: #b71c1c;
}
.status-card.info[data-v-43f4fe52] {
  border-left-color: #3b82f6;
}
.status-card.active[data-v-43f4fe52] {
  border-left-color: #374151;
}
.status-card.success .status-value[data-v-43f4fe52] {
  color: #059669;
}
.status-card.success .status-icon[data-v-43f4fe52] {
  color: #10b981;
}
.status-card.active .status-value[data-v-43f4fe52] {
  color: #374151;
}
.status-card.active .status-icon[data-v-43f4fe52] {
  color: #4b5563;
}
.status-card.warning .status-value[data-v-43f4fe52] {
  color: #d97706;
}
.status-card.warning .status-icon[data-v-43f4fe52] {
  color: #f59e0b;
}
.status-card.neutral .status-value[data-v-43f4fe52] {
  color: #c04141;
}
.status-card.neutral .status-icon[data-v-43f4fe52] {
  color: #b71c1c;
}
.status-card.info .status-value[data-v-43f4fe52] {
  color: #2563eb;
}
.status-card.info .status-icon[data-v-43f4fe52] {
  color: #3b82f6;
}
.status-description[data-v-43f4fe52] {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
}

/* ===================================
   RESPONSIVIDADE POR CONTAINER
   Reage ao espaço real do .dashboard
   (sidebar aberta/fechada), não à viewport.
   Deve vir DEPOIS das definições base de
   .metrics-grid e .status-grid para sobrescrever
   corretamente grid-template-columns/padding.
   =================================== */

/* Faixa folgada: 4 cols com padding/gap reduzidos */
@container dashboard (max-width: 1100px) {
.metrics-grid[data-v-43f4fe52],
  .status-grid[data-v-43f4fe52] {
    gap: 0.75rem;
    padding: 1rem;
}
.metrics-grid .metric-card[data-v-43f4fe52],
  .status-grid .status-card[data-v-43f4fe52] {
    padding: 1rem;
    /* Padding/fonte menores aqui -> reduz a altura minima na mesma proporcao
       pra nao sobrar espaco vazio embaixo. */
    min-height: 10rem;
}
.metric-value[data-v-43f4fe52],
  .status-value[data-v-43f4fe52] {
    font-size: 1.5rem;
}
}

/* Faixa crítica: laptop 1024px + sidebar aberta → 3 + 2 */
@container dashboard (max-width: 820px) {
.metrics-grid[data-v-43f4fe52],
  .status-grid[data-v-43f4fe52] {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    padding: 0.875rem;
}
.metrics-grid .metric-card[data-v-43f4fe52],
  .status-grid .status-card[data-v-43f4fe52] {
    padding: 0.875rem;
}
.metric-value[data-v-43f4fe52],
  .status-value[data-v-43f4fe52] {
    font-size: 1.375rem;
}
.metric-description[data-v-43f4fe52],
  .status-description[data-v-43f4fe52] {
    font-size: 0.7rem;
}
}

/* Container estreito: 2 colunas */
@container dashboard (max-width: 560px) {
.metrics-grid[data-v-43f4fe52],
  .status-grid[data-v-43f4fe52] {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 0.75rem;
}
}

/* Container muito estreito: coluna única */
@container dashboard (max-width: 400px) {
.metrics-grid[data-v-43f4fe52],
  .status-grid[data-v-43f4fe52] {
    grid-template-columns: 1fr;
}
}

/* ===================================
   GRÁFICOS ADICIONAIS
   =================================== */
.additional-charts[data-v-43f4fe52] {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1.5rem;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* ===================================
   SEÇÃO DE AGENTES
   =================================== */
.agents-section[data-v-43f4fe52] {
  padding: 1.5rem;
}
.agents-card[data-v-43f4fe52] {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
}
.agents-header[data-v-43f4fe52] {
  margin-bottom: 1.25rem;
}
.agents-title[data-v-43f4fe52] {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 0.5rem 0;
}
.agents-description[data-v-43f4fe52] {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}
.agents-grid[data-v-43f4fe52] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.agent-item[data-v-43f4fe52] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid #f1f5f9;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}
.agent-item[data-v-43f4fe52]:hover {
  border-color: #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.agent-info[data-v-43f4fe52] {
  display: flex;
  flex-direction: column;
}
.agent-name[data-v-43f4fe52] {
  font-weight: 500;
  color: #0f172a;
  margin: 0 0 0.25rem 0;
}
.agent-team[data-v-43f4fe52] {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}
.agent-status[data-v-43f4fe52] {
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
}
.agent-status.online[data-v-43f4fe52] {
  background: #dcfce7;
  color: #166534;
}
.agent-status.busy[data-v-43f4fe52] {
  background: #fef3c7;
  color: #92400e;
}
.agent-status.offline[data-v-43f4fe52] {
  background: #fee2e2;
  color: #991b1b;
}

/* ===================================
   EFEITOS HOVER
   =================================== */
.stat-pill[data-v-43f4fe52]:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.stat-pill.empresa[data-v-43f4fe52]:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.25);
}
.stat-pill.cliente[data-v-43f4fe52]:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.25);
}
.stat-pill.novos-contatos[data-v-43f4fe52]:hover {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.25);
}
/* ===================================
   LOADING
   =================================== */
.metric-loading-overlay[data-v-43f4fe52] {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.7);
  z-index: 2;
}
.metric-loading[data-v-43f4fe52] {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  font-size: 1.2rem;
  color: #888;
  position: relative;
}
.metric-loading[data-v-43f4fe52]::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 32px;
  margin-right: 12px;
  border: 4px solid #e0e0e0;
  border-top: 4px solid #2563eb;
  border-radius: 50%;
  animation: metric-spin-43f4fe52 0.8s linear infinite;
  vertical-align: middle;
}
@keyframes metric-spin-43f4fe52 {
to {
    transform: rotate(360deg);
}
}
/* ===================================
   REAL TIME SECTION — header no padrao
   stylish dos cards do dashboard
   =================================== */

/* Agrupa header + tabela num card, alinhado aos chart-card */
.real-time-section[data-v-43f4fe52] {
  margin: 28px 28px 8px 28px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow:
    0 1px 3px rgba(15, 23, 42, 0.04),
    0 1px 2px rgba(15, 23, 42, 0.03);
  overflow: hidden;
}
.real-time-header[data-v-43f4fe52] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 20px 24px;
  background: linear-gradient(135deg, #fdfdfe 0%, #f8fafc 55%, #f1f5f9 100%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  position: relative;
}

/* Mesma linha de brilho superior dos demais headers stylish */
.real-time-header[data-v-43f4fe52]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}
.real-time-identity[data-v-43f4fe52] {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

/* Badge igual ao .chart-badge dos cards de cima */
.real-time-badge[data-v-43f4fe52] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.07), 0 1.5px 4px rgba(15, 23, 42, 0.04);
  border: 1px solid #f1f5f9;
}
.real-time-badge-icon[data-v-43f4fe52] {
  width: 20px;
  height: 20px;
  color: #3b82f6;
}
.real-time-meta[data-v-43f4fe52] {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.real-time-title[data-v-43f4fe52] {
  font-size: 17px;
  font-weight: 650;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.real-time-subtitle[data-v-43f4fe52] {
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

/* Botao Relatorios: pill com borda sutil, accent azul, sem glow */
.reports-button[data-v-43f4fe52] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid rgba(59, 130, 246, 0.18);
  color: #2563eb;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0.5rem 0.875rem;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}
.reports-button[data-v-43f4fe52]:hover {
  background: #eff6ff;
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
  text-decoration: none;
}

/* Feedback tatil no clique */
.reports-button[data-v-43f4fe52]:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.reports-button-icon[data-v-43f4fe52] {
  width: 17px;
  height: 17px;
}

/* Chevron desliza pra direita no hover do botao */
.reports-button-chevron[data-v-43f4fe52] {
  width: 16px;
  height: 16px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.reports-button:hover .reports-button-chevron[data-v-43f4fe52] {
  opacity: 1;
  transform: translateX(0);
}
/* ===================================
   RESPONSIVIDADE
   =================================== */

/* Nota: regras de .metrics-grid / .status-grid foram movidas para
   @container dashboard (ver seção "RESPONSIVIDADE POR CONTAINER" acima),
   para que os grids reajam ao espaço real (após sidebar), não à viewport. */
@media (max-width: 1024px) {
.header-filters[data-v-43f4fe52] {
    gap: 1rem;
}
.charts-grid[data-v-43f4fe52] {
    grid-template-columns: 1fr;
}
.chart-header-modern[data-v-43f4fe52] {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
}
.chart-stats-inline[data-v-43f4fe52] {
    justify-content: center;
    flex-wrap: wrap;
}
.chart-content-modern[data-v-43f4fe52] {
    height: 320px;
}
.messages-breakdown[data-v-43f4fe52] {
    flex-direction: column;
    gap: 0.75rem;
}
}

/* --- Tablet portrait --- */
@media (max-width: 768px) {
.dashboard[data-v-43f4fe52] {
    padding: 8px;
}
.header[data-v-43f4fe52] {
    padding: 1.5rem 1rem;
}

  /* No mobile o titulo+badge e os filtros voltam a empilhar */
.header-content[data-v-43f4fe52] {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
}
.header-filters[data-v-43f4fe52] {
    width: 100%;
    gap: 0.75rem;
}
.header-filters .filter-group[data-v-43f4fe52] {
    flex: 1 1 160px;
}
.charts-grid[data-v-43f4fe52] {
    padding: 1rem;
    gap: 0.75rem;
}
.additional-charts[data-v-43f4fe52] {
    padding: 1rem;
}
.messages-stats[data-v-43f4fe52] {
    padding: 0.75rem;
}
.total-messages[data-v-43f4fe52] {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}
.chart-header-meta[data-v-43f4fe52] {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}
.total-display[data-v-43f4fe52] {
    font-size: 28px;
}
.chart-bars-vertical[data-v-43f4fe52] {
    height: 240px;
}
.bars-area[data-v-43f4fe52] {
    height: 200px;
}
.y-axis-labels[data-v-43f4fe52] {
    height: 200px;
}
.bar-vertical[data-v-43f4fe52] {
    width: 20px;
}
.chart-legend[data-v-43f4fe52] {
    flex-direction: column;
    gap: 12px;
    align-items: center;
}
.real-time-section[data-v-43f4fe52] {
    margin: 20px 8px 8px 8px;
}
.real-time-header[data-v-43f4fe52] {
    padding: 16px;
}
.real-time-title[data-v-43f4fe52] {
    font-size: 15px;
}
}

/* --- Mobile --- */
@media (max-width: 480px) {
.dashboard[data-v-43f4fe52] {
    padding: 4px;
    font-size: 0.875rem;
}
.header[data-v-43f4fe52] {
    padding: 1rem 0.75rem;
}
.header-filters[data-v-43f4fe52] {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
}
.charts-grid[data-v-43f4fe52] {
    padding: 0.5rem;
}
.additional-charts[data-v-43f4fe52] {
    padding: 0.5rem;
}
.chart-card[data-v-43f4fe52], .agents-card[data-v-43f4fe52] {
    padding: 0.75rem;
}
.chart-canvas[data-v-43f4fe52] {
    height: 250px !important;
}
.stat-pill[data-v-43f4fe52] {
    font-size: 0.7rem;
    padding: 0.4rem 0.6rem;
}
.chart-title-modern[data-v-43f4fe52] {
    font-size: 1rem;
}
.messages-stats[data-v-43f4fe52] {
    padding: 0.5rem;
}
.total-value[data-v-43f4fe52] {
    font-size: 1.125rem;
}
.stat-value[data-v-43f4fe52] {
    font-size: 0.8rem;
}
.total-display[data-v-43f4fe52] {
    font-size: 24px;
}
.chart-title-meta[data-v-43f4fe52] {
    font-size: 14px;
}
.chart-subtitle[data-v-43f4fe52] {
    font-size: 11px;
}
.chart-bars-vertical[data-v-43f4fe52] {
    height: 200px;
    gap: 8px;
}
.bars-area[data-v-43f4fe52] {
    height: 160px;
}
.y-axis-labels[data-v-43f4fe52] {
    height: 160px;
    width: 40px;
}
.bar-vertical[data-v-43f4fe52] {
    width: 16px;
}
.bars-wrapper[data-v-43f4fe52] {
    gap: 2px;
}
.real-time-section[data-v-43f4fe52] {
    margin: 16px 4px 4px 4px;
}
.real-time-header[data-v-43f4fe52] {
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
}

  /* Botao ocupa a largura toda quando o header empilha */
.reports-button[data-v-43f4fe52] {
    justify-content: center;
}
}

.leads-conversion-card[data-v-43f4fe52] {
  padding: 1.5rem;
}

/* Taxa de conversao em verde (destaque positivo) — sobrescreve o gradient
   escuro do .metric-value-stylish herdado do home.css. */
.conversion-rate[data-v-43f4fe52] {
  background: none;
  -webkit-text-fill-color: initial;
  color: #059669;
  filter: none;
}

/* Coluna: donut (com legenda propria) no topo, rodape com total embaixo.
   Evita o overflow que acontecia ao por uma 2a legenda ao lado do donut
   (que ja ocupa 100% da largura). */
.leads-conversion-body[data-v-43f4fe52] {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.leads-footer[data-v-43f4fe52] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  min-width: 0;
}
.leads-footer-stat[data-v-43f4fe52] {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.leads-footer-label[data-v-43f4fe52] {
  font-size: 13px;
  color: #475569;
  white-space: nowrap;
}
.leads-footer-value[data-v-43f4fe52] {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}
.leads-scope-note[data-v-43f4fe52] {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: #94a3b8;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Empty state */
.leads-empty[data-v-43f4fe52] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 36px 16px;
  text-align: center;
}
.leads-empty-icon[data-v-43f4fe52] {
  width: 34px;
  height: 34px;
  color: #cbd5e1;
  stroke-width: 1.5;
}
.leads-empty-text[data-v-43f4fe52] {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
}
@media (max-width: 480px) {
.leads-footer[data-v-43f4fe52] {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}
}
/* ===================================
   RESET E BASE
   =================================== */
/* * {
  box-sizing: border-box;
} */
.fade-table-enter-active[data-v-54eea79e], .fade-table-leave-active[data-v-54eea79e] {
  transition: opacity 0.4s cubic-bezier(.4,0,.2,1);
}
.fade-table-enter[data-v-54eea79e], .fade-table-leave-to[data-v-54eea79e] {
  opacity: 0;
}
.dashboard[data-v-54eea79e] {
  /* max-width: 1400px; */
  padding: 12px;
  min-height: 100vh;
  border-radius: 12px;
  background-color: #f8fafc;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  container-type: inline-size;
  container-name: dashboard;
}
.help-badge[data-v-54eea79e] {
  position: absolute;
  right: 10px;
  bottom: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #eef2ff;
  color: #1e293b;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  cursor: default;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  outline: none;
}


/* ===================================
   HEADER E NAVEGAÇÃO
   =================================== */
.select-option.disabled[data-v-54eea79e] {
  color: #bbb;
  pointer-events: none;
  cursor: not-allowed;
}
.header[data-v-54eea79e] {
  padding: 2rem 1.5rem;
  border-radius: 12px;
  position: relative;
  overflow: visible;
}
.header-content[data-v-54eea79e] {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: 100%;
  position: relative;
  overflow: visible;
}

/* Titulo + badge de periodo agrupados a esquerda */
.header-title-wrap[data-v-54eea79e] {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
}
.header-title[data-v-54eea79e] {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
  color: #1e293b;
  letter-spacing: -0.025em;
  text-align: left;
}

/* Badge de periodo (Mês/Hoje/Semana) ao lado do titulo */
.period-badge[data-v-54eea79e] {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  background: #eff6ff;
  color: #1877f2;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.dev-overlay[data-v-54eea79e] {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px; /* ou ajuste conforme seu layout */
  width: 100%;
  background: none;
  position: static;
  box-shadow: none;
  z-index: 1;
}
.dev-overlay-content[data-v-54eea79e] {
  text-align: center;
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  padding: 3rem 2.5rem;
  border: 1px solid #e5e7eb;
}










/* ===================================
   FILTROS E CONTROLES
   =================================== */
.header-filters[data-v-54eea79e] {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.875rem;
}
.header-filters .filter-group[data-v-54eea79e] {
  min-width: 190px;
}

/* O filtro de periodo (date range) precisa de mais largura pro "dd/mm - dd/mm" */
.header-filters .filter-group--period[data-v-54eea79e] {
  min-width: 232px;
}
.filter-group[data-v-54eea79e] {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}
.filter-label-container[data-v-54eea79e] {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  justify-content: flex-start;
  padding-left: 0.125rem;
}
.filter-icon[data-v-54eea79e] {
  width: 0.875rem;
  height: 0.875rem;
  color: #94a3b8;
  flex-shrink: 0;
}

/* Label discreto acima do controle — uppercase suave, tom muted (estilo premium) */
.filter-label[data-v-54eea79e] {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}

/* Garante que ComboBox e DatePicker preencham a largura do grupo */
.filter-group .filter-control[data-v-54eea79e] {
  width: 100%;
}

/* ===================================
   HELPER TOOLTIP
   =================================== */
/* Hide help badge by default; show when hovering the card */
.help-badge[data-v-54eea79e] {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  color: #64748b;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 600;
  cursor: help;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;

  /* start hidden */
  opacity: 0;
  visibility: hidden;
  transform: scale(0.96);
  pointer-events: none;
}
.metric-card:hover .help-badge[data-v-54eea79e] {
  /* show when hovering the entire card */
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
}
.help-badge[data-v-54eea79e]:hover {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-color: #cbd5e1;
  color: #475569;
  transform: scale(1.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.help-badge[data-v-54eea79e]:focus {
  outline: none;
  box-shadow: 0 0 0 2px #3b82f6, 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* keep tooltip styles (unchanged) */
.help-tooltip[data-v-54eea79e] {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  max-width: 280px;
  background: #ffffff;
  color: #374151;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.01em;
  border: 1px solid #e5e7eb;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.02),
    0 4px 6px -1px rgba(0, 0, 0, 0.08),
    0 10px 15px -3px rgba(0, 0, 0, 0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px) scale(0.96);
  pointer-events: none;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 50;
}
.help-badge:hover .help-tooltip[data-v-54eea79e],
.help-badge:focus .help-tooltip[data-v-54eea79e] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* ===================================
   MÉTRICAS E CARDS
   =================================== */
.metrics-grid[data-v-54eea79e] {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.5rem;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Receita Gerada e sempre o ultimo card: estica da sua coluna ate o fim da
   linha, preenchendo o espaco que sobra (some o card de Agentes p/ operador
   comum -> a Receita ocupa mais; ninguem fica com coluna vazia). */
.metrics-grid .revenue-card[data-v-54eea79e] {
  grid-column: auto / -1;
}
.metric-card[data-v-54eea79e] {
  position: relative;
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  transition: all 0.2s ease;
  overflow: visible;
  min-width: 0;
  /* Altura minima compartilhada com .status-card pra que as duas linhas de
     cards (Metricas em cima, Status embaixo) fiquem alinhadas, mesmo com
     quantidades diferentes de texto. Conteudo fica ancorado no topo. */
  min-height: 11.5rem;
}
.metric-card[data-v-54eea79e]:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}
.metric-header[data-v-54eea79e] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.metric-title[data-v-54eea79e] {
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
}
.metric-icon[data-v-54eea79e] {
  width: 1rem;
  height: 1rem;
  color: #64748b;
}
.metric-value[data-v-54eea79e] {
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}
.metric-description[data-v-54eea79e] {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0 0 0.75rem 0;
}
.metric-trend[data-v-54eea79e] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.metric-trend.positive .trend-text[data-v-54eea79e] {
  color: #059669;
}
.metric-trend.negative .trend-text[data-v-54eea79e] {
  color: #dc2626;
}
.trend-icon[data-v-54eea79e] {
  width: 0.75rem;
  height: 0.75rem;
}
.metric-trend.positive .trend-icon[data-v-54eea79e] {
  color: #059669;
}
.metric-trend.negative .trend-icon[data-v-54eea79e] {
  color: #dc2626;
  transform: rotate(180deg);
}
.trend-text[data-v-54eea79e] {
  font-size: 0.75rem;
  font-weight: 500;
}
.metric-badge .badge[data-v-54eea79e] {
  background: #f1f5f9;
  color: #475569;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
}
.rating-container[data-v-54eea79e] {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.stars[data-v-54eea79e] {
  display: flex;
}
.star-wrapper[data-v-54eea79e] {
  position: relative;
  display: inline-flex;
  width: 0.75rem;
  height: 0.75rem;
}
.star-icon[data-v-54eea79e] {
  width: 0.75rem;
  height: 0.75rem;
  color: #d1d5db;
}

/* Overlay amarelo sobreposto à estrela cinza base */
.star-icon-overlay[data-v-54eea79e] {
  position: absolute;
  top: 0;
  left: 0;
  color: #fbbf24;
  fill: #fbbf24;
}
.star-icon.filled[data-v-54eea79e] {
  color: #fbbf24;
  fill: #fbbf24;
}

/* Meia estrela: corta a metade direita do overlay, mostrando a cinza de baixo */
.star-icon.half-filled[data-v-54eea79e] {
  clip-path: inset(0 50% 0 0);
}
.rating-count[data-v-54eea79e] {
  font-size: 0.75rem;
  color: #6b7280;
}

/* ===================================
   GRÁFICOS - LAYOUT GERAL
   =================================== */
.charts-grid[data-v-54eea79e] {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1.5rem;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Variante de coluna unica: usada quando o Chart de Mensagens esta
   desativado e so a Discriminacao de Conversas e exibida (ocupa a largura
   toda). Remover esta classe do wrapper se o Chart de Mensagens voltar. */
.charts-grid--single[data-v-54eea79e] {
  grid-template-columns: 1fr;
}
.chart-messages[data-v-54eea79e] {
  min-height: 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(148, 163, 184, 0.1);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
}
.chart-card[data-v-54eea79e] {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  min-width: 0;
  overflow: hidden;
}
.chart-header[data-v-54eea79e] {
  margin-bottom: 1.25rem;
}
.chart-title[data-v-54eea79e] {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.chart-title-icon[data-v-54eea79e] {
  width: 1.25rem;
  height: 1.25rem;
  color: #64748b;
}
.chart-description[data-v-54eea79e] {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}
.chart-content[data-v-54eea79e] {
  position: relative;
}
.chart-canvas[data-v-54eea79e] {
  height: 300px !important;
}
/* ===================================
   GRÁFICO DE MENSAGENS - CANVAS META STYLE
   =================================== */
.chart-header-meta[data-v-54eea79e] {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e4e6ea;
}
.chart-title-section[data-v-54eea79e] {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.chart-title-meta[data-v-54eea79e] {
  font-size: 16px;
  font-weight: 600;
  color: #1c1e21;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chart-title-icon[data-v-54eea79e] {
  width: 16px;
  height: 16px;
  color: #65676b;
}
.chart-subtitle[data-v-54eea79e] {
  font-size: 12px;
  color: #65676b;
  margin: 0;
  font-weight: 400;
}
.total-display[data-v-54eea79e] {
  font-size: 32px;
  font-weight: 700;
  color: #1c1e21;
  line-height: 1;
}
.chart-header-stylish[data-v-54eea79e] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  padding: 24px 28px;
  background: linear-gradient(135deg, #fdfdfe 0%, #f8fafc 50%, #f1f5f9 100%);
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.06);
  box-shadow:
    0 1px 3px rgba(15, 23, 42, 0.04),
    0 1px 2px rgba(15, 23, 42, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}
.chart-header-stylish[data-v-54eea79e]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}
.chart-identity[data-v-54eea79e] {
  display: flex;
  align-items: center;
  gap: 14px;
}
.chart-badge[data-v-54eea79e] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.07), 0 1.5px 4px rgba(15, 23, 42, 0.04);
  border: 1px solid #f1f5f9;
  position: relative;
  transition: box-shadow 0.2s;
}
.chart-badge[data-v-54eea79e]::before {
  display: none;
}
.badge-icon[data-v-54eea79e] {
  width: 20px;
  height: 20px;
  color: #3b82f6;
  filter: none;
  position: relative;
  z-index: 1;
  transition: color 0.2s;
}
.chart-meta[data-v-54eea79e] {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.chart-title-stylish[data-v-54eea79e] {
  font-size: 17px;
  font-weight: 650;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.chart-period-tag[data-v-54eea79e] {
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.08em;
  opacity: 0.85;
}
.metric-highlight[data-v-54eea79e] {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.metric-label[data-v-54eea79e] {
  font-size: 8px;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0.8;
}
.metric-value-stylish[data-v-54eea79e] {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  line-height: 0.9;
  background: linear-gradient(135deg, #0f172a 0%, #334155 50%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.1));
  letter-spacing: -0.03em;
}
.chart-legend-mini[data-v-54eea79e] {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}
.legend-item-mini[data-v-54eea79e] {
  display: flex;
  align-items: center;
  gap: 4px;
}
.legend-dot[data-v-54eea79e] {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.legend-text[data-v-54eea79e] {
  font-size: 10px;
  color: #64748b;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Responsividade */
@media (max-width: 768px) {
.chart-legend-mini[data-v-54eea79e] {
    gap: 8px;
}
.legend-text[data-v-54eea79e] {
    font-size: 8px;
}
.legend-dot[data-v-54eea79e] {
    width: 5px;
    height: 5px;
}
}
@media (max-width: 480px) {
.chart-legend-mini[data-v-54eea79e] {
    flex-direction: column;
    gap: 2px;
    margin-top: 2px;
}
}
/* Responsividade refinada */
@media (max-width: 768px) {
.chart-header-stylish[data-v-54eea79e] {
    padding: 20px 22px;
    margin-bottom: 22px;
    border-radius: 14px;
}
.chart-badge[data-v-54eea79e] {
    width: 38px;
    height: 38px;
    border-radius: 10px;
}
.chart-badge[data-v-54eea79e]::before {
    border-radius: 9px;
}
.badge-icon[data-v-54eea79e] {
    width: 17px;
    height: 17px;
}
.chart-title-stylish[data-v-54eea79e] {
    font-size: 15px;
    font-weight: 600;
}
.chart-period-tag[data-v-54eea79e] {
    font-size: 9px;
}
.metric-value-stylish[data-v-54eea79e] {
    font-size: 26px;
}
.chart-identity[data-v-54eea79e] {
    gap: 12px;
}
}
@media (max-width: 480px) {
.chart-header-stylish[data-v-54eea79e] {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    text-align: left;
    padding: 18px 20px;
    border-radius: 12px;
}
.metric-highlight[data-v-54eea79e] {
    align-items: flex-start;
    width: 100%;
}
.metric-value-stylish[data-v-54eea79e] {
    font-size: 25px;
    font-weight: 900;
}
.metric-label[data-v-54eea79e] {
    font-size: 8px;
}
.chart-title-stylish[data-v-54eea79e] {
    font-size: 16px;
}
}


/* Canvas Chart Container */
.canvas-chart-container[data-v-54eea79e] {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.messages-canvas[data-v-54eea79e] {
  width: 100%;
  height: 420px; /* Increased height */
  border-radius: 4px;
  cursor: default;
}

/* Canvas Tooltip Styles - Positioned closer to bars */
.canvas-tooltip[data-v-54eea79e] {
  position: absolute;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 12px;
  pointer-events: none;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-width: 200px;
  min-width: 140px;
 transform: translateX(12px);
}
.tooltip-content[data-v-54eea79e] {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tooltip-date[data-v-54eea79e] {
  font-weight: 600;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 6px;
  text-align: center;
}
.tooltip-values[data-v-54eea79e] {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tooltip-item[data-v-54eea79e] {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.tooltip-color[data-v-54eea79e] {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}
.tooltip-item.received .tooltip-color[data-v-54eea79e] {
  background-color: #1877f2;
}
.tooltip-item.sent .tooltip-color[data-v-54eea79e] {
  background-color: #42a5f5;
}

/* Chart Legend */
.chart-legend[data-v-54eea79e] {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding-top: 16px;
  border-top: 1px solid #e4e6ea;
}
.legend-item[data-v-54eea79e] {
  display: flex;
  align-items: center;
  gap: 8px;
}
.legend-color[data-v-54eea79e] {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}
.received-color[data-v-54eea79e] {
  background-color: #1877f2;
}
.sent-color[data-v-54eea79e] {
  background-color: #42a5f5;
}
.legend-label[data-v-54eea79e] {
  font-size: 14px;
  color: #1c1e21;
  font-weight: 500;
}
.legend-percentage[data-v-54eea79e] {
  font-size: 14px;
  color: #65676b;
  font-weight: 600;
}

/* ===================================
   ESTATÍSTICAS DAS MENSAGENS
   =================================== */
.messages-stats[data-v-54eea79e] {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
}
.total-messages[data-v-54eea79e] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}
.total-label[data-v-54eea79e] {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}
.total-value[data-v-54eea79e] {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}
.messages-breakdown[data-v-54eea79e] {
  display: flex;
  gap: 1.5rem;
}
.message-stat[data-v-54eea79e] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.stat-indicator[data-v-54eea79e] {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}
.message-stat.received .stat-indicator[data-v-54eea79e] {
  background: #3b82f6;
}
.message-stat.sent .stat-indicator[data-v-54eea79e] {
  background: #10b981;
}
.stat-label[data-v-54eea79e] {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}
.stat-value[data-v-54eea79e] {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
}

/* ===================================
   RESPONSIVIDADE PARA CANVAS
   =================================== */
@media (max-width: 768px) {
.chart-header-meta[data-v-54eea79e] {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}
.total-display[data-v-54eea79e] {
    font-size: 28px;
}
.messages-canvas[data-v-54eea79e] {
    height: 350px; /* Reduced height for mobile */
}
.chart-legend[data-v-54eea79e] {
    flex-direction: column;
    gap: 12px;
    align-items: center;
}
.canvas-tooltip[data-v-54eea79e] {
    font-size: 11px;
    padding: 10px 12px;
    max-width: 160px;
}
}
@media (max-width: 480px) {
.total-display[data-v-54eea79e] {
    font-size: 24px;
}
.chart-title-meta[data-v-54eea79e] {
    font-size: 14px;
}
.chart-subtitle[data-v-54eea79e] {
    font-size: 11px;
}
.messages-canvas[data-v-54eea79e] {
    height: 300px; /* Further reduced for small screens */
}
.canvas-tooltip[data-v-54eea79e] {
    font-size: 10px;
    padding: 8px 10px;
    max-width: 140px;
}
.tooltip-date[data-v-54eea79e] {
    font-size: 11px;
}
.tooltip-item[data-v-54eea79e] {
    font-size: 10px;
}
}
/* ===================================
   GRÁFICO DE DISCRIMINAÇÃO MODERNO
   =================================== */
.chart-header-modern[data-v-54eea79e] {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}
.chart-title-modern[data-v-54eea79e] {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.025em;
}
.chart-period[data-v-54eea79e] {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
  font-weight: 400;
}
.chart-stats-inline[data-v-54eea79e] {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.stat-pill[data-v-54eea79e] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
}
.stat-pill.empresa[data-v-54eea79e] {
  background: rgba(99, 102, 241, 0.08);
  color: #4338ca;
  border: 1px solid rgba(99, 102, 241, 0.15);
}
.stat-pill.cliente[data-v-54eea79e] {
  background: rgba(16, 185, 129, 0.08);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.15);
}
.stat-pill.novos-contatos[data-v-54eea79e] {
  background: rgba(245, 158, 11, 0.08);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.15);
}
.stat-dot[data-v-54eea79e] {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.stat-pill.empresa .stat-dot[data-v-54eea79e] {
  background: #6366f1;
}
.stat-pill.cliente .stat-dot[data-v-54eea79e] {
  background: #10b981;
}
.stat-pill.novos-contatos .stat-dot[data-v-54eea79e] {
  background: #f59e0b;
}
.stat-text[data-v-54eea79e] {
  white-space: nowrap;
}
.chart-content-modern[data-v-54eea79e] {
  position: relative;
  height: 405px;
  padding: 0 0.5rem;
}
.chart-canvas-modern[data-v-54eea79e] {
  height: 100% !important;
  width: 100% !important;
}

/* ===================================
   STATUS CARDS
   =================================== */
.status-update-bar[data-v-54eea79e] {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 1.5rem 0;
  justify-content: flex-end;
}
.status-update-icon[data-v-54eea79e] {
  width: 13px;
  height: 13px;
  color: #94a3b8;
}
.status-update-icon.animate-spin[data-v-54eea79e] {
  animation: spin-54eea79e 1s linear infinite;
}
@keyframes spin-54eea79e {
from { transform: rotate(0deg);
}
to { transform: rotate(360deg);
}
}
.status-update-text[data-v-54eea79e] {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 400;
}
.status-grid[data-v-54eea79e] {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  padding: 1.5rem;
}

/* Operador comum nao ve o card de FCR aqui (ele sobe pra linha de Metricas),
   entao sobram 4 cards de status. Em 5 colunas isso deixaria a 5a coluna vazia
   -> reduz pra 4 colunas pra preencher a linha. Os breakpoints menores (3/2/1
   coluna) ja reflowam os 4 cards sem buraco, nao precisam de ajuste. */
.status-grid--operator[data-v-54eea79e] {
  grid-template-columns: repeat(4, 1fr);
}
.status-card[data-v-54eea79e] {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  border-left: 4px solid transparent;
  transition: all 0.2s ease;
  min-width: 0;
  /* Mesma altura minima do .metric-card pra alinhar as duas linhas de cards. */
  min-height: 11.5rem;
}
.status-card[data-v-54eea79e]:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}
.status-header[data-v-54eea79e] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.status-title[data-v-54eea79e] {
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
}
.status-icon[data-v-54eea79e] {
  width: 1rem;
  height: 1rem;
  opacity: 0.7;
}
.status-value[data-v-54eea79e] {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}
/* Borda com cores correspondentes */
.status-card.success[data-v-54eea79e] {
  border-left-color: #10b981;
}
.status-card.warning[data-v-54eea79e] {
  border-left-color: #f59e0b;
}
.status-card.neutral[data-v-54eea79e] {
  border-left-color: #b71c1c;
}
.status-card.info[data-v-54eea79e] {
  border-left-color: #3b82f6;
}
.status-card.active[data-v-54eea79e] {
  border-left-color: #374151;
}
.status-card.success .status-value[data-v-54eea79e] {
  color: #059669;
}
.status-card.success .status-icon[data-v-54eea79e] {
  color: #10b981;
}
.status-card.active .status-value[data-v-54eea79e] {
  color: #374151;
}
.status-card.active .status-icon[data-v-54eea79e] {
  color: #4b5563;
}
.status-card.warning .status-value[data-v-54eea79e] {
  color: #d97706;
}
.status-card.warning .status-icon[data-v-54eea79e] {
  color: #f59e0b;
}
.status-card.neutral .status-value[data-v-54eea79e] {
  color: #c04141;
}
.status-card.neutral .status-icon[data-v-54eea79e] {
  color: #b71c1c;
}
.status-card.info .status-value[data-v-54eea79e] {
  color: #2563eb;
}
.status-card.info .status-icon[data-v-54eea79e] {
  color: #3b82f6;
}
.status-description[data-v-54eea79e] {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
}

/* ===================================
   RESPONSIVIDADE POR CONTAINER
   Reage ao espaço real do .dashboard
   (sidebar aberta/fechada), não à viewport.
   Deve vir DEPOIS das definições base de
   .metrics-grid e .status-grid para sobrescrever
   corretamente grid-template-columns/padding.
   =================================== */

/* Faixa folgada: 4 cols com padding/gap reduzidos */
@container dashboard (max-width: 1100px) {
.metrics-grid[data-v-54eea79e],
  .status-grid[data-v-54eea79e] {
    gap: 0.75rem;
    padding: 1rem;
}
.metrics-grid .metric-card[data-v-54eea79e],
  .status-grid .status-card[data-v-54eea79e] {
    padding: 1rem;
    /* Padding/fonte menores aqui -> reduz a altura minima na mesma proporcao
       pra nao sobrar espaco vazio embaixo. */
    min-height: 10rem;
}
.metric-value[data-v-54eea79e],
  .status-value[data-v-54eea79e] {
    font-size: 1.5rem;
}
}

/* Faixa crítica: laptop 1024px + sidebar aberta → 3 + 2 */
@container dashboard (max-width: 820px) {
.metrics-grid[data-v-54eea79e],
  .status-grid[data-v-54eea79e] {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    padding: 0.875rem;
}
.metrics-grid .metric-card[data-v-54eea79e],
  .status-grid .status-card[data-v-54eea79e] {
    padding: 0.875rem;
}
.metric-value[data-v-54eea79e],
  .status-value[data-v-54eea79e] {
    font-size: 1.375rem;
}
.metric-description[data-v-54eea79e],
  .status-description[data-v-54eea79e] {
    font-size: 0.7rem;
}
}

/* Container estreito: 2 colunas */
@container dashboard (max-width: 560px) {
.metrics-grid[data-v-54eea79e],
  .status-grid[data-v-54eea79e] {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 0.75rem;
}
}

/* Container muito estreito: coluna única */
@container dashboard (max-width: 400px) {
.metrics-grid[data-v-54eea79e],
  .status-grid[data-v-54eea79e] {
    grid-template-columns: 1fr;
}
}

/* ===================================
   GRÁFICOS ADICIONAIS
   =================================== */
.additional-charts[data-v-54eea79e] {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1.5rem;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* ===================================
   SEÇÃO DE AGENTES
   =================================== */
.agents-section[data-v-54eea79e] {
  padding: 1.5rem;
}
.agents-card[data-v-54eea79e] {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
}
.agents-header[data-v-54eea79e] {
  margin-bottom: 1.25rem;
}
.agents-title[data-v-54eea79e] {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 0.5rem 0;
}
.agents-description[data-v-54eea79e] {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}
.agents-grid[data-v-54eea79e] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.agent-item[data-v-54eea79e] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid #f1f5f9;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}
.agent-item[data-v-54eea79e]:hover {
  border-color: #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.agent-info[data-v-54eea79e] {
  display: flex;
  flex-direction: column;
}
.agent-name[data-v-54eea79e] {
  font-weight: 500;
  color: #0f172a;
  margin: 0 0 0.25rem 0;
}
.agent-team[data-v-54eea79e] {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}
.agent-status[data-v-54eea79e] {
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
}
.agent-status.online[data-v-54eea79e] {
  background: #dcfce7;
  color: #166534;
}
.agent-status.busy[data-v-54eea79e] {
  background: #fef3c7;
  color: #92400e;
}
.agent-status.offline[data-v-54eea79e] {
  background: #fee2e2;
  color: #991b1b;
}

/* ===================================
   EFEITOS HOVER
   =================================== */
.stat-pill[data-v-54eea79e]:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.stat-pill.empresa[data-v-54eea79e]:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.25);
}
.stat-pill.cliente[data-v-54eea79e]:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.25);
}
.stat-pill.novos-contatos[data-v-54eea79e]:hover {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.25);
}
/* ===================================
   LOADING
   =================================== */
.metric-loading-overlay[data-v-54eea79e] {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.7);
  z-index: 2;
}
.metric-loading[data-v-54eea79e] {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  font-size: 1.2rem;
  color: #888;
  position: relative;
}
.metric-loading[data-v-54eea79e]::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 32px;
  margin-right: 12px;
  border: 4px solid #e0e0e0;
  border-top: 4px solid #2563eb;
  border-radius: 50%;
  animation: metric-spin-54eea79e 0.8s linear infinite;
  vertical-align: middle;
}
@keyframes metric-spin-54eea79e {
to {
    transform: rotate(360deg);
}
}
/* ===================================
   REAL TIME SECTION — header no padrao
   stylish dos cards do dashboard
   =================================== */

/* Agrupa header + tabela num card, alinhado aos chart-card */
.real-time-section[data-v-54eea79e] {
  margin: 28px 28px 8px 28px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow:
    0 1px 3px rgba(15, 23, 42, 0.04),
    0 1px 2px rgba(15, 23, 42, 0.03);
  overflow: hidden;
}
.real-time-header[data-v-54eea79e] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 20px 24px;
  background: linear-gradient(135deg, #fdfdfe 0%, #f8fafc 55%, #f1f5f9 100%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  position: relative;
}

/* Mesma linha de brilho superior dos demais headers stylish */
.real-time-header[data-v-54eea79e]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}
.real-time-identity[data-v-54eea79e] {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

/* Badge igual ao .chart-badge dos cards de cima */
.real-time-badge[data-v-54eea79e] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.07), 0 1.5px 4px rgba(15, 23, 42, 0.04);
  border: 1px solid #f1f5f9;
}
.real-time-badge-icon[data-v-54eea79e] {
  width: 20px;
  height: 20px;
  color: #3b82f6;
}
.real-time-meta[data-v-54eea79e] {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.real-time-title[data-v-54eea79e] {
  font-size: 17px;
  font-weight: 650;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.real-time-subtitle[data-v-54eea79e] {
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

/* Botao Relatorios: pill com borda sutil, accent azul, sem glow */
.reports-button[data-v-54eea79e] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid rgba(59, 130, 246, 0.18);
  color: #2563eb;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0.5rem 0.875rem;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}
.reports-button[data-v-54eea79e]:hover {
  background: #eff6ff;
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
  text-decoration: none;
}

/* Feedback tatil no clique */
.reports-button[data-v-54eea79e]:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.reports-button-icon[data-v-54eea79e] {
  width: 17px;
  height: 17px;
}

/* Chevron desliza pra direita no hover do botao */
.reports-button-chevron[data-v-54eea79e] {
  width: 16px;
  height: 16px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.reports-button:hover .reports-button-chevron[data-v-54eea79e] {
  opacity: 1;
  transform: translateX(0);
}
/* ===================================
   RESPONSIVIDADE
   =================================== */

/* Nota: regras de .metrics-grid / .status-grid foram movidas para
   @container dashboard (ver seção "RESPONSIVIDADE POR CONTAINER" acima),
   para que os grids reajam ao espaço real (após sidebar), não à viewport. */
@media (max-width: 1024px) {
.header-filters[data-v-54eea79e] {
    gap: 1rem;
}
.charts-grid[data-v-54eea79e] {
    grid-template-columns: 1fr;
}
.chart-header-modern[data-v-54eea79e] {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
}
.chart-stats-inline[data-v-54eea79e] {
    justify-content: center;
    flex-wrap: wrap;
}
.chart-content-modern[data-v-54eea79e] {
    height: 320px;
}
.messages-breakdown[data-v-54eea79e] {
    flex-direction: column;
    gap: 0.75rem;
}
}

/* --- Tablet portrait --- */
@media (max-width: 768px) {
.dashboard[data-v-54eea79e] {
    padding: 8px;
}
.header[data-v-54eea79e] {
    padding: 1.5rem 1rem;
}

  /* No mobile o titulo+badge e os filtros voltam a empilhar */
.header-content[data-v-54eea79e] {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
}
.header-filters[data-v-54eea79e] {
    width: 100%;
    gap: 0.75rem;
}
.header-filters .filter-group[data-v-54eea79e] {
    flex: 1 1 160px;
}
.charts-grid[data-v-54eea79e] {
    padding: 1rem;
    gap: 0.75rem;
}
.additional-charts[data-v-54eea79e] {
    padding: 1rem;
}
.messages-stats[data-v-54eea79e] {
    padding: 0.75rem;
}
.total-messages[data-v-54eea79e] {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}
.chart-header-meta[data-v-54eea79e] {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}
.total-display[data-v-54eea79e] {
    font-size: 28px;
}
.chart-bars-vertical[data-v-54eea79e] {
    height: 240px;
}
.bars-area[data-v-54eea79e] {
    height: 200px;
}
.y-axis-labels[data-v-54eea79e] {
    height: 200px;
}
.bar-vertical[data-v-54eea79e] {
    width: 20px;
}
.chart-legend[data-v-54eea79e] {
    flex-direction: column;
    gap: 12px;
    align-items: center;
}
.real-time-section[data-v-54eea79e] {
    margin: 20px 8px 8px 8px;
}
.real-time-header[data-v-54eea79e] {
    padding: 16px;
}
.real-time-title[data-v-54eea79e] {
    font-size: 15px;
}
}

/* --- Mobile --- */
@media (max-width: 480px) {
.dashboard[data-v-54eea79e] {
    padding: 4px;
    font-size: 0.875rem;
}
.header[data-v-54eea79e] {
    padding: 1rem 0.75rem;
}
.header-filters[data-v-54eea79e] {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
}
.charts-grid[data-v-54eea79e] {
    padding: 0.5rem;
}
.additional-charts[data-v-54eea79e] {
    padding: 0.5rem;
}
.chart-card[data-v-54eea79e], .agents-card[data-v-54eea79e] {
    padding: 0.75rem;
}
.chart-canvas[data-v-54eea79e] {
    height: 250px !important;
}
.stat-pill[data-v-54eea79e] {
    font-size: 0.7rem;
    padding: 0.4rem 0.6rem;
}
.chart-title-modern[data-v-54eea79e] {
    font-size: 1rem;
}
.messages-stats[data-v-54eea79e] {
    padding: 0.5rem;
}
.total-value[data-v-54eea79e] {
    font-size: 1.125rem;
}
.stat-value[data-v-54eea79e] {
    font-size: 0.8rem;
}
.total-display[data-v-54eea79e] {
    font-size: 24px;
}
.chart-title-meta[data-v-54eea79e] {
    font-size: 14px;
}
.chart-subtitle[data-v-54eea79e] {
    font-size: 11px;
}
.chart-bars-vertical[data-v-54eea79e] {
    height: 200px;
    gap: 8px;
}
.bars-area[data-v-54eea79e] {
    height: 160px;
}
.y-axis-labels[data-v-54eea79e] {
    height: 160px;
    width: 40px;
}
.bar-vertical[data-v-54eea79e] {
    width: 16px;
}
.bars-wrapper[data-v-54eea79e] {
    gap: 2px;
}
.real-time-section[data-v-54eea79e] {
    margin: 16px 4px 4px 4px;
}
.real-time-header[data-v-54eea79e] {
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
}

  /* Botao ocupa a largura toda quando o header empilha */
.reports-button[data-v-54eea79e] {
    justify-content: center;
}
}
/* ===================================
   RESET E BASE
   =================================== */
/* * {
  box-sizing: border-box;
} */
.fade-table-enter-active[data-v-9c624ff0], .fade-table-leave-active[data-v-9c624ff0] {
  transition: opacity 0.4s cubic-bezier(.4,0,.2,1);
}
.fade-table-enter[data-v-9c624ff0], .fade-table-leave-to[data-v-9c624ff0] {
  opacity: 0;
}
.dashboard[data-v-9c624ff0] {
  /* max-width: 1400px; */
  padding: 12px;
  min-height: 100vh;
  border-radius: 12px;
  background-color: #f8fafc;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  container-type: inline-size;
  container-name: dashboard;
}
.help-badge[data-v-9c624ff0] {
  position: absolute;
  right: 10px;
  bottom: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #eef2ff;
  color: #1e293b;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  cursor: default;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  outline: none;
}


/* ===================================
   HEADER E NAVEGAÇÃO
   =================================== */
.select-option.disabled[data-v-9c624ff0] {
  color: #bbb;
  pointer-events: none;
  cursor: not-allowed;
}
.header[data-v-9c624ff0] {
  padding: 2rem 1.5rem;
  border-radius: 12px;
  position: relative;
  overflow: visible;
}
.header-content[data-v-9c624ff0] {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: 100%;
  position: relative;
  overflow: visible;
}

/* Titulo + badge de periodo agrupados a esquerda */
.header-title-wrap[data-v-9c624ff0] {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
}
.header-title[data-v-9c624ff0] {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
  color: #1e293b;
  letter-spacing: -0.025em;
  text-align: left;
}

/* Badge de periodo (Mês/Hoje/Semana) ao lado do titulo */
.period-badge[data-v-9c624ff0] {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  background: #eff6ff;
  color: #1877f2;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.dev-overlay[data-v-9c624ff0] {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px; /* ou ajuste conforme seu layout */
  width: 100%;
  background: none;
  position: static;
  box-shadow: none;
  z-index: 1;
}
.dev-overlay-content[data-v-9c624ff0] {
  text-align: center;
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  padding: 3rem 2.5rem;
  border: 1px solid #e5e7eb;
}










/* ===================================
   FILTROS E CONTROLES
   =================================== */
.header-filters[data-v-9c624ff0] {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.875rem;
}
.header-filters .filter-group[data-v-9c624ff0] {
  min-width: 190px;
}

/* O filtro de periodo (date range) precisa de mais largura pro "dd/mm - dd/mm" */
.header-filters .filter-group--period[data-v-9c624ff0] {
  min-width: 232px;
}
.filter-group[data-v-9c624ff0] {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}
.filter-label-container[data-v-9c624ff0] {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  justify-content: flex-start;
  padding-left: 0.125rem;
}
.filter-icon[data-v-9c624ff0] {
  width: 0.875rem;
  height: 0.875rem;
  color: #94a3b8;
  flex-shrink: 0;
}

/* Label discreto acima do controle — uppercase suave, tom muted (estilo premium) */
.filter-label[data-v-9c624ff0] {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}

/* Garante que ComboBox e DatePicker preencham a largura do grupo */
.filter-group .filter-control[data-v-9c624ff0] {
  width: 100%;
}

/* ===================================
   HELPER TOOLTIP
   =================================== */
/* Hide help badge by default; show when hovering the card */
.help-badge[data-v-9c624ff0] {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  color: #64748b;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 600;
  cursor: help;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;

  /* start hidden */
  opacity: 0;
  visibility: hidden;
  transform: scale(0.96);
  pointer-events: none;
}
.metric-card:hover .help-badge[data-v-9c624ff0] {
  /* show when hovering the entire card */
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
}
.help-badge[data-v-9c624ff0]:hover {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-color: #cbd5e1;
  color: #475569;
  transform: scale(1.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.help-badge[data-v-9c624ff0]:focus {
  outline: none;
  box-shadow: 0 0 0 2px #3b82f6, 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* keep tooltip styles (unchanged) */
.help-tooltip[data-v-9c624ff0] {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  max-width: 280px;
  background: #ffffff;
  color: #374151;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.01em;
  border: 1px solid #e5e7eb;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.02),
    0 4px 6px -1px rgba(0, 0, 0, 0.08),
    0 10px 15px -3px rgba(0, 0, 0, 0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px) scale(0.96);
  pointer-events: none;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 50;
}
.help-badge:hover .help-tooltip[data-v-9c624ff0],
.help-badge:focus .help-tooltip[data-v-9c624ff0] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* ===================================
   MÉTRICAS E CARDS
   =================================== */
.metrics-grid[data-v-9c624ff0] {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.5rem;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Receita Gerada e sempre o ultimo card: estica da sua coluna ate o fim da
   linha, preenchendo o espaco que sobra (some o card de Agentes p/ operador
   comum -> a Receita ocupa mais; ninguem fica com coluna vazia). */
.metrics-grid .revenue-card[data-v-9c624ff0] {
  grid-column: auto / -1;
}
.metric-card[data-v-9c624ff0] {
  position: relative;
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  transition: all 0.2s ease;
  overflow: visible;
  min-width: 0;
  /* Altura minima compartilhada com .status-card pra que as duas linhas de
     cards (Metricas em cima, Status embaixo) fiquem alinhadas, mesmo com
     quantidades diferentes de texto. Conteudo fica ancorado no topo. */
  min-height: 11.5rem;
}
.metric-card[data-v-9c624ff0]:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}
.metric-header[data-v-9c624ff0] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.metric-title[data-v-9c624ff0] {
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
}
.metric-icon[data-v-9c624ff0] {
  width: 1rem;
  height: 1rem;
  color: #64748b;
}
.metric-value[data-v-9c624ff0] {
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}
.metric-description[data-v-9c624ff0] {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0 0 0.75rem 0;
}
.metric-trend[data-v-9c624ff0] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.metric-trend.positive .trend-text[data-v-9c624ff0] {
  color: #059669;
}
.metric-trend.negative .trend-text[data-v-9c624ff0] {
  color: #dc2626;
}
.trend-icon[data-v-9c624ff0] {
  width: 0.75rem;
  height: 0.75rem;
}
.metric-trend.positive .trend-icon[data-v-9c624ff0] {
  color: #059669;
}
.metric-trend.negative .trend-icon[data-v-9c624ff0] {
  color: #dc2626;
  transform: rotate(180deg);
}
.trend-text[data-v-9c624ff0] {
  font-size: 0.75rem;
  font-weight: 500;
}
.metric-badge .badge[data-v-9c624ff0] {
  background: #f1f5f9;
  color: #475569;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
}
.rating-container[data-v-9c624ff0] {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.stars[data-v-9c624ff0] {
  display: flex;
}
.star-wrapper[data-v-9c624ff0] {
  position: relative;
  display: inline-flex;
  width: 0.75rem;
  height: 0.75rem;
}
.star-icon[data-v-9c624ff0] {
  width: 0.75rem;
  height: 0.75rem;
  color: #d1d5db;
}

/* Overlay amarelo sobreposto à estrela cinza base */
.star-icon-overlay[data-v-9c624ff0] {
  position: absolute;
  top: 0;
  left: 0;
  color: #fbbf24;
  fill: #fbbf24;
}
.star-icon.filled[data-v-9c624ff0] {
  color: #fbbf24;
  fill: #fbbf24;
}

/* Meia estrela: corta a metade direita do overlay, mostrando a cinza de baixo */
.star-icon.half-filled[data-v-9c624ff0] {
  clip-path: inset(0 50% 0 0);
}
.rating-count[data-v-9c624ff0] {
  font-size: 0.75rem;
  color: #6b7280;
}

/* ===================================
   GRÁFICOS - LAYOUT GERAL
   =================================== */
.charts-grid[data-v-9c624ff0] {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1.5rem;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Variante de coluna unica: usada quando o Chart de Mensagens esta
   desativado e so a Discriminacao de Conversas e exibida (ocupa a largura
   toda). Remover esta classe do wrapper se o Chart de Mensagens voltar. */
.charts-grid--single[data-v-9c624ff0] {
  grid-template-columns: 1fr;
}
.chart-messages[data-v-9c624ff0] {
  min-height: 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(148, 163, 184, 0.1);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
}
.chart-card[data-v-9c624ff0] {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  min-width: 0;
  overflow: hidden;
}
.chart-header[data-v-9c624ff0] {
  margin-bottom: 1.25rem;
}
.chart-title[data-v-9c624ff0] {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.chart-title-icon[data-v-9c624ff0] {
  width: 1.25rem;
  height: 1.25rem;
  color: #64748b;
}
.chart-description[data-v-9c624ff0] {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}
.chart-content[data-v-9c624ff0] {
  position: relative;
}
.chart-canvas[data-v-9c624ff0] {
  height: 300px !important;
}
/* ===================================
   GRÁFICO DE MENSAGENS - CANVAS META STYLE
   =================================== */
.chart-header-meta[data-v-9c624ff0] {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e4e6ea;
}
.chart-title-section[data-v-9c624ff0] {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.chart-title-meta[data-v-9c624ff0] {
  font-size: 16px;
  font-weight: 600;
  color: #1c1e21;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chart-title-icon[data-v-9c624ff0] {
  width: 16px;
  height: 16px;
  color: #65676b;
}
.chart-subtitle[data-v-9c624ff0] {
  font-size: 12px;
  color: #65676b;
  margin: 0;
  font-weight: 400;
}
.total-display[data-v-9c624ff0] {
  font-size: 32px;
  font-weight: 700;
  color: #1c1e21;
  line-height: 1;
}
.chart-header-stylish[data-v-9c624ff0] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  padding: 24px 28px;
  background: linear-gradient(135deg, #fdfdfe 0%, #f8fafc 50%, #f1f5f9 100%);
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.06);
  box-shadow:
    0 1px 3px rgba(15, 23, 42, 0.04),
    0 1px 2px rgba(15, 23, 42, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}
.chart-header-stylish[data-v-9c624ff0]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}
.chart-identity[data-v-9c624ff0] {
  display: flex;
  align-items: center;
  gap: 14px;
}
.chart-badge[data-v-9c624ff0] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.07), 0 1.5px 4px rgba(15, 23, 42, 0.04);
  border: 1px solid #f1f5f9;
  position: relative;
  transition: box-shadow 0.2s;
}
.chart-badge[data-v-9c624ff0]::before {
  display: none;
}
.badge-icon[data-v-9c624ff0] {
  width: 20px;
  height: 20px;
  color: #3b82f6;
  filter: none;
  position: relative;
  z-index: 1;
  transition: color 0.2s;
}
.chart-meta[data-v-9c624ff0] {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.chart-title-stylish[data-v-9c624ff0] {
  font-size: 17px;
  font-weight: 650;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.chart-period-tag[data-v-9c624ff0] {
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.08em;
  opacity: 0.85;
}
.metric-highlight[data-v-9c624ff0] {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.metric-label[data-v-9c624ff0] {
  font-size: 8px;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0.8;
}
.metric-value-stylish[data-v-9c624ff0] {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  line-height: 0.9;
  background: linear-gradient(135deg, #0f172a 0%, #334155 50%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.1));
  letter-spacing: -0.03em;
}
.chart-legend-mini[data-v-9c624ff0] {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}
.legend-item-mini[data-v-9c624ff0] {
  display: flex;
  align-items: center;
  gap: 4px;
}
.legend-dot[data-v-9c624ff0] {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.legend-text[data-v-9c624ff0] {
  font-size: 10px;
  color: #64748b;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Responsividade */
@media (max-width: 768px) {
.chart-legend-mini[data-v-9c624ff0] {
    gap: 8px;
}
.legend-text[data-v-9c624ff0] {
    font-size: 8px;
}
.legend-dot[data-v-9c624ff0] {
    width: 5px;
    height: 5px;
}
}
@media (max-width: 480px) {
.chart-legend-mini[data-v-9c624ff0] {
    flex-direction: column;
    gap: 2px;
    margin-top: 2px;
}
}
/* Responsividade refinada */
@media (max-width: 768px) {
.chart-header-stylish[data-v-9c624ff0] {
    padding: 20px 22px;
    margin-bottom: 22px;
    border-radius: 14px;
}
.chart-badge[data-v-9c624ff0] {
    width: 38px;
    height: 38px;
    border-radius: 10px;
}
.chart-badge[data-v-9c624ff0]::before {
    border-radius: 9px;
}
.badge-icon[data-v-9c624ff0] {
    width: 17px;
    height: 17px;
}
.chart-title-stylish[data-v-9c624ff0] {
    font-size: 15px;
    font-weight: 600;
}
.chart-period-tag[data-v-9c624ff0] {
    font-size: 9px;
}
.metric-value-stylish[data-v-9c624ff0] {
    font-size: 26px;
}
.chart-identity[data-v-9c624ff0] {
    gap: 12px;
}
}
@media (max-width: 480px) {
.chart-header-stylish[data-v-9c624ff0] {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    text-align: left;
    padding: 18px 20px;
    border-radius: 12px;
}
.metric-highlight[data-v-9c624ff0] {
    align-items: flex-start;
    width: 100%;
}
.metric-value-stylish[data-v-9c624ff0] {
    font-size: 25px;
    font-weight: 900;
}
.metric-label[data-v-9c624ff0] {
    font-size: 8px;
}
.chart-title-stylish[data-v-9c624ff0] {
    font-size: 16px;
}
}


/* Canvas Chart Container */
.canvas-chart-container[data-v-9c624ff0] {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.messages-canvas[data-v-9c624ff0] {
  width: 100%;
  height: 420px; /* Increased height */
  border-radius: 4px;
  cursor: default;
}

/* Canvas Tooltip Styles - Positioned closer to bars */
.canvas-tooltip[data-v-9c624ff0] {
  position: absolute;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 12px;
  pointer-events: none;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-width: 200px;
  min-width: 140px;
 transform: translateX(12px);
}
.tooltip-content[data-v-9c624ff0] {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tooltip-date[data-v-9c624ff0] {
  font-weight: 600;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 6px;
  text-align: center;
}
.tooltip-values[data-v-9c624ff0] {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tooltip-item[data-v-9c624ff0] {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.tooltip-color[data-v-9c624ff0] {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}
.tooltip-item.received .tooltip-color[data-v-9c624ff0] {
  background-color: #1877f2;
}
.tooltip-item.sent .tooltip-color[data-v-9c624ff0] {
  background-color: #42a5f5;
}

/* Chart Legend */
.chart-legend[data-v-9c624ff0] {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding-top: 16px;
  border-top: 1px solid #e4e6ea;
}
.legend-item[data-v-9c624ff0] {
  display: flex;
  align-items: center;
  gap: 8px;
}
.legend-color[data-v-9c624ff0] {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}
.received-color[data-v-9c624ff0] {
  background-color: #1877f2;
}
.sent-color[data-v-9c624ff0] {
  background-color: #42a5f5;
}
.legend-label[data-v-9c624ff0] {
  font-size: 14px;
  color: #1c1e21;
  font-weight: 500;
}
.legend-percentage[data-v-9c624ff0] {
  font-size: 14px;
  color: #65676b;
  font-weight: 600;
}

/* ===================================
   ESTATÍSTICAS DAS MENSAGENS
   =================================== */
.messages-stats[data-v-9c624ff0] {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
}
.total-messages[data-v-9c624ff0] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}
.total-label[data-v-9c624ff0] {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}
.total-value[data-v-9c624ff0] {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}
.messages-breakdown[data-v-9c624ff0] {
  display: flex;
  gap: 1.5rem;
}
.message-stat[data-v-9c624ff0] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.stat-indicator[data-v-9c624ff0] {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}
.message-stat.received .stat-indicator[data-v-9c624ff0] {
  background: #3b82f6;
}
.message-stat.sent .stat-indicator[data-v-9c624ff0] {
  background: #10b981;
}
.stat-label[data-v-9c624ff0] {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}
.stat-value[data-v-9c624ff0] {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
}

/* ===================================
   RESPONSIVIDADE PARA CANVAS
   =================================== */
@media (max-width: 768px) {
.chart-header-meta[data-v-9c624ff0] {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}
.total-display[data-v-9c624ff0] {
    font-size: 28px;
}
.messages-canvas[data-v-9c624ff0] {
    height: 350px; /* Reduced height for mobile */
}
.chart-legend[data-v-9c624ff0] {
    flex-direction: column;
    gap: 12px;
    align-items: center;
}
.canvas-tooltip[data-v-9c624ff0] {
    font-size: 11px;
    padding: 10px 12px;
    max-width: 160px;
}
}
@media (max-width: 480px) {
.total-display[data-v-9c624ff0] {
    font-size: 24px;
}
.chart-title-meta[data-v-9c624ff0] {
    font-size: 14px;
}
.chart-subtitle[data-v-9c624ff0] {
    font-size: 11px;
}
.messages-canvas[data-v-9c624ff0] {
    height: 300px; /* Further reduced for small screens */
}
.canvas-tooltip[data-v-9c624ff0] {
    font-size: 10px;
    padding: 8px 10px;
    max-width: 140px;
}
.tooltip-date[data-v-9c624ff0] {
    font-size: 11px;
}
.tooltip-item[data-v-9c624ff0] {
    font-size: 10px;
}
}
/* ===================================
   GRÁFICO DE DISCRIMINAÇÃO MODERNO
   =================================== */
.chart-header-modern[data-v-9c624ff0] {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}
.chart-title-modern[data-v-9c624ff0] {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.025em;
}
.chart-period[data-v-9c624ff0] {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
  font-weight: 400;
}
.chart-stats-inline[data-v-9c624ff0] {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.stat-pill[data-v-9c624ff0] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
}
.stat-pill.empresa[data-v-9c624ff0] {
  background: rgba(99, 102, 241, 0.08);
  color: #4338ca;
  border: 1px solid rgba(99, 102, 241, 0.15);
}
.stat-pill.cliente[data-v-9c624ff0] {
  background: rgba(16, 185, 129, 0.08);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.15);
}
.stat-pill.novos-contatos[data-v-9c624ff0] {
  background: rgba(245, 158, 11, 0.08);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.15);
}
.stat-dot[data-v-9c624ff0] {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.stat-pill.empresa .stat-dot[data-v-9c624ff0] {
  background: #6366f1;
}
.stat-pill.cliente .stat-dot[data-v-9c624ff0] {
  background: #10b981;
}
.stat-pill.novos-contatos .stat-dot[data-v-9c624ff0] {
  background: #f59e0b;
}
.stat-text[data-v-9c624ff0] {
  white-space: nowrap;
}
.chart-content-modern[data-v-9c624ff0] {
  position: relative;
  height: 405px;
  padding: 0 0.5rem;
}
.chart-canvas-modern[data-v-9c624ff0] {
  height: 100% !important;
  width: 100% !important;
}

/* ===================================
   STATUS CARDS
   =================================== */
.status-update-bar[data-v-9c624ff0] {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 1.5rem 0;
  justify-content: flex-end;
}
.status-update-icon[data-v-9c624ff0] {
  width: 13px;
  height: 13px;
  color: #94a3b8;
}
.status-update-icon.animate-spin[data-v-9c624ff0] {
  animation: spin-9c624ff0 1s linear infinite;
}
@keyframes spin-9c624ff0 {
from { transform: rotate(0deg);
}
to { transform: rotate(360deg);
}
}
.status-update-text[data-v-9c624ff0] {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 400;
}
.status-grid[data-v-9c624ff0] {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  padding: 1.5rem;
}

/* Operador comum nao ve o card de FCR aqui (ele sobe pra linha de Metricas),
   entao sobram 4 cards de status. Em 5 colunas isso deixaria a 5a coluna vazia
   -> reduz pra 4 colunas pra preencher a linha. Os breakpoints menores (3/2/1
   coluna) ja reflowam os 4 cards sem buraco, nao precisam de ajuste. */
.status-grid--operator[data-v-9c624ff0] {
  grid-template-columns: repeat(4, 1fr);
}
.status-card[data-v-9c624ff0] {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  border-left: 4px solid transparent;
  transition: all 0.2s ease;
  min-width: 0;
  /* Mesma altura minima do .metric-card pra alinhar as duas linhas de cards. */
  min-height: 11.5rem;
}
.status-card[data-v-9c624ff0]:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}
.status-header[data-v-9c624ff0] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.status-title[data-v-9c624ff0] {
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
}
.status-icon[data-v-9c624ff0] {
  width: 1rem;
  height: 1rem;
  opacity: 0.7;
}
.status-value[data-v-9c624ff0] {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}
/* Borda com cores correspondentes */
.status-card.success[data-v-9c624ff0] {
  border-left-color: #10b981;
}
.status-card.warning[data-v-9c624ff0] {
  border-left-color: #f59e0b;
}
.status-card.neutral[data-v-9c624ff0] {
  border-left-color: #b71c1c;
}
.status-card.info[data-v-9c624ff0] {
  border-left-color: #3b82f6;
}
.status-card.active[data-v-9c624ff0] {
  border-left-color: #374151;
}
.status-card.success .status-value[data-v-9c624ff0] {
  color: #059669;
}
.status-card.success .status-icon[data-v-9c624ff0] {
  color: #10b981;
}
.status-card.active .status-value[data-v-9c624ff0] {
  color: #374151;
}
.status-card.active .status-icon[data-v-9c624ff0] {
  color: #4b5563;
}
.status-card.warning .status-value[data-v-9c624ff0] {
  color: #d97706;
}
.status-card.warning .status-icon[data-v-9c624ff0] {
  color: #f59e0b;
}
.status-card.neutral .status-value[data-v-9c624ff0] {
  color: #c04141;
}
.status-card.neutral .status-icon[data-v-9c624ff0] {
  color: #b71c1c;
}
.status-card.info .status-value[data-v-9c624ff0] {
  color: #2563eb;
}
.status-card.info .status-icon[data-v-9c624ff0] {
  color: #3b82f6;
}
.status-description[data-v-9c624ff0] {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
}

/* ===================================
   RESPONSIVIDADE POR CONTAINER
   Reage ao espaço real do .dashboard
   (sidebar aberta/fechada), não à viewport.
   Deve vir DEPOIS das definições base de
   .metrics-grid e .status-grid para sobrescrever
   corretamente grid-template-columns/padding.
   =================================== */

/* Faixa folgada: 4 cols com padding/gap reduzidos */
@container dashboard (max-width: 1100px) {
.metrics-grid[data-v-9c624ff0],
  .status-grid[data-v-9c624ff0] {
    gap: 0.75rem;
    padding: 1rem;
}
.metrics-grid .metric-card[data-v-9c624ff0],
  .status-grid .status-card[data-v-9c624ff0] {
    padding: 1rem;
    /* Padding/fonte menores aqui -> reduz a altura minima na mesma proporcao
       pra nao sobrar espaco vazio embaixo. */
    min-height: 10rem;
}
.metric-value[data-v-9c624ff0],
  .status-value[data-v-9c624ff0] {
    font-size: 1.5rem;
}
}

/* Faixa crítica: laptop 1024px + sidebar aberta → 3 + 2 */
@container dashboard (max-width: 820px) {
.metrics-grid[data-v-9c624ff0],
  .status-grid[data-v-9c624ff0] {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    padding: 0.875rem;
}
.metrics-grid .metric-card[data-v-9c624ff0],
  .status-grid .status-card[data-v-9c624ff0] {
    padding: 0.875rem;
}
.metric-value[data-v-9c624ff0],
  .status-value[data-v-9c624ff0] {
    font-size: 1.375rem;
}
.metric-description[data-v-9c624ff0],
  .status-description[data-v-9c624ff0] {
    font-size: 0.7rem;
}
}

/* Container estreito: 2 colunas */
@container dashboard (max-width: 560px) {
.metrics-grid[data-v-9c624ff0],
  .status-grid[data-v-9c624ff0] {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 0.75rem;
}
}

/* Container muito estreito: coluna única */
@container dashboard (max-width: 400px) {
.metrics-grid[data-v-9c624ff0],
  .status-grid[data-v-9c624ff0] {
    grid-template-columns: 1fr;
}
}

/* ===================================
   GRÁFICOS ADICIONAIS
   =================================== */
.additional-charts[data-v-9c624ff0] {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1.5rem;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* ===================================
   SEÇÃO DE AGENTES
   =================================== */
.agents-section[data-v-9c624ff0] {
  padding: 1.5rem;
}
.agents-card[data-v-9c624ff0] {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
}
.agents-header[data-v-9c624ff0] {
  margin-bottom: 1.25rem;
}
.agents-title[data-v-9c624ff0] {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 0.5rem 0;
}
.agents-description[data-v-9c624ff0] {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}
.agents-grid[data-v-9c624ff0] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.agent-item[data-v-9c624ff0] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid #f1f5f9;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}
.agent-item[data-v-9c624ff0]:hover {
  border-color: #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.agent-info[data-v-9c624ff0] {
  display: flex;
  flex-direction: column;
}
.agent-name[data-v-9c624ff0] {
  font-weight: 500;
  color: #0f172a;
  margin: 0 0 0.25rem 0;
}
.agent-team[data-v-9c624ff0] {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}
.agent-status[data-v-9c624ff0] {
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
}
.agent-status.online[data-v-9c624ff0] {
  background: #dcfce7;
  color: #166534;
}
.agent-status.busy[data-v-9c624ff0] {
  background: #fef3c7;
  color: #92400e;
}
.agent-status.offline[data-v-9c624ff0] {
  background: #fee2e2;
  color: #991b1b;
}

/* ===================================
   EFEITOS HOVER
   =================================== */
.stat-pill[data-v-9c624ff0]:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.stat-pill.empresa[data-v-9c624ff0]:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.25);
}
.stat-pill.cliente[data-v-9c624ff0]:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.25);
}
.stat-pill.novos-contatos[data-v-9c624ff0]:hover {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.25);
}
/* ===================================
   LOADING
   =================================== */
.metric-loading-overlay[data-v-9c624ff0] {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.7);
  z-index: 2;
}
.metric-loading[data-v-9c624ff0] {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  font-size: 1.2rem;
  color: #888;
  position: relative;
}
.metric-loading[data-v-9c624ff0]::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 32px;
  margin-right: 12px;
  border: 4px solid #e0e0e0;
  border-top: 4px solid #2563eb;
  border-radius: 50%;
  animation: metric-spin-9c624ff0 0.8s linear infinite;
  vertical-align: middle;
}
@keyframes metric-spin-9c624ff0 {
to {
    transform: rotate(360deg);
}
}
/* ===================================
   REAL TIME SECTION — header no padrao
   stylish dos cards do dashboard
   =================================== */

/* Agrupa header + tabela num card, alinhado aos chart-card */
.real-time-section[data-v-9c624ff0] {
  margin: 28px 28px 8px 28px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow:
    0 1px 3px rgba(15, 23, 42, 0.04),
    0 1px 2px rgba(15, 23, 42, 0.03);
  overflow: hidden;
}
.real-time-header[data-v-9c624ff0] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 20px 24px;
  background: linear-gradient(135deg, #fdfdfe 0%, #f8fafc 55%, #f1f5f9 100%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  position: relative;
}

/* Mesma linha de brilho superior dos demais headers stylish */
.real-time-header[data-v-9c624ff0]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}
.real-time-identity[data-v-9c624ff0] {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

/* Badge igual ao .chart-badge dos cards de cima */
.real-time-badge[data-v-9c624ff0] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.07), 0 1.5px 4px rgba(15, 23, 42, 0.04);
  border: 1px solid #f1f5f9;
}
.real-time-badge-icon[data-v-9c624ff0] {
  width: 20px;
  height: 20px;
  color: #3b82f6;
}
.real-time-meta[data-v-9c624ff0] {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.real-time-title[data-v-9c624ff0] {
  font-size: 17px;
  font-weight: 650;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.real-time-subtitle[data-v-9c624ff0] {
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

/* Botao Relatorios: pill com borda sutil, accent azul, sem glow */
.reports-button[data-v-9c624ff0] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid rgba(59, 130, 246, 0.18);
  color: #2563eb;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0.5rem 0.875rem;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}
.reports-button[data-v-9c624ff0]:hover {
  background: #eff6ff;
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
  text-decoration: none;
}

/* Feedback tatil no clique */
.reports-button[data-v-9c624ff0]:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.reports-button-icon[data-v-9c624ff0] {
  width: 17px;
  height: 17px;
}

/* Chevron desliza pra direita no hover do botao */
.reports-button-chevron[data-v-9c624ff0] {
  width: 16px;
  height: 16px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.reports-button:hover .reports-button-chevron[data-v-9c624ff0] {
  opacity: 1;
  transform: translateX(0);
}
/* ===================================
   RESPONSIVIDADE
   =================================== */

/* Nota: regras de .metrics-grid / .status-grid foram movidas para
   @container dashboard (ver seção "RESPONSIVIDADE POR CONTAINER" acima),
   para que os grids reajam ao espaço real (após sidebar), não à viewport. */
@media (max-width: 1024px) {
.header-filters[data-v-9c624ff0] {
    gap: 1rem;
}
.charts-grid[data-v-9c624ff0] {
    grid-template-columns: 1fr;
}
.chart-header-modern[data-v-9c624ff0] {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
}
.chart-stats-inline[data-v-9c624ff0] {
    justify-content: center;
    flex-wrap: wrap;
}
.chart-content-modern[data-v-9c624ff0] {
    height: 320px;
}
.messages-breakdown[data-v-9c624ff0] {
    flex-direction: column;
    gap: 0.75rem;
}
}

/* --- Tablet portrait --- */
@media (max-width: 768px) {
.dashboard[data-v-9c624ff0] {
    padding: 8px;
}
.header[data-v-9c624ff0] {
    padding: 1.5rem 1rem;
}

  /* No mobile o titulo+badge e os filtros voltam a empilhar */
.header-content[data-v-9c624ff0] {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
}
.header-filters[data-v-9c624ff0] {
    width: 100%;
    gap: 0.75rem;
}
.header-filters .filter-group[data-v-9c624ff0] {
    flex: 1 1 160px;
}
.charts-grid[data-v-9c624ff0] {
    padding: 1rem;
    gap: 0.75rem;
}
.additional-charts[data-v-9c624ff0] {
    padding: 1rem;
}
.messages-stats[data-v-9c624ff0] {
    padding: 0.75rem;
}
.total-messages[data-v-9c624ff0] {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}
.chart-header-meta[data-v-9c624ff0] {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}
.total-display[data-v-9c624ff0] {
    font-size: 28px;
}
.chart-bars-vertical[data-v-9c624ff0] {
    height: 240px;
}
.bars-area[data-v-9c624ff0] {
    height: 200px;
}
.y-axis-labels[data-v-9c624ff0] {
    height: 200px;
}
.bar-vertical[data-v-9c624ff0] {
    width: 20px;
}
.chart-legend[data-v-9c624ff0] {
    flex-direction: column;
    gap: 12px;
    align-items: center;
}
.real-time-section[data-v-9c624ff0] {
    margin: 20px 8px 8px 8px;
}
.real-time-header[data-v-9c624ff0] {
    padding: 16px;
}
.real-time-title[data-v-9c624ff0] {
    font-size: 15px;
}
}

/* --- Mobile --- */
@media (max-width: 480px) {
.dashboard[data-v-9c624ff0] {
    padding: 4px;
    font-size: 0.875rem;
}
.header[data-v-9c624ff0] {
    padding: 1rem 0.75rem;
}
.header-filters[data-v-9c624ff0] {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
}
.charts-grid[data-v-9c624ff0] {
    padding: 0.5rem;
}
.additional-charts[data-v-9c624ff0] {
    padding: 0.5rem;
}
.chart-card[data-v-9c624ff0], .agents-card[data-v-9c624ff0] {
    padding: 0.75rem;
}
.chart-canvas[data-v-9c624ff0] {
    height: 250px !important;
}
.stat-pill[data-v-9c624ff0] {
    font-size: 0.7rem;
    padding: 0.4rem 0.6rem;
}
.chart-title-modern[data-v-9c624ff0] {
    font-size: 1rem;
}
.messages-stats[data-v-9c624ff0] {
    padding: 0.5rem;
}
.total-value[data-v-9c624ff0] {
    font-size: 1.125rem;
}
.stat-value[data-v-9c624ff0] {
    font-size: 0.8rem;
}
.total-display[data-v-9c624ff0] {
    font-size: 24px;
}
.chart-title-meta[data-v-9c624ff0] {
    font-size: 14px;
}
.chart-subtitle[data-v-9c624ff0] {
    font-size: 11px;
}
.chart-bars-vertical[data-v-9c624ff0] {
    height: 200px;
    gap: 8px;
}
.bars-area[data-v-9c624ff0] {
    height: 160px;
}
.y-axis-labels[data-v-9c624ff0] {
    height: 160px;
    width: 40px;
}
.bar-vertical[data-v-9c624ff0] {
    width: 16px;
}
.bars-wrapper[data-v-9c624ff0] {
    gap: 2px;
}
.real-time-section[data-v-9c624ff0] {
    margin: 16px 4px 4px 4px;
}
.real-time-header[data-v-9c624ff0] {
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
}

  /* Botao ocupa a largura toda quando o header empilha */
.reports-button[data-v-9c624ff0] {
    justify-content: center;
}
}

body.route-home .breadcrumbs-container {
  min-height: 0;
  padding: 0 !important;
}
body.route-home .main-content-wrapper-inner {
  padding: 0 !important;
}
body.route-home {
  background: #f8fafc;
}
/* ===================================
   RESET E BASE
   =================================== */
/* * {
  box-sizing: border-box;
} */
.fade-table-enter-active[data-v-c98bd99b], .fade-table-leave-active[data-v-c98bd99b] {
  transition: opacity 0.4s cubic-bezier(.4,0,.2,1);
}
.fade-table-enter[data-v-c98bd99b], .fade-table-leave-to[data-v-c98bd99b] {
  opacity: 0;
}
.dashboard[data-v-c98bd99b] {
  /* max-width: 1400px; */
  padding: 12px;
  min-height: 100vh;
  border-radius: 12px;
  background-color: #f8fafc;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  container-type: inline-size;
  container-name: dashboard;
}
.help-badge[data-v-c98bd99b] {
  position: absolute;
  right: 10px;
  bottom: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #eef2ff;
  color: #1e293b;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  cursor: default;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  outline: none;
}


/* ===================================
   HEADER E NAVEGAÇÃO
   =================================== */
.select-option.disabled[data-v-c98bd99b] {
  color: #bbb;
  pointer-events: none;
  cursor: not-allowed;
}
.header[data-v-c98bd99b] {
  padding: 2rem 1.5rem;
  border-radius: 12px;
  position: relative;
  overflow: visible;
}
.header-content[data-v-c98bd99b] {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: 100%;
  position: relative;
  overflow: visible;
}

/* Titulo + badge de periodo agrupados a esquerda */
.header-title-wrap[data-v-c98bd99b] {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
}
.header-title[data-v-c98bd99b] {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
  color: #1e293b;
  letter-spacing: -0.025em;
  text-align: left;
}

/* Badge de periodo (Mês/Hoje/Semana) ao lado do titulo */
.period-badge[data-v-c98bd99b] {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  background: #eff6ff;
  color: #1877f2;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.dev-overlay[data-v-c98bd99b] {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px; /* ou ajuste conforme seu layout */
  width: 100%;
  background: none;
  position: static;
  box-shadow: none;
  z-index: 1;
}
.dev-overlay-content[data-v-c98bd99b] {
  text-align: center;
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  padding: 3rem 2.5rem;
  border: 1px solid #e5e7eb;
}










/* ===================================
   FILTROS E CONTROLES
   =================================== */
.header-filters[data-v-c98bd99b] {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.875rem;
}
.header-filters .filter-group[data-v-c98bd99b] {
  min-width: 190px;
}

/* O filtro de periodo (date range) precisa de mais largura pro "dd/mm - dd/mm" */
.header-filters .filter-group--period[data-v-c98bd99b] {
  min-width: 232px;
}
.filter-group[data-v-c98bd99b] {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}
.filter-label-container[data-v-c98bd99b] {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  justify-content: flex-start;
  padding-left: 0.125rem;
}
.filter-icon[data-v-c98bd99b] {
  width: 0.875rem;
  height: 0.875rem;
  color: #94a3b8;
  flex-shrink: 0;
}

/* Label discreto acima do controle — uppercase suave, tom muted (estilo premium) */
.filter-label[data-v-c98bd99b] {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}

/* Garante que ComboBox e DatePicker preencham a largura do grupo */
.filter-group .filter-control[data-v-c98bd99b] {
  width: 100%;
}

/* ===================================
   HELPER TOOLTIP
   =================================== */
/* Hide help badge by default; show when hovering the card */
.help-badge[data-v-c98bd99b] {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  color: #64748b;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 600;
  cursor: help;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;

  /* start hidden */
  opacity: 0;
  visibility: hidden;
  transform: scale(0.96);
  pointer-events: none;
}
.metric-card:hover .help-badge[data-v-c98bd99b] {
  /* show when hovering the entire card */
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
}
.help-badge[data-v-c98bd99b]:hover {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-color: #cbd5e1;
  color: #475569;
  transform: scale(1.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.help-badge[data-v-c98bd99b]:focus {
  outline: none;
  box-shadow: 0 0 0 2px #3b82f6, 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* keep tooltip styles (unchanged) */
.help-tooltip[data-v-c98bd99b] {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  max-width: 280px;
  background: #ffffff;
  color: #374151;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.01em;
  border: 1px solid #e5e7eb;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.02),
    0 4px 6px -1px rgba(0, 0, 0, 0.08),
    0 10px 15px -3px rgba(0, 0, 0, 0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px) scale(0.96);
  pointer-events: none;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 50;
}
.help-badge:hover .help-tooltip[data-v-c98bd99b],
.help-badge:focus .help-tooltip[data-v-c98bd99b] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* ===================================
   MÉTRICAS E CARDS
   =================================== */
.metrics-grid[data-v-c98bd99b] {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.5rem;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Receita Gerada e sempre o ultimo card: estica da sua coluna ate o fim da
   linha, preenchendo o espaco que sobra (some o card de Agentes p/ operador
   comum -> a Receita ocupa mais; ninguem fica com coluna vazia). */
.metrics-grid .revenue-card[data-v-c98bd99b] {
  grid-column: auto / -1;
}
.metric-card[data-v-c98bd99b] {
  position: relative;
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  transition: all 0.2s ease;
  overflow: visible;
  min-width: 0;
  /* Altura minima compartilhada com .status-card pra que as duas linhas de
     cards (Metricas em cima, Status embaixo) fiquem alinhadas, mesmo com
     quantidades diferentes de texto. Conteudo fica ancorado no topo. */
  min-height: 11.5rem;
}
.metric-card[data-v-c98bd99b]:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}
.metric-header[data-v-c98bd99b] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.metric-title[data-v-c98bd99b] {
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
}
.metric-icon[data-v-c98bd99b] {
  width: 1rem;
  height: 1rem;
  color: #64748b;
}
.metric-value[data-v-c98bd99b] {
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}
.metric-description[data-v-c98bd99b] {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0 0 0.75rem 0;
}
.metric-trend[data-v-c98bd99b] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.metric-trend.positive .trend-text[data-v-c98bd99b] {
  color: #059669;
}
.metric-trend.negative .trend-text[data-v-c98bd99b] {
  color: #dc2626;
}
.trend-icon[data-v-c98bd99b] {
  width: 0.75rem;
  height: 0.75rem;
}
.metric-trend.positive .trend-icon[data-v-c98bd99b] {
  color: #059669;
}
.metric-trend.negative .trend-icon[data-v-c98bd99b] {
  color: #dc2626;
  transform: rotate(180deg);
}
.trend-text[data-v-c98bd99b] {
  font-size: 0.75rem;
  font-weight: 500;
}
.metric-badge .badge[data-v-c98bd99b] {
  background: #f1f5f9;
  color: #475569;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
}
.rating-container[data-v-c98bd99b] {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.stars[data-v-c98bd99b] {
  display: flex;
}
.star-wrapper[data-v-c98bd99b] {
  position: relative;
  display: inline-flex;
  width: 0.75rem;
  height: 0.75rem;
}
.star-icon[data-v-c98bd99b] {
  width: 0.75rem;
  height: 0.75rem;
  color: #d1d5db;
}

/* Overlay amarelo sobreposto à estrela cinza base */
.star-icon-overlay[data-v-c98bd99b] {
  position: absolute;
  top: 0;
  left: 0;
  color: #fbbf24;
  fill: #fbbf24;
}
.star-icon.filled[data-v-c98bd99b] {
  color: #fbbf24;
  fill: #fbbf24;
}

/* Meia estrela: corta a metade direita do overlay, mostrando a cinza de baixo */
.star-icon.half-filled[data-v-c98bd99b] {
  clip-path: inset(0 50% 0 0);
}
.rating-count[data-v-c98bd99b] {
  font-size: 0.75rem;
  color: #6b7280;
}

/* ===================================
   GRÁFICOS - LAYOUT GERAL
   =================================== */
.charts-grid[data-v-c98bd99b] {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1.5rem;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Variante de coluna unica: usada quando o Chart de Mensagens esta
   desativado e so a Discriminacao de Conversas e exibida (ocupa a largura
   toda). Remover esta classe do wrapper se o Chart de Mensagens voltar. */
.charts-grid--single[data-v-c98bd99b] {
  grid-template-columns: 1fr;
}
.chart-messages[data-v-c98bd99b] {
  min-height: 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(148, 163, 184, 0.1);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
}
.chart-card[data-v-c98bd99b] {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  min-width: 0;
  overflow: hidden;
}
.chart-header[data-v-c98bd99b] {
  margin-bottom: 1.25rem;
}
.chart-title[data-v-c98bd99b] {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.chart-title-icon[data-v-c98bd99b] {
  width: 1.25rem;
  height: 1.25rem;
  color: #64748b;
}
.chart-description[data-v-c98bd99b] {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}
.chart-content[data-v-c98bd99b] {
  position: relative;
}
.chart-canvas[data-v-c98bd99b] {
  height: 300px !important;
}
/* ===================================
   GRÁFICO DE MENSAGENS - CANVAS META STYLE
   =================================== */
.chart-header-meta[data-v-c98bd99b] {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e4e6ea;
}
.chart-title-section[data-v-c98bd99b] {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.chart-title-meta[data-v-c98bd99b] {
  font-size: 16px;
  font-weight: 600;
  color: #1c1e21;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chart-title-icon[data-v-c98bd99b] {
  width: 16px;
  height: 16px;
  color: #65676b;
}
.chart-subtitle[data-v-c98bd99b] {
  font-size: 12px;
  color: #65676b;
  margin: 0;
  font-weight: 400;
}
.total-display[data-v-c98bd99b] {
  font-size: 32px;
  font-weight: 700;
  color: #1c1e21;
  line-height: 1;
}
.chart-header-stylish[data-v-c98bd99b] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  padding: 24px 28px;
  background: linear-gradient(135deg, #fdfdfe 0%, #f8fafc 50%, #f1f5f9 100%);
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.06);
  box-shadow:
    0 1px 3px rgba(15, 23, 42, 0.04),
    0 1px 2px rgba(15, 23, 42, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}
.chart-header-stylish[data-v-c98bd99b]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}
.chart-identity[data-v-c98bd99b] {
  display: flex;
  align-items: center;
  gap: 14px;
}
.chart-badge[data-v-c98bd99b] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.07), 0 1.5px 4px rgba(15, 23, 42, 0.04);
  border: 1px solid #f1f5f9;
  position: relative;
  transition: box-shadow 0.2s;
}
.chart-badge[data-v-c98bd99b]::before {
  display: none;
}
.badge-icon[data-v-c98bd99b] {
  width: 20px;
  height: 20px;
  color: #3b82f6;
  filter: none;
  position: relative;
  z-index: 1;
  transition: color 0.2s;
}
.chart-meta[data-v-c98bd99b] {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.chart-title-stylish[data-v-c98bd99b] {
  font-size: 17px;
  font-weight: 650;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.chart-period-tag[data-v-c98bd99b] {
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.08em;
  opacity: 0.85;
}
.metric-highlight[data-v-c98bd99b] {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.metric-label[data-v-c98bd99b] {
  font-size: 8px;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0.8;
}
.metric-value-stylish[data-v-c98bd99b] {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  line-height: 0.9;
  background: linear-gradient(135deg, #0f172a 0%, #334155 50%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.1));
  letter-spacing: -0.03em;
}
.chart-legend-mini[data-v-c98bd99b] {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}
.legend-item-mini[data-v-c98bd99b] {
  display: flex;
  align-items: center;
  gap: 4px;
}
.legend-dot[data-v-c98bd99b] {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.legend-text[data-v-c98bd99b] {
  font-size: 10px;
  color: #64748b;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Responsividade */
@media (max-width: 768px) {
.chart-legend-mini[data-v-c98bd99b] {
    gap: 8px;
}
.legend-text[data-v-c98bd99b] {
    font-size: 8px;
}
.legend-dot[data-v-c98bd99b] {
    width: 5px;
    height: 5px;
}
}
@media (max-width: 480px) {
.chart-legend-mini[data-v-c98bd99b] {
    flex-direction: column;
    gap: 2px;
    margin-top: 2px;
}
}
/* Responsividade refinada */
@media (max-width: 768px) {
.chart-header-stylish[data-v-c98bd99b] {
    padding: 20px 22px;
    margin-bottom: 22px;
    border-radius: 14px;
}
.chart-badge[data-v-c98bd99b] {
    width: 38px;
    height: 38px;
    border-radius: 10px;
}
.chart-badge[data-v-c98bd99b]::before {
    border-radius: 9px;
}
.badge-icon[data-v-c98bd99b] {
    width: 17px;
    height: 17px;
}
.chart-title-stylish[data-v-c98bd99b] {
    font-size: 15px;
    font-weight: 600;
}
.chart-period-tag[data-v-c98bd99b] {
    font-size: 9px;
}
.metric-value-stylish[data-v-c98bd99b] {
    font-size: 26px;
}
.chart-identity[data-v-c98bd99b] {
    gap: 12px;
}
}
@media (max-width: 480px) {
.chart-header-stylish[data-v-c98bd99b] {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    text-align: left;
    padding: 18px 20px;
    border-radius: 12px;
}
.metric-highlight[data-v-c98bd99b] {
    align-items: flex-start;
    width: 100%;
}
.metric-value-stylish[data-v-c98bd99b] {
    font-size: 25px;
    font-weight: 900;
}
.metric-label[data-v-c98bd99b] {
    font-size: 8px;
}
.chart-title-stylish[data-v-c98bd99b] {
    font-size: 16px;
}
}


/* Canvas Chart Container */
.canvas-chart-container[data-v-c98bd99b] {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.messages-canvas[data-v-c98bd99b] {
  width: 100%;
  height: 420px; /* Increased height */
  border-radius: 4px;
  cursor: default;
}

/* Canvas Tooltip Styles - Positioned closer to bars */
.canvas-tooltip[data-v-c98bd99b] {
  position: absolute;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 12px;
  pointer-events: none;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-width: 200px;
  min-width: 140px;
 transform: translateX(12px);
}
.tooltip-content[data-v-c98bd99b] {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tooltip-date[data-v-c98bd99b] {
  font-weight: 600;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 6px;
  text-align: center;
}
.tooltip-values[data-v-c98bd99b] {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tooltip-item[data-v-c98bd99b] {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.tooltip-color[data-v-c98bd99b] {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}
.tooltip-item.received .tooltip-color[data-v-c98bd99b] {
  background-color: #1877f2;
}
.tooltip-item.sent .tooltip-color[data-v-c98bd99b] {
  background-color: #42a5f5;
}

/* Chart Legend */
.chart-legend[data-v-c98bd99b] {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding-top: 16px;
  border-top: 1px solid #e4e6ea;
}
.legend-item[data-v-c98bd99b] {
  display: flex;
  align-items: center;
  gap: 8px;
}
.legend-color[data-v-c98bd99b] {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}
.received-color[data-v-c98bd99b] {
  background-color: #1877f2;
}
.sent-color[data-v-c98bd99b] {
  background-color: #42a5f5;
}
.legend-label[data-v-c98bd99b] {
  font-size: 14px;
  color: #1c1e21;
  font-weight: 500;
}
.legend-percentage[data-v-c98bd99b] {
  font-size: 14px;
  color: #65676b;
  font-weight: 600;
}

/* ===================================
   ESTATÍSTICAS DAS MENSAGENS
   =================================== */
.messages-stats[data-v-c98bd99b] {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
}
.total-messages[data-v-c98bd99b] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}
.total-label[data-v-c98bd99b] {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}
.total-value[data-v-c98bd99b] {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}
.messages-breakdown[data-v-c98bd99b] {
  display: flex;
  gap: 1.5rem;
}
.message-stat[data-v-c98bd99b] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.stat-indicator[data-v-c98bd99b] {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}
.message-stat.received .stat-indicator[data-v-c98bd99b] {
  background: #3b82f6;
}
.message-stat.sent .stat-indicator[data-v-c98bd99b] {
  background: #10b981;
}
.stat-label[data-v-c98bd99b] {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}
.stat-value[data-v-c98bd99b] {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
}

/* ===================================
   RESPONSIVIDADE PARA CANVAS
   =================================== */
@media (max-width: 768px) {
.chart-header-meta[data-v-c98bd99b] {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}
.total-display[data-v-c98bd99b] {
    font-size: 28px;
}
.messages-canvas[data-v-c98bd99b] {
    height: 350px; /* Reduced height for mobile */
}
.chart-legend[data-v-c98bd99b] {
    flex-direction: column;
    gap: 12px;
    align-items: center;
}
.canvas-tooltip[data-v-c98bd99b] {
    font-size: 11px;
    padding: 10px 12px;
    max-width: 160px;
}
}
@media (max-width: 480px) {
.total-display[data-v-c98bd99b] {
    font-size: 24px;
}
.chart-title-meta[data-v-c98bd99b] {
    font-size: 14px;
}
.chart-subtitle[data-v-c98bd99b] {
    font-size: 11px;
}
.messages-canvas[data-v-c98bd99b] {
    height: 300px; /* Further reduced for small screens */
}
.canvas-tooltip[data-v-c98bd99b] {
    font-size: 10px;
    padding: 8px 10px;
    max-width: 140px;
}
.tooltip-date[data-v-c98bd99b] {
    font-size: 11px;
}
.tooltip-item[data-v-c98bd99b] {
    font-size: 10px;
}
}
/* ===================================
   GRÁFICO DE DISCRIMINAÇÃO MODERNO
   =================================== */
.chart-header-modern[data-v-c98bd99b] {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}
.chart-title-modern[data-v-c98bd99b] {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.025em;
}
.chart-period[data-v-c98bd99b] {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
  font-weight: 400;
}
.chart-stats-inline[data-v-c98bd99b] {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.stat-pill[data-v-c98bd99b] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
}
.stat-pill.empresa[data-v-c98bd99b] {
  background: rgba(99, 102, 241, 0.08);
  color: #4338ca;
  border: 1px solid rgba(99, 102, 241, 0.15);
}
.stat-pill.cliente[data-v-c98bd99b] {
  background: rgba(16, 185, 129, 0.08);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.15);
}
.stat-pill.novos-contatos[data-v-c98bd99b] {
  background: rgba(245, 158, 11, 0.08);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.15);
}
.stat-dot[data-v-c98bd99b] {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.stat-pill.empresa .stat-dot[data-v-c98bd99b] {
  background: #6366f1;
}
.stat-pill.cliente .stat-dot[data-v-c98bd99b] {
  background: #10b981;
}
.stat-pill.novos-contatos .stat-dot[data-v-c98bd99b] {
  background: #f59e0b;
}
.stat-text[data-v-c98bd99b] {
  white-space: nowrap;
}
.chart-content-modern[data-v-c98bd99b] {
  position: relative;
  height: 405px;
  padding: 0 0.5rem;
}
.chart-canvas-modern[data-v-c98bd99b] {
  height: 100% !important;
  width: 100% !important;
}

/* ===================================
   STATUS CARDS
   =================================== */
.status-update-bar[data-v-c98bd99b] {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 1.5rem 0;
  justify-content: flex-end;
}
.status-update-icon[data-v-c98bd99b] {
  width: 13px;
  height: 13px;
  color: #94a3b8;
}
.status-update-icon.animate-spin[data-v-c98bd99b] {
  animation: spin-c98bd99b 1s linear infinite;
}
@keyframes spin-c98bd99b {
from { transform: rotate(0deg);
}
to { transform: rotate(360deg);
}
}
.status-update-text[data-v-c98bd99b] {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 400;
}
.status-grid[data-v-c98bd99b] {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  padding: 1.5rem;
}

/* Operador comum nao ve o card de FCR aqui (ele sobe pra linha de Metricas),
   entao sobram 4 cards de status. Em 5 colunas isso deixaria a 5a coluna vazia
   -> reduz pra 4 colunas pra preencher a linha. Os breakpoints menores (3/2/1
   coluna) ja reflowam os 4 cards sem buraco, nao precisam de ajuste. */
.status-grid--operator[data-v-c98bd99b] {
  grid-template-columns: repeat(4, 1fr);
}
.status-card[data-v-c98bd99b] {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  border-left: 4px solid transparent;
  transition: all 0.2s ease;
  min-width: 0;
  /* Mesma altura minima do .metric-card pra alinhar as duas linhas de cards. */
  min-height: 11.5rem;
}
.status-card[data-v-c98bd99b]:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}
.status-header[data-v-c98bd99b] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.status-title[data-v-c98bd99b] {
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
}
.status-icon[data-v-c98bd99b] {
  width: 1rem;
  height: 1rem;
  opacity: 0.7;
}
.status-value[data-v-c98bd99b] {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}
/* Borda com cores correspondentes */
.status-card.success[data-v-c98bd99b] {
  border-left-color: #10b981;
}
.status-card.warning[data-v-c98bd99b] {
  border-left-color: #f59e0b;
}
.status-card.neutral[data-v-c98bd99b] {
  border-left-color: #b71c1c;
}
.status-card.info[data-v-c98bd99b] {
  border-left-color: #3b82f6;
}
.status-card.active[data-v-c98bd99b] {
  border-left-color: #374151;
}
.status-card.success .status-value[data-v-c98bd99b] {
  color: #059669;
}
.status-card.success .status-icon[data-v-c98bd99b] {
  color: #10b981;
}
.status-card.active .status-value[data-v-c98bd99b] {
  color: #374151;
}
.status-card.active .status-icon[data-v-c98bd99b] {
  color: #4b5563;
}
.status-card.warning .status-value[data-v-c98bd99b] {
  color: #d97706;
}
.status-card.warning .status-icon[data-v-c98bd99b] {
  color: #f59e0b;
}
.status-card.neutral .status-value[data-v-c98bd99b] {
  color: #c04141;
}
.status-card.neutral .status-icon[data-v-c98bd99b] {
  color: #b71c1c;
}
.status-card.info .status-value[data-v-c98bd99b] {
  color: #2563eb;
}
.status-card.info .status-icon[data-v-c98bd99b] {
  color: #3b82f6;
}
.status-description[data-v-c98bd99b] {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
}

/* ===================================
   RESPONSIVIDADE POR CONTAINER
   Reage ao espaço real do .dashboard
   (sidebar aberta/fechada), não à viewport.
   Deve vir DEPOIS das definições base de
   .metrics-grid e .status-grid para sobrescrever
   corretamente grid-template-columns/padding.
   =================================== */

/* Faixa folgada: 4 cols com padding/gap reduzidos */
@container dashboard (max-width: 1100px) {
.metrics-grid[data-v-c98bd99b],
  .status-grid[data-v-c98bd99b] {
    gap: 0.75rem;
    padding: 1rem;
}
.metrics-grid .metric-card[data-v-c98bd99b],
  .status-grid .status-card[data-v-c98bd99b] {
    padding: 1rem;
    /* Padding/fonte menores aqui -> reduz a altura minima na mesma proporcao
       pra nao sobrar espaco vazio embaixo. */
    min-height: 10rem;
}
.metric-value[data-v-c98bd99b],
  .status-value[data-v-c98bd99b] {
    font-size: 1.5rem;
}
}

/* Faixa crítica: laptop 1024px + sidebar aberta → 3 + 2 */
@container dashboard (max-width: 820px) {
.metrics-grid[data-v-c98bd99b],
  .status-grid[data-v-c98bd99b] {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    padding: 0.875rem;
}
.metrics-grid .metric-card[data-v-c98bd99b],
  .status-grid .status-card[data-v-c98bd99b] {
    padding: 0.875rem;
}
.metric-value[data-v-c98bd99b],
  .status-value[data-v-c98bd99b] {
    font-size: 1.375rem;
}
.metric-description[data-v-c98bd99b],
  .status-description[data-v-c98bd99b] {
    font-size: 0.7rem;
}
}

/* Container estreito: 2 colunas */
@container dashboard (max-width: 560px) {
.metrics-grid[data-v-c98bd99b],
  .status-grid[data-v-c98bd99b] {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 0.75rem;
}
}

/* Container muito estreito: coluna única */
@container dashboard (max-width: 400px) {
.metrics-grid[data-v-c98bd99b],
  .status-grid[data-v-c98bd99b] {
    grid-template-columns: 1fr;
}
}

/* ===================================
   GRÁFICOS ADICIONAIS
   =================================== */
.additional-charts[data-v-c98bd99b] {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1.5rem;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* ===================================
   SEÇÃO DE AGENTES
   =================================== */
.agents-section[data-v-c98bd99b] {
  padding: 1.5rem;
}
.agents-card[data-v-c98bd99b] {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
}
.agents-header[data-v-c98bd99b] {
  margin-bottom: 1.25rem;
}
.agents-title[data-v-c98bd99b] {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 0.5rem 0;
}
.agents-description[data-v-c98bd99b] {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}
.agents-grid[data-v-c98bd99b] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.agent-item[data-v-c98bd99b] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid #f1f5f9;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}
.agent-item[data-v-c98bd99b]:hover {
  border-color: #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.agent-info[data-v-c98bd99b] {
  display: flex;
  flex-direction: column;
}
.agent-name[data-v-c98bd99b] {
  font-weight: 500;
  color: #0f172a;
  margin: 0 0 0.25rem 0;
}
.agent-team[data-v-c98bd99b] {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}
.agent-status[data-v-c98bd99b] {
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
}
.agent-status.online[data-v-c98bd99b] {
  background: #dcfce7;
  color: #166534;
}
.agent-status.busy[data-v-c98bd99b] {
  background: #fef3c7;
  color: #92400e;
}
.agent-status.offline[data-v-c98bd99b] {
  background: #fee2e2;
  color: #991b1b;
}

/* ===================================
   EFEITOS HOVER
   =================================== */
.stat-pill[data-v-c98bd99b]:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.stat-pill.empresa[data-v-c98bd99b]:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.25);
}
.stat-pill.cliente[data-v-c98bd99b]:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.25);
}
.stat-pill.novos-contatos[data-v-c98bd99b]:hover {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.25);
}
/* ===================================
   LOADING
   =================================== */
.metric-loading-overlay[data-v-c98bd99b] {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.7);
  z-index: 2;
}
.metric-loading[data-v-c98bd99b] {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  font-size: 1.2rem;
  color: #888;
  position: relative;
}
.metric-loading[data-v-c98bd99b]::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 32px;
  margin-right: 12px;
  border: 4px solid #e0e0e0;
  border-top: 4px solid #2563eb;
  border-radius: 50%;
  animation: metric-spin-c98bd99b 0.8s linear infinite;
  vertical-align: middle;
}
@keyframes metric-spin-c98bd99b {
to {
    transform: rotate(360deg);
}
}
/* ===================================
   REAL TIME SECTION — header no padrao
   stylish dos cards do dashboard
   =================================== */

/* Agrupa header + tabela num card, alinhado aos chart-card */
.real-time-section[data-v-c98bd99b] {
  margin: 28px 28px 8px 28px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow:
    0 1px 3px rgba(15, 23, 42, 0.04),
    0 1px 2px rgba(15, 23, 42, 0.03);
  overflow: hidden;
}
.real-time-header[data-v-c98bd99b] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 20px 24px;
  background: linear-gradient(135deg, #fdfdfe 0%, #f8fafc 55%, #f1f5f9 100%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  position: relative;
}

/* Mesma linha de brilho superior dos demais headers stylish */
.real-time-header[data-v-c98bd99b]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}
.real-time-identity[data-v-c98bd99b] {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

/* Badge igual ao .chart-badge dos cards de cima */
.real-time-badge[data-v-c98bd99b] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.07), 0 1.5px 4px rgba(15, 23, 42, 0.04);
  border: 1px solid #f1f5f9;
}
.real-time-badge-icon[data-v-c98bd99b] {
  width: 20px;
  height: 20px;
  color: #3b82f6;
}
.real-time-meta[data-v-c98bd99b] {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.real-time-title[data-v-c98bd99b] {
  font-size: 17px;
  font-weight: 650;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.real-time-subtitle[data-v-c98bd99b] {
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

/* Botao Relatorios: pill com borda sutil, accent azul, sem glow */
.reports-button[data-v-c98bd99b] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid rgba(59, 130, 246, 0.18);
  color: #2563eb;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0.5rem 0.875rem;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}
.reports-button[data-v-c98bd99b]:hover {
  background: #eff6ff;
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
  text-decoration: none;
}

/* Feedback tatil no clique */
.reports-button[data-v-c98bd99b]:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.reports-button-icon[data-v-c98bd99b] {
  width: 17px;
  height: 17px;
}

/* Chevron desliza pra direita no hover do botao */
.reports-button-chevron[data-v-c98bd99b] {
  width: 16px;
  height: 16px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.reports-button:hover .reports-button-chevron[data-v-c98bd99b] {
  opacity: 1;
  transform: translateX(0);
}
/* ===================================
   RESPONSIVIDADE
   =================================== */

/* Nota: regras de .metrics-grid / .status-grid foram movidas para
   @container dashboard (ver seção "RESPONSIVIDADE POR CONTAINER" acima),
   para que os grids reajam ao espaço real (após sidebar), não à viewport. */
@media (max-width: 1024px) {
.header-filters[data-v-c98bd99b] {
    gap: 1rem;
}
.charts-grid[data-v-c98bd99b] {
    grid-template-columns: 1fr;
}
.chart-header-modern[data-v-c98bd99b] {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
}
.chart-stats-inline[data-v-c98bd99b] {
    justify-content: center;
    flex-wrap: wrap;
}
.chart-content-modern[data-v-c98bd99b] {
    height: 320px;
}
.messages-breakdown[data-v-c98bd99b] {
    flex-direction: column;
    gap: 0.75rem;
}
}

/* --- Tablet portrait --- */
@media (max-width: 768px) {
.dashboard[data-v-c98bd99b] {
    padding: 8px;
}
.header[data-v-c98bd99b] {
    padding: 1.5rem 1rem;
}

  /* No mobile o titulo+badge e os filtros voltam a empilhar */
.header-content[data-v-c98bd99b] {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
}
.header-filters[data-v-c98bd99b] {
    width: 100%;
    gap: 0.75rem;
}
.header-filters .filter-group[data-v-c98bd99b] {
    flex: 1 1 160px;
}
.charts-grid[data-v-c98bd99b] {
    padding: 1rem;
    gap: 0.75rem;
}
.additional-charts[data-v-c98bd99b] {
    padding: 1rem;
}
.messages-stats[data-v-c98bd99b] {
    padding: 0.75rem;
}
.total-messages[data-v-c98bd99b] {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}
.chart-header-meta[data-v-c98bd99b] {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}
.total-display[data-v-c98bd99b] {
    font-size: 28px;
}
.chart-bars-vertical[data-v-c98bd99b] {
    height: 240px;
}
.bars-area[data-v-c98bd99b] {
    height: 200px;
}
.y-axis-labels[data-v-c98bd99b] {
    height: 200px;
}
.bar-vertical[data-v-c98bd99b] {
    width: 20px;
}
.chart-legend[data-v-c98bd99b] {
    flex-direction: column;
    gap: 12px;
    align-items: center;
}
.real-time-section[data-v-c98bd99b] {
    margin: 20px 8px 8px 8px;
}
.real-time-header[data-v-c98bd99b] {
    padding: 16px;
}
.real-time-title[data-v-c98bd99b] {
    font-size: 15px;
}
}

/* --- Mobile --- */
@media (max-width: 480px) {
.dashboard[data-v-c98bd99b] {
    padding: 4px;
    font-size: 0.875rem;
}
.header[data-v-c98bd99b] {
    padding: 1rem 0.75rem;
}
.header-filters[data-v-c98bd99b] {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
}
.charts-grid[data-v-c98bd99b] {
    padding: 0.5rem;
}
.additional-charts[data-v-c98bd99b] {
    padding: 0.5rem;
}
.chart-card[data-v-c98bd99b], .agents-card[data-v-c98bd99b] {
    padding: 0.75rem;
}
.chart-canvas[data-v-c98bd99b] {
    height: 250px !important;
}
.stat-pill[data-v-c98bd99b] {
    font-size: 0.7rem;
    padding: 0.4rem 0.6rem;
}
.chart-title-modern[data-v-c98bd99b] {
    font-size: 1rem;
}
.messages-stats[data-v-c98bd99b] {
    padding: 0.5rem;
}
.total-value[data-v-c98bd99b] {
    font-size: 1.125rem;
}
.stat-value[data-v-c98bd99b] {
    font-size: 0.8rem;
}
.total-display[data-v-c98bd99b] {
    font-size: 24px;
}
.chart-title-meta[data-v-c98bd99b] {
    font-size: 14px;
}
.chart-subtitle[data-v-c98bd99b] {
    font-size: 11px;
}
.chart-bars-vertical[data-v-c98bd99b] {
    height: 200px;
    gap: 8px;
}
.bars-area[data-v-c98bd99b] {
    height: 160px;
}
.y-axis-labels[data-v-c98bd99b] {
    height: 160px;
    width: 40px;
}
.bar-vertical[data-v-c98bd99b] {
    width: 16px;
}
.bars-wrapper[data-v-c98bd99b] {
    gap: 2px;
}
.real-time-section[data-v-c98bd99b] {
    margin: 16px 4px 4px 4px;
}
.real-time-header[data-v-c98bd99b] {
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
}

  /* Botao ocupa a largura toda quando o header empilha */
.reports-button[data-v-c98bd99b] {
    justify-content: center;
}
}
