/* =========================================================
   ELITEDESK - SISTEMA DE DESIGN CORPORATIVO v2.0 (refinado)
   (Base + ajustes de compatibilidade com HTML antigo + app.js)
   ========================================================= */

/* ========== 1. VARIÁVEIS APRIMORADAS (Design Tokens) ========== */
:root {
  --ed-primary: #2563eb;
  --ed-primary-light: #60a5fa;
  --ed-primary-dark: #1e40af;
  --ed-primary-darker: #1e3a8a;
  --ed-primary-soft: #eff6ff;
  --ed-primary-glow: rgba(37, 99, 235, 0.15);

  --ed-secondary: #64748b;
  --ed-secondary-light: #94a3b8;
  --ed-secondary-dark: #475569;

  --ed-success: #22c55e;
  --ed-success-dark: #16a34a;
  --ed-warning: #f59e0b;
  --ed-warning-dark: #d97706;
  --ed-danger: #ef4444;
  --ed-danger-dark: #dc2626;
  --ed-info: #3b82f6;

  --ed-white: #ffffff;
  --ed-gray-50: #f8fafc;
  --ed-gray-100: #f1f5f9;
  --ed-gray-200: #e2e8f0;
  --ed-gray-300: #cbd5e1;
  --ed-gray-400: #94a3b8;
  --ed-gray-500: #64748b;
  --ed-gray-600: #475569;
  --ed-gray-700: #334155;
  --ed-gray-800: #1e293b;
  --ed-gray-900: #0f172a;

  --ed-bg-base: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  --ed-card-bg: #ffffff;
  --ed-card-bg-hover: #fafbfc;
  --ed-border: #e2e8f0;
  --ed-border-light: #f1f5f9;

  --ed-shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --ed-shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.08), 0 1px 2px -1px rgba(15, 23, 42, 0.08);
  --ed-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
  --ed-shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -4px rgba(15, 23, 42, 0.08);
  --ed-shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
  --ed-shadow-xl: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  --ed-shadow-glow: 0 0 20px var(--ed-primary-glow);

  --ed-radius-sm: 6px;
  --ed-radius: 10px;
  --ed-radius-md: 12px;
  --ed-radius-lg: 16px;
  --ed-radius-xl: 20px;
  --ed-radius-full: 9999px;

  --ed-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --ed-transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --ed-transition-smooth: 350ms cubic-bezier(0.4, 0, 0.2, 1);

  --bs-primary: #2563eb;
  --bs-primary-rgb: 37, 99, 235;
  --bs-link-color: #2563eb;
  --bs-link-hover-color: #1e40af;
  --bs-border-radius: 10px;
  --bs-border-radius-sm: 6px;
  --bs-border-radius-lg: 16px;
}

/* ========== 2. BASE & RESET ========== */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--ed-bg-base);
  color: var(--ed-gray-900);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

/* ========== 3. HEADER PREMIUM ========== */
.ea-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
  color: var(--ed-white);
  border-radius: var(--ed-radius-lg);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--ed-shadow-lg), 0 0 40px rgba(37, 99, 235, 0.2);
  position: relative;
  overflow: hidden;
  transition: transform var(--ed-transition-base);
}

.ea-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.ea-header:hover {
  transform: translateY(-2px);
}

.ea-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 1;
}

.ea-header-left img {
  height: 38px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
  transition: transform var(--ed-transition-base);
}

.ea-header-left img:hover {
  transform: scale(1.05);
}

.ea-header-left h1 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.ea-header-left .text-muted {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 0.875rem;
}

.ea-header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  z-index: 1;
}

.ea-user-info {
  text-align: right;
  line-height: 1.4;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--ed-radius);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all var(--ed-transition-base);
}

.ea-user-info:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.ea-user-name {
  font-size: 0.9375rem;
  font-weight: 600;
  display: block;
}

.ea-user-role {
  font-size: 0.75rem;
  opacity: 0.85;
  display: block;
  margin-top: 0.125rem;
}

.ea-bell-btn {
  color: var(--ed-white);
  font-size: 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.5rem;
  border-radius: var(--ed-radius);
  transition: all var(--ed-transition-base);
  backdrop-filter: blur(10px);
  position: relative;
}

.ea-bell-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--ed-shadow-md);
}

.ea-bell-btn:active {
  transform: translateY(0) scale(0.98);
}

/* ========== 4. CARDS MODERNOS (GLASS EFFECT) ========== */
.card {
  background-color: var(--ed-card-bg);
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius-lg);
  box-shadow: var(--ed-shadow);
  transition: all var(--ed-transition-smooth);
  backdrop-filter: blur(10px);
  overflow: hidden;
  position: relative;
  /* fix do ::before */
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ed-primary) 0%, var(--ed-primary-light) 100%);
  opacity: 0;
  transition: opacity var(--ed-transition-base);
}

.card:hover {
  box-shadow: var(--ed-shadow-lg);
  transform: translateY(-4px);
  border-color: var(--ed-primary-light);
}

.card:hover::before {
  opacity: 1;
}

.card-header {
  background: linear-gradient(135deg, var(--ed-gray-50) 0%, var(--ed-white) 100%);
  border-bottom: 2px solid var(--ed-border);
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ed-gray-900);
  border-radius: var(--ed-radius-lg) var(--ed-radius-lg) 0 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.card-header i {
  font-size: 1.125rem;
}

.card-body {
  padding: 1.25rem;
}

/* nested cards (ex.: rel-charts dentro do card de relatórios) */
#rel-charts .card {
  box-shadow: var(--ed-shadow-sm);
}

#rel-charts .card:hover {
  transform: translateY(-2px);
}

/* ========== 5. FORMS PREMIUM ========== */
.form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ed-gray-700);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-label i {
  font-size: 1rem;
  color: var(--ed-primary);
}

.form-control,
.form-select {
  border: 2px solid var(--ed-gray-200);
  border-radius: var(--ed-radius);
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  transition: all var(--ed-transition-base);
  background-color: var(--ed-white);
  box-shadow: var(--ed-shadow-xs);
}

.form-control:hover,
.form-select:hover {
  border-color: var(--ed-gray-300);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--ed-primary);
  box-shadow: 0 0 0 4px var(--ed-primary-glow), var(--ed-shadow-sm);
  outline: none;
  transform: translateY(-1px);
}

.form-control::placeholder {
  color: var(--ed-gray-400);
  font-size: 0.875rem;
}

/* ========== 6. BUTTONS MODERNOS (3D EFFECT) ========== */
.btn {
  border-radius: var(--ed-radius);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  transition: all var(--ed-transition-base);
  border: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--ed-shadow-xs);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn i {
  font-size: 1rem;
  transition: transform var(--ed-transition-base);
}

.btn:hover i {
  transform: scale(1.1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--ed-primary) 0%, var(--ed-primary-dark) 100%);
  border-color: var(--ed-primary);
  color: var(--ed-white);
  box-shadow: var(--ed-shadow), 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--ed-primary-dark) 0%, var(--ed-primary-darker) 100%);
  border-color: var(--ed-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--ed-shadow-md), 0 8px 20px rgba(37, 99, 235, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--ed-shadow-sm);
}

.btn-outline-primary {
  border-color: var(--ed-primary);
  color: var(--ed-primary);
  background-color: var(--ed-white);
  box-shadow: var(--ed-shadow-xs);
}

.btn-outline-primary:hover {
  background: linear-gradient(135deg, var(--ed-primary) 0%, var(--ed-primary-dark) 100%);
  color: var(--ed-white);
  transform: translateY(-2px);
  box-shadow: var(--ed-shadow), 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-outline-secondary {
  border-color: var(--ed-gray-300);
  color: var(--ed-gray-700);
  background-color: var(--ed-white);
}

.btn-outline-secondary:hover {
  background-color: var(--ed-gray-100);
  border-color: var(--ed-gray-400);
  transform: translateY(-1px);
}

.btn-outline-danger {
  border-color: var(--ed-danger);
  color: var(--ed-danger);
  background-color: var(--ed-white);
}

.btn-outline-danger:hover {
  background: linear-gradient(135deg, var(--ed-danger) 0%, var(--ed-danger-dark) 100%);
  color: var(--ed-white);
  transform: translateY(-2px);
  box-shadow: var(--ed-shadow), 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-sm {
  padding: 0.4375rem 0.875rem;
  font-size: 0.8125rem;
  border-radius: calc(var(--ed-radius) - 2px);
}

/* Icon buttons (ações da tabela) - SUPER COMPACTOS */
.btn-action,
.btn-icon {
  width: 28px; /* Menor ainda */
  height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ed-gray-300);
  background: var(--ed-white);
  color: var(--ed-gray-700);
  border-radius: calc(var(--ed-radius) - 2px);
  transition: all var(--ed-transition-fast);
  flex-shrink: 0;
}

.btn-action:hover,
.btn-icon:hover {
  background: var(--ed-gray-100);
  border-color: var(--ed-gray-400);
  color: var(--ed-gray-900);
  transform: translateY(-1px);
  box-shadow: var(--ed-shadow-xs);
}

.btn-action i,
.btn-icon i {
  font-size: 0.875rem;
}

/* Botão Assumir - Verde */
.btn-action-assumir {
  border-color: #10b981;
  color: #10b981;
}

.btn-action-assumir:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
}

/* Botão Ver - Cinza/Azul */
.btn-action-ver {
  border-color: #64748b;
  color: #64748b;
}

.btn-action-ver:hover {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
  color: #fff;
}

/* Botão Histórico - Laranja */
.btn-action-historico {
  border-color: #f59e0b;
  color: #f59e0b;
}

.btn-action-historico:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
}

/* Botão Evento - Rosa/Magenta */
.btn-action-evento {
  border-color: #ec4899;
  color: #ec4899;
}

.btn-action-evento:hover {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
  color: #fff;
}

/* Botão Encaminhar Detalhes - Azul */
.btn-action-encaminhar-detalhes {
  border-color: #3b82f6;
  color: #3b82f6;
}

.btn-action-encaminhar-detalhes:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
}

/* Botão Vincular Problema - Roxo */
.btn-action-problema {
  border-color: #7c3aed;
  color: #7c3aed;
}

.btn-action-problema:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
  color: #fff;
}

/* ========== 7. BADGES PREMIUM ========== */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--ed-radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  border: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--ed-shadow-xs);
  transition: all var(--ed-transition-base);
}

.badge-status:hover {
  transform: translateY(-1px);
  box-shadow: var(--ed-shadow-sm);
}

.status-aberto {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  border-color: #fbbf24;
}

.status-em_atendimento {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
  border-color: #60a5fa;
}

.status-aguardando {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #991b1b;
  border-color: #f87171;
}

.status-concluido {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
  border-color: #34d399;
}

.status-cancelado {
  background: linear-gradient(135deg, var(--ed-gray-200) 0%, var(--ed-gray-300) 100%);
  color: var(--ed-gray-700);
  border-color: var(--ed-gray-400);
}

.badge-prioridade {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--ed-radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  border: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--ed-shadow-xs);
}

.prio-baixa {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
  border-color: #60a5fa;
}

.prio-media {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  border-color: #fbbf24;
}

.prio-alta {
  background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
  color: #9a3412;
  border-color: #fb923c;
}

.prio-critica {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #991b1b;
  border-color: #f87171;
}

.badge-farol-verde {
  background: linear-gradient(135deg, var(--ed-success) 0%, var(--ed-success-dark) 100%);
  color: var(--ed-white);
  padding: 0.375rem 0.75rem;
  border-radius: var(--ed-radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-farol-amarelo {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #000000;
  padding: 0.375rem 0.75rem;
  border-radius: var(--ed-radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-farol-vermelho {
  background: linear-gradient(135deg, var(--ed-danger) 0%, var(--ed-danger-dark) 100%);
  color: var(--ed-white);
  padding: 0.375rem 0.75rem;
  border-radius: var(--ed-radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Badge "dias aberto" (app.js usa .badge-age) */
.badge-age {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .18rem .55rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 800;
  border: 1px solid var(--ed-gray-200);
  background: linear-gradient(135deg, var(--ed-white) 0%, var(--ed-gray-50) 100%);
  color: var(--ed-gray-900);
  box-shadow: var(--ed-shadow-xs);
}

.badge-age strong {
  font-weight: 900;
}

/* ========== 8. TABS MODERNIZADAS ========== */
.nav-tabs {
  border-bottom: 2px solid var(--ed-border);
  display: flex;
  flex-wrap: nowrap;
  gap: 0.25rem;
  overflow-x: auto;
  justify-content: flex-start;
  padding-bottom: 2px;
  scrollbar-width: thin;
  scrollbar-color: var(--ed-gray-300) transparent;
}

.nav-tabs::-webkit-scrollbar {
  height: 6px;
}

.nav-tabs::-webkit-scrollbar-thumb {
  background: var(--ed-gray-300);
  border-radius: var(--ed-radius-full);
}

.nav-tabs .nav-link {
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  padding: 0.75rem 1.125rem;
  color: var(--ed-gray-600);
  font-weight: 600;
  transition: all var(--ed-transition-base);
  font-size: 0.9375rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  background: transparent;
}

.nav-tabs .nav-link i {
  font-size: 1.125rem;
  transition: transform var(--ed-transition-base);
}

.nav-tabs .nav-link:hover {
  color: var(--ed-primary);
  background: var(--ed-gray-50);
  border-bottom-color: var(--ed-primary-light);
}

.nav-tabs .nav-link:hover i {
  transform: scale(1.1);
}

.nav-tabs .nav-link.active {
  color: var(--ed-primary);
  border-bottom-color: var(--ed-primary);
  background: var(--ed-primary-soft);
  font-weight: 700;
}

.nav-tabs .nav-link.active i {
  color: var(--ed-primary-dark);
}

/* ed-tabs: centralizado, sem scrollbar vertical */
.ed-tabs {
  justify-content: center !important;
  gap: clamp(0.35rem, 1.2vw, 1.1rem);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.ed-tabs::-webkit-scrollbar {
  height: 0;
}

/* ========== 9. TABELAS PREMIUM ========== */
.table {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.875rem;
  box-shadow: var(--ed-shadow);
  border-radius: var(--ed-radius);
  overflow: hidden;
}

.table thead th {
  background: linear-gradient(135deg, var(--ed-gray-100) 0%, var(--ed-gray-50) 100%);
  color: var(--ed-gray-900);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
  padding: 0.875rem 1rem;
  border-bottom: 2px solid var(--ed-border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.table tbody td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--ed-border-light);
  vertical-align: middle;
  transition: background-color var(--ed-transition-fast);
}

.table tbody tr {
  transition: all var(--ed-transition-base);
}

.table tbody tr:hover {
  background-color: var(--ed-gray-50);
  transform: scale(1.001);
  box-shadow: var(--ed-shadow-sm);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* compact do app.js */
.table-row-compact td {
  padding-top: .70rem;
  padding-bottom: .70rem;
}

/* seleção de linha (app.js usa .row-selected) */
.table tbody tr.row-selected {
  background: var(--ed-primary-soft) !important;
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, .25);
}

/* ========== 10. KPI CARDS ========== */
.ea-card-kpi {
  background: linear-gradient(135deg, var(--ed-white) 0%, var(--ed-gray-50) 100%);
  border-left: 4px solid var(--ed-primary);
  padding: 1rem 1.25rem;
  border-radius: var(--ed-radius-md);
  box-shadow: var(--ed-shadow);
  transition: all var(--ed-transition-smooth);
  position: relative;
  overflow: hidden;
}

.ea-card-kpi::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--ed-primary-glow) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--ed-transition-smooth);
}

.ea-card-kpi:hover {
  transform: translateY(-4px);
  box-shadow: var(--ed-shadow-lg);
  border-left-width: 6px;
}

.ea-card-kpi:hover::before {
  opacity: 1;
}

.ea-card-kpi .label {
  font-size: 0.75rem;
  color: var(--ed-gray-600);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}

.ea-card-kpi .value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ed-gray-900);
  display: block;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* ========== 11. ELIA CHAT (novo layout do app.js) ========== */
.elia-chat {
  background: linear-gradient(135deg, var(--ed-gray-50) 0%, var(--ed-white) 100%);
  border: 2px solid var(--ed-border);
  border-radius: var(--ed-radius-md);
  padding: 1rem;
  height: 55vh;
  overflow: auto;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .05);
}

.elia-empty {
  color: var(--ed-gray-600);
  font-size: .9rem;
  padding: .75rem .5rem;
}

.elia-row {
  display: flex;
  margin: 10px 0;
}

.elia-row.user {
  justify-content: flex-end;
}

.elia-row.bot {
  justify-content: flex-start;
}

.elia-bubble {
  max-width: 82%;
  padding: 10px 12px;
  border-radius: 14px;
  line-height: 1.35;
  white-space: pre-wrap;
  box-shadow: var(--ed-shadow-sm);
}

.elia-row.user .elia-bubble {
  background: linear-gradient(135deg, var(--ed-primary) 0%, var(--ed-primary-dark) 100%);
  color: #fff;
  border-bottom-right-radius: 6px;
}

.elia-row.bot .elia-bubble {
  background: #fff;
  color: var(--ed-gray-900);
  border: 2px solid var(--ed-border);
  border-bottom-left-radius: 6px;
}

.elia-meta {
  font-size: .72rem;
  opacity: .85;
  margin-bottom: 6px;
}

.elia-typing {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--ed-gray-600);
  font-size: .85rem;
}

/* mantém compatibilidade com bloco antigo */
#elia-resposta-ticket {
  white-space: pre-wrap;
}

/* ========== 12. TOOLBAR & CHIPS ========== */
.ea-toolbar {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  border: 2px solid var(--ed-border);
  border-radius: var(--ed-radius-md);
  background: linear-gradient(135deg, var(--ed-gray-50) 0%, var(--ed-white) 100%);
  margin-bottom: 1.25rem;
  box-shadow: var(--ed-shadow-sm);
}

.ea-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: var(--ed-radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  border: 2px solid transparent;
  transition: all var(--ed-transition-base);
  box-shadow: var(--ed-shadow-xs);
}

.ea-chip:hover {
  transform: translateY(-1px);
  box-shadow: var(--ed-shadow-sm);
}

.chip-verde {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
  border-color: #34d399;
}

.chip-amarelo {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  border-color: #fbbf24;
}

.chip-vermelho {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #991b1b;
  border-color: #f87171;
}

.ea-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px currentColor;
}

.ea-card-subtitle {
  color: var(--ed-gray-600);
  font-size: .82rem;
}

/* ========== 13. EVENTOS (Timeline Premium) ========== */
.ea-timeline .ea-item,
.ticket-eventos-item {
  border-left: 3px solid var(--ed-primary);
  background: linear-gradient(135deg, var(--ed-gray-50) 0%, var(--ed-white) 100%);
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  border-radius: var(--ed-radius);
  font-size: 0.875rem;
  box-shadow: var(--ed-shadow-xs);
  transition: all var(--ed-transition-base);
  position: relative;
  padding-left: 1.5rem;
}

.ea-timeline .ea-item::before,
.ticket-eventos-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 50%;
  transform: translateY(-50%);
  width: 11px;
  height: 11px;
  background-color: var(--ed-primary);
  border: 3px solid var(--ed-white);
  border-radius: 50%;
  box-shadow: var(--ed-shadow-sm);
}

.ea-timeline .ea-item:hover,
.ticket-eventos-item:hover {
  border-left-width: 5px;
  transform: translateX(4px);
  box-shadow: var(--ed-shadow);
}

.ticket-eventos {
  border-top: 2px solid var(--ed-border);
  margin-top: 1.25rem;
  padding-top: 1rem;
}

/* ========== 14. SEÇÕES & PAINÉIS ========== */
.ea-section {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 2px dashed var(--ed-border);
}

.ea-section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.ea-section-title {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  color: var(--ed-gray-900);
  margin-bottom: 1rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ea-section-title i {
  color: var(--ed-primary);
  font-size: 1.25rem;
}

.ea-kv {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem 1.25rem;
}

.panel-soft {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #fbbf24;
  border-radius: var(--ed-radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--ed-shadow-xs);
}

/* ========== 15. LISTA: seleção/expand/actions (app.js) ========== */
.td-sel {
  width: 40px;
  text-align: center;
}

.sel-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
  border: 2px solid var(--ed-gray-300);
  background: var(--ed-white);
  cursor: pointer;
  transition: all var(--ed-transition-fast);
}

.row-selected .sel-dot {
  background: var(--ed-primary);
  border-color: var(--ed-primary);
  box-shadow: 0 0 0 4px var(--ed-primary-glow);
}

.btn-expand {
  width: 34px;
  height: 34px;
  border: 2px solid var(--ed-gray-200);
  background: var(--ed-white);
  border-radius: var(--ed-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--ed-shadow-xs);
  transition: all var(--ed-transition-base);
}

.btn-expand:hover {
  transform: translateY(-1px);
  border-color: var(--ed-primary-light);
}

.td-titulo-wrap {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.actions-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.actions-row {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap; /* IMPORTANTE: não quebrar linha */
  align-items: center;
}

.actions-row-top {
  width: 100%;
}

.actions-row-top .select-status {
  width: 100%;
  font-size: 0.8125rem;
  padding: 0.35rem 0.5rem;
}

.actions-row-bottom {
  flex-wrap: nowrap; /* CRÍTICO: mantém botões em linha */
  justify-content: flex-start;
}

/* Expand do ticket (linha extra abaixo) */
.tr-expand td {
  padding: 0 !important;
  border-bottom: none !important;
  background: transparent !important;
}

.expand-box {
  border-top: 1px solid var(--ed-border-light);
  background: linear-gradient(135deg, var(--ed-gray-50) 0%, var(--ed-white) 100%);
  padding: 12px 14px;
}

.expand-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.expand-title {
  font-weight: 800;
  color: var(--ed-gray-900);
  letter-spacing: -0.01em;
}

.expand-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  justify-content: flex-end;
}

.expand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.expand-grid .k,
.expand-desc .k {
  font-size: 11px;
  color: var(--ed-gray-600);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 3px;
}

.expand-grid .v {
  font-size: 13px;
  font-weight: 700;
  color: var(--ed-gray-900);
}

.expand-desc {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--ed-border);
}

.expand-desc .v {
  font-size: 13px;
  color: var(--ed-gray-900);
}

/* responsivo do expand */
@media (max-width: 992px) {
  .expand-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== 16. Tabela tickets: SEM SCROLL em 1920x1080 ========== */
.tickets-table-shell {
  position: relative;
}

.tickets-scroll {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 60vh;
  scrollbar-width: thin;
  scrollbar-color: var(--ed-gray-300) transparent;
}

.tickets-scroll::-webkit-scrollbar {
  height: 10px;
  width: 10px;
}

.tickets-scroll::-webkit-scrollbar-thumb {
  background: var(--ed-gray-300);
  border-radius: var(--ed-radius-full);
}

/* Tabela otimizada para 1920x1080 */
#tabela-tickets {
  width: 100%;
  font-size: 0.8125rem;
  white-space: nowrap;
}

#tabela-tickets th,
#tabela-tickets td {
  padding: 0.45rem 0.4rem;
  vertical-align: middle;
}

/* Larguras fixas otimizadas para Full HD */
#tabela-tickets th:nth-child(1), 
#tabela-tickets td:nth-child(1) { /* Seleção */
  width: 36px;
}

#tabela-tickets th:nth-child(2), 
#tabela-tickets td:nth-child(2) { /* ID */
  width: 45px;
}

#tabela-tickets th:nth-child(3), 
#tabela-tickets td:nth-child(3) { /* Protocolo */
  width: 125px;
}

#tabela-tickets th:nth-child(4), 
#tabela-tickets td:nth-child(4) { /* Título */
  width: 240px;
  max-width: 240px;
  white-space: normal;
  word-wrap: break-word;
  line-height: 1.3;
}

#tabela-tickets th:nth-child(5), 
#tabela-tickets td:nth-child(5) { /* Setor */
  width: 95px;
}

#tabela-tickets th:nth-child(6), 
#tabela-tickets td:nth-child(6) { /* Prioridade */
  width: 85px;
}

#tabela-tickets th:nth-child(7), 
#tabela-tickets td:nth-child(7) { /* Responsável */
  width: 120px;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

#tabela-tickets th:nth-child(8), 
#tabela-tickets td:nth-child(8) { /* Prazo limite */
  width: 95px;
}

#tabela-tickets th:nth-child(9), 
#tabela-tickets td:nth-child(9) { /* Farol */
  width: 85px;
}

#tabela-tickets th:nth-child(10), 
#tabela-tickets td:nth-child(10) { /* Status */
  width: 115px;
}

#tabela-tickets th:nth-child(11), 
#tabela-tickets td:nth-child(11) { /* Abertura */
  width: 130px;
}

#tabela-tickets th:nth-child(12), 
#tabela-tickets td:nth-child(12) { /* Ações */
  width: 230px;
}

/* ===== RESPONSIVO: scroll apenas em telas menores ===== */

/* Tablets e menores (< 1400px) */
@media (max-width: 1399px) {
  #tabela-tickets {
    min-width: 1100px; /* Força scroll horizontal */
  }
}

/* Celulares (< 768px) */
@media (max-width: 767px) {
  #tabela-tickets {
    min-width: 900px; /* Scroll garantido */
    font-size: 0.75rem;
  }
  
  #tabela-tickets th,
  #tabela-tickets td {
    padding: 0.35rem 0.3rem;
  }
}

/* ========== 17. Utilidades ========== */
.text-muted {
  color: var(--ed-gray-600) !important;
}

small,
.small {
  font-size: 0.8125rem;
}

*:focus-visible {
  outline: 3px solid var(--ed-primary);
  outline-offset: 2px;
  border-radius: var(--ed-radius-sm);
}

/* ========== 18. LISTAS / SCROLL ========== */
.lista-notas-scroll {
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--ed-gray-300) transparent;
}

.lista-notas-scroll::-webkit-scrollbar {
  width: 8px;
}

.lista-notas-scroll::-webkit-scrollbar-thumb {
  background: var(--ed-gray-300);
  border-radius: var(--ed-radius-full);
}

/* ========== 19. PRINT ========== */
@media print {
  body {
    background-color: var(--ed-white);
  }

  .btn,
  .nav,
  #login-form,
  .ea-bell-btn,
  .ea-header-right {
    display: none !important;
  }

  .card {
    box-shadow: none;
    border: 2px solid #000000;
    break-inside: avoid;
  }

  .card:hover {
    transform: none;
  }
}

/* ========== 20. Responsivo ========== */
@media (max-width: 768px) {
  .ea-header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .ea-header::before {
    display: none;
  }

  .ea-header-left,
  .ea-header-right {
    width: 100%;
    justify-content: space-between;
  }

  .ea-header-left img {
    height: 32px;
  }

  .nav-tabs .nav-link {
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
  }

  .table {
    font-size: 0.8125rem;
  }

  .btn {
    font-size: 0.8125rem;
    padding: 0.5rem 1rem;
  }

  .card-body {
    padding: 1rem;
  }

  .ea-card-kpi .value {
    font-size: 1.5rem;
  }
}

/* Campos com quebra de linha (relatórios) */
#tabela-relatorios td.wrap {
  white-space: normal;
  min-width: 440px;
}

/* Preview */
#preview-titulo {
  color: var(--ed-primary);
  font-weight: 700;
  font-size: 1.125rem;
}

/* =========================
   NOTÍCIAS (Portal interno)
   ========================= */
.news-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.news-title {
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
}

.news-subtitle {
  color: var(--ed-gray-600);
  font-size: .82rem;
  margin-top: 2px;
}

.news-actions {
  display: flex;
  gap: 8px;
  align-items: end;
  flex-wrap: wrap;
}

.news-search {
  min-width: 240px;
}

.news-feature-card {
  border-radius: var(--ed-radius-lg);
  overflow: hidden;
  border: 1px solid var(--ed-border);
  box-shadow: var(--ed-shadow);
  background: var(--ed-white);
}

.news-feature-media {
  position: relative;
  min-height: 220px;
  background: linear-gradient(135deg, var(--ed-gray-100) 0%, var(--ed-gray-50) 100%);
}

.news-feature-media img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.news-feature-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 35%, rgba(15, 23, 42, .75) 100%);
}

.news-feature-body {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  color: #fff;
}

.news-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .22rem .6rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: .72rem;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(6px);
}

.news-feature-title {
  margin-top: 8px;
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.news-feature-summary {
  margin-top: 4px;
  font-size: .88rem;
  opacity: .95;
}

.news-feature-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius);
  background: linear-gradient(135deg, var(--ed-white) 0%, var(--ed-gray-50) 100%);
  box-shadow: var(--ed-shadow-xs);
  transition: all var(--ed-transition-base);
}

.news-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--ed-shadow);
  border-color: var(--ed-primary-light);
}

.news-thumb {
  width: 120px;
  height: 74px;
  border-radius: 12px;
  overflow: hidden;
  flex: 0 0 auto;
  background: var(--ed-gray-100);
  border: 1px solid var(--ed-border);
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-item-main {
  flex: 1;
  min-width: 0;
}

.news-item-title {
  font-weight: 900;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.15;
}

.news-item-meta {
  color: var(--ed-gray-600);
  font-size: .78rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.news-item-summary {
  color: var(--ed-gray-800);
  font-size: .88rem;
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item-actions {
  display: flex;
  gap: 6px;
  align-items: flex-start;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.quick-tile {
  border-radius: var(--ed-radius);
  padding: 12px 10px;
  border: 1px solid rgba(34, 197, 94, .25);
  background: linear-gradient(135deg, rgba(34, 197, 94, .18) 0%, rgba(34, 197, 94, .08) 100%);
  box-shadow: var(--ed-shadow-xs);
  transition: all var(--ed-transition-base);
  text-decoration: none;
  color: var(--ed-gray-900);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.quick-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--ed-shadow);
  border-color: rgba(34, 197, 94, .45);
}

.quick-tile i {
  font-size: 1.2rem;
  color: #16a34a;
}

.quick-tile span {
  font-weight: 900;
  font-size: .82rem;
  line-height: 1.1;
}

.news-simple-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-simple-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius);
  background: var(--ed-white);
  box-shadow: var(--ed-shadow-xs);
}

.news-simple-row i {
  color: #16a34a;
}

.news-events {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-event {
  display: flex;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius);
  background: linear-gradient(135deg, var(--ed-white) 0%, var(--ed-gray-50) 100%);
  box-shadow: var(--ed-shadow-xs);
}

.news-event-date {
  width: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ed-primary) 0%, var(--ed-primary-dark) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 6px;
  text-align: center;
  flex: 0 0 auto;
}

.news-event-date .d {
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1;
}

.news-event-date .m {
  font-size: .72rem;
  opacity: .95;
  text-transform: uppercase;
}

.news-event-main {
  min-width: 0;
}

.news-event-title {
  font-weight: 900;
  margin: 0;
  line-height: 1.15;
}

.news-event-loc {
  color: var(--ed-gray-600);
  font-size: .78rem;
  margin-top: 4px;
}

.news-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.news-gimg {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--ed-border);
  background: var(--ed-gray-100);
  aspect-ratio: 4 / 3;
  box-shadow: var(--ed-shadow-xs);
}

.news-gimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 992px) {
  .quick-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .news-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 576px) {
  .news-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .news-search {
    width: 100%;
    min-width: 0;
  }

  .quick-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-thumb {
    width: 96px;
  }

  .news-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================
   UNIELITE (biblioteca)
   ========================= */
.ue-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ue-title {
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
}

.ue-subtitle {
  color: var(--ed-gray-600);
  font-size: .82rem;
  margin-top: 2px;
}

.ue-actions {
  display: flex;
  gap: 8px;
  align-items: end;
  flex-wrap: wrap;
}

.ue-search {
  min-width: 240px;
}

.ue-filter {
  min-width: 160px;
}

.ue-feature-card {
  border-radius: var(--ed-radius-lg);
  overflow: hidden;
  border: 1px solid var(--ed-border);
  box-shadow: var(--ed-shadow);
  background: var(--ed-white);
}

.ue-feature-body {
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.ue-feature-thumb {
  width: 180px;
  height: 110px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--ed-border);
  background: var(--ed-gray-100);
  flex: 0 0 auto;
  position: relative;
}

.ue-feature-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ue-play {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, .75);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .2);
}

.ue-feature-main {
  flex: 1;
  min-width: 0;
}

.ue-feature-title {
  font-weight: 900;
  margin: 0;
  line-height: 1.15;
}

.ue-feature-meta {
  color: var(--ed-gray-600);
  font-size: .78rem;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.ue-feature-desc {
  color: var(--ed-gray-800);
  margin-top: 8px;
  font-size: .9rem;
}

.ue-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .20rem .60rem;
  border-radius: 999px;
  border: 1px solid var(--ed-border);
  background: linear-gradient(135deg, var(--ed-white) 0%, var(--ed-gray-50) 100%);
  font-size: .72rem;
  font-weight: 800;
}

.ue-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ue-card {
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius);
  background: linear-gradient(135deg, var(--ed-white) 0%, var(--ed-gray-50) 100%);
  box-shadow: var(--ed-shadow-xs);
  padding: 10px;
  transition: all var(--ed-transition-base);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.ue-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--ed-shadow);
  border-color: var(--ed-primary-light);
}

.ue-thumb {
  width: 110px;
  height: 68px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--ed-border);
  background: var(--ed-gray-100);
  flex: 0 0 auto;
  position: relative;
}

.ue-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ue-iconbox {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--ed-border);
  background: var(--ed-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.ue-iconbox i {
  font-size: 1.25rem;
  color: var(--ed-primary);
}

.ue-main {
  flex: 1;
  min-width: 0;
}

.ue-title2 {
  font-weight: 900;
  margin: 0;
  line-height: 1.15;
}

.ue-meta {
  color: var(--ed-gray-600);
  font-size: .78rem;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.ue-desc {
  margin-top: 6px;
  color: var(--ed-gray-800);
  font-size: .88rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ue-actions2 {
  display: flex;
  gap: 6px;
  align-items: flex-start;
}

.ue-view-preview {
  border: 1px solid var(--ed-border);
  border-radius: 14px;
  background: var(--ed-gray-50);
  overflow: hidden;
}

.ue-view-preview iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

.ue-summary-box {
  border: 1px solid var(--ed-border);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--ed-white) 0%, var(--ed-gray-50) 100%);
  padding: 10px;
  min-height: 120px;
  white-space: pre-wrap;
}

@media (max-width: 992px) {
  .ue-grid {
    grid-template-columns: 1fr;
  }

  .ue-view-preview iframe {
    height: 300px;
  }
}

@media (max-width: 576px) {
  .ue-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .ue-search {
    width: 100%;
    min-width: 0;
  }

  .ue-feature-body {
    flex-direction: column;
  }

  .ue-feature-thumb {
    width: 100%;
    height: 180px;
  }
}

.actions-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.actions-row {
  display: flex;
  gap: 6px;
}

.actions-row-top .select-status {
  width: 100%;
}

.actions-row-bottom {
  flex-wrap: wrap;
}

.btn-action-encaminhar-detalhes {
  border-color: #3b82f6;
  color: #3b82f6;
  background: #fff;
}

.btn-action-encaminhar-detalhes:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
}

.btn-action-problema {
  border-color: #7c3aed;
  color: #7c3aed;
  background: #fff;
}

.btn-action-problema:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
  color: #fff;
}

/* badge de problema (mostra no título depois) */
.problema-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .14rem .5rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: .72rem;
  font-weight: 800;
  color: #5b21b6;
  margin-left: .5rem;
}

/* =========================
   DASHBOARD (robusto)
   ========================= */
.dash-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 12px;
}

.dash-title {
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
}

.dash-subtitle {
  color: var(--ed-gray-600);
  font-size: .82rem;
  margin-top: 2px;
}

.dash-actions {
  width: 100%;
}

.dash-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: flex-end;
}

.dash-field {
  min-width: 160px;
}

.dash-field-actions {
  min-width: auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dash-matrix {
  border: 1px solid var(--ed-border);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ed-white) 0%, var(--ed-gray-50) 100%);
}

.dash-matrix table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
}

.dash-matrix th,
.dash-matrix td {
  border-bottom: 1px solid var(--ed-border-light);
  padding: 8px 10px;
  vertical-align: middle;
}

.dash-matrix th {
  background: linear-gradient(135deg, var(--ed-gray-100) 0%, var(--ed-gray-50) 100%);
  font-weight: 800;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.dash-matrix .rowhdr {
  font-weight: 800;
  white-space: nowrap;
}

.dash-matrix .cell {
  text-align: center;
  font-weight: 800;
  border-left: 1px solid var(--ed-border-light);
}

.dash-insights-box {
  border: 1px solid var(--ed-border);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--ed-white) 0%, var(--ed-gray-50) 100%);
  padding: 10px;
}

.dash-insights-title {
  font-weight: 900;
  margin-bottom: 6px;
}

.dash-pre {
  white-space: pre-wrap;
  font-size: .88rem;
  color: var(--ed-gray-900);
  min-height: 140px;
}

#dash-risk-tbody tr {
  cursor: pointer;
}

#dash-risk-tbody tr:hover {
  background: var(--ed-gray-50);
}

@media (max-width: 992px) {
  .dash-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .dash-actions-row {
    justify-content: flex-start;
  }

  .dash-field {
    min-width: 140px;
  }
}

/* =========================
   RELATÓRIOS EXECUTIVOS
   ========================= */
.rel-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 12px;
}

.rel-title {
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
}

.rel-subtitle {
  color: var(--ed-gray-600);
  font-size: .82rem;
  margin-top: 2px;
}

.rel-top-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.rel-pre {
  white-space: pre-wrap;
  font-size: .88rem;
  color: var(--ed-gray-900);
  border: 1px solid var(--ed-border);
  border-radius: 14px;
  padding: 10px;
  background: linear-gradient(135deg, var(--ed-white) 0%, var(--ed-gray-50) 100%);
  min-height: 140px;
}

.rel-matrix {
  border: 1px solid var(--ed-border);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ed-white) 0%, var(--ed-gray-50) 100%);
}

.rel-matrix table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
}

.rel-matrix th,
.rel-matrix td {
  border-bottom: 1px solid var(--ed-border-light);
  padding: 8px 10px;
}

.rel-matrix th {
  background: linear-gradient(135deg, var(--ed-gray-100) 0%, var(--ed-gray-50) 100%);
  font-weight: 800;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.rel-matrix .rowhdr {
  font-weight: 800;
  white-space: nowrap;
}

.rel-matrix .cell {
  text-align: center;
  font-weight: 800;
  border-left: 1px solid var(--ed-border-light);
}

@media (max-width: 992px) {
  .rel-topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== Relatórios: densidade executiva ===== */
#view-relatorios .card-body {
  padding: 1rem;
}

#rel-kpis .ea-card-kpi {
  padding: .85rem 1rem;
}

#rel-kpis .ea-card-kpi .label {
  font-size: .68rem;
  margin-bottom: .25rem;
}

#rel-kpis .ea-card-kpi .value {
  font-size: 1.55rem;
}

#rel-charts .card-body {
  padding: .85rem;
}

#rel-charts canvas {
  max-height: 220px;
}

#rel-matrix {
  overflow: auto;
}

#rel-matrix table {
  min-width: 720px;
}

#rel-matrix th,
#rel-matrix td {
  padding: 6px 8px;
  white-space: nowrap;
}

#rel-matrix .rowhdr {
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 2;
}

#rel-matrix thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
}

#rel-exec {
  min-height: 240px;
}

.rel-sidebar-sticky {
  position: sticky;
  top: 12px;
}

/* Relatórios: mais executivo (menos “ar”, mais informação) */
#view-relatorios .card-body {
  padding: 1rem;
}

#rel-charts .card-body {
  padding: .85rem;
}

#rel-charts canvas {
  max-height: 240px;
}

.rel-pre {
  min-height: 200px;
}

/* ========== ELIA: ESTILOS EXECUTIVOS ========== */

/* Container Principal */
.elia-container {
  height: calc(100vh - 120px);
  background: #f8f9fa;
}

/* ===== SIDEBAR ===== */
.elia-sidebar {
  background: #ffffff;
  border-right: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: calc(100vh - 120px);
}

.elia-sidebar-header {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid #e0e0e0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.elia-sidebar-header h5 {
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
}

.elia-sidebar-search {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e0e0e0;
  background: #fafafa;
}

.elia-sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
}

.elia-sidebar-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid #e0e0e0;
  background: #fafafa;
}

/* Lista de Conversas */
.elia-conversations-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.elia-conversation-item {
  padding: 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
  border: 1px solid #e0e0e0;
}

.elia-conversation-item:hover {
  background: #f8f9fa;
  border-color: #667eea;
  transform: translateX(2px);
}

.elia-conversation-item.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: #667eea;
}

.elia-conversation-item .conversation-title {
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.elia-conversation-item .conversation-date {
  font-size: 0.75rem;
  opacity: 0.7;
}

.elia-conversation-item.active .conversation-title,
.elia-conversation-item.active .conversation-date {
  color: white;
}

/* ===== MAIN CHAT AREA ===== */
.elia-main {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: calc(100vh - 120px);
  background: #ffffff;
}

/* Header do Chat */
.elia-chat-header {
  padding: 1rem 1.5rem;
  border-bottom: 2px solid #e0e0e0;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.elia-chat-header h6 {
  font-weight: 600;
  color: #2c3e50;
  font-size: 1rem;
}

.elia-chat-header small {
  font-size: 0.8rem;
}

/* Corpo do Chat */
.elia-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

/* Welcome Screen */
.elia-welcome {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 2rem;
}

.elia-logo-big {
  font-size: 5rem;
  color: #667eea;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.elia-suggestions {
  max-width: 800px;
  margin: 0 auto;
}

.elia-suggestion-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  text-align: left;
  transition: all 0.3s ease;
  width: 100%;
  cursor: pointer;
}

.elia-suggestion-card:hover {
  border-color: #667eea;
  background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.elia-suggestion-card i {
  font-size: 1.5rem;
  min-width: 30px;
}

.elia-suggestion-card span {
  font-weight: 500;
  color: #2c3e50;
  font-size: 0.9rem;
}

/* Container de Mensagens */
.elia-messages {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Mensagem Individual */
.elia-message {
  display: flex;
  gap: 0.75rem;
  animation: messageSlideIn 0.3s ease-out;
}

@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.elia-message.user {
  flex-direction: row-reverse;
}

.elia-message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.elia-message.assistant .elia-message-avatar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.elia-message.user .elia-message-avatar {
  background: #34495e;
  color: white;
}

.elia-message-content {
  max-width: 70%;
  background: white;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: relative;
}

.elia-message.assistant .elia-message-content {
  border: 2px solid #e0e0e0;
  background: white;
}

.elia-message.user .elia-message-content {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
}

.elia-message-text {
  font-size: 0.95rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.elia-message.user .elia-message-text {
  color: white;
}

.elia-message-time {
  font-size: 0.7rem;
  opacity: 0.6;
  margin-top: 0.5rem;
  text-align: right;
}

.elia-message.assistant .elia-message-time {
  color: #7f8c8d;
}

.elia-message.user .elia-message-time {
  color: white;
}

/* Mensagem de Loading */
.elia-message-loading {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 0;
}

.elia-message-loading .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #667eea;
  animation: loadingDot 1.4s infinite;
}

.elia-message-loading .dot:nth-child(2) {
  animation-delay: 0.2s;
}

.elia-message-loading .dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes loadingDot {

  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }

  30% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

/* ===== FOOTER: INPUT ===== */
.elia-chat-footer {
  border-top: 2px solid #e0e0e0;
  background: white;
  padding: 1rem 1.5rem;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

.elia-attachments-area {
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  border: 1px solid #e0e0e0;
}

.elia-attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: white;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 0.85rem;
}

.elia-attachment-chip i {
  color: #667eea;
}

.elia-attachment-chip button {
  background: none;
  border: none;
  color: #e74c3c;
  cursor: pointer;
  padding: 0;
  font-size: 0.9rem;
}

.elia-input-container {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 24px;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

.elia-input-container:focus-within {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.elia-attach-btn,
.elia-send-btn {
  background: none;
  border: none;
  color: #7f8c8d;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.elia-attach-btn:hover {
  background: #f0f0f0;
  color: #667eea;
}

.elia-send-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.elia-send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.elia-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.elia-message-input {
  flex: 1;
  border: none;
  outline: none;
  resize: none;
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 0.5rem;
  max-height: 150px;
  min-height: 24px;
  font-family: inherit;
}

.elia-message-input:focus {
  outline: none;
}

.elia-input-footer {
  margin-top: 0.5rem;
  text-align: center;
}

.elia-input-footer small {
  font-size: 0.75rem;
}

/* ===== SCROLLBAR CUSTOMIZADA ===== */
.elia-sidebar-body::-webkit-scrollbar,
.elia-chat-body::-webkit-scrollbar {
  width: 6px;
}

.elia-sidebar-body::-webkit-scrollbar-track,
.elia-chat-body::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.elia-sidebar-body::-webkit-scrollbar-thumb,
.elia-chat-body::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.elia-sidebar-body::-webkit-scrollbar-thumb:hover,
.elia-chat-body::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
  .elia-container {
    height: calc(100vh - 80px);
  }

  .elia-sidebar {
    position: fixed;
    left: -100%;
    top: 0;
    width: 80%;
    height: 100vh;
    z-index: 1000;
    transition: left 0.3s ease;
  }

  .elia-sidebar.show {
    left: 0;
  }

  .elia-main {
    width: 100%;
  }

  .elia-message-content {
    max-width: 85%;
  }

  .elia-chat-footer {
    padding: 0.75rem 1rem;
  }
}

/* ===== TABELA DE LOGS (DBA) ===== */
#modal-elia-logs .table {
  font-size: 0.85rem;
}

#modal-elia-logs .table th {
  background: #f8f9fa;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 10;
}

#modal-elia-logs .table td {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#modal-elia-logs .table td:hover {
  white-space: normal;
  overflow: visible;
}

/* Badge de Fallback */
.badge-fallback {
  background: #e74c3c;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.7rem;
}

.badge-api {
  background: #27ae60;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.7rem;
}

/* Estado Vazio */
.elia-empty-state {
  text-align: center;
  padding: 2rem;
  color: #7f8c8d;
}

.elia-empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* ===== ACESSIBILIDADE ===== */
.elia-message-content:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* ===== ESTADOS DE HOVER E FOCO ===== */
.elia-conversation-item:focus {
  outline: 2px solid #667eea;
  outline-offset: -2px;
}

button:focus-visible {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* ===== ANIMAÇÕES SUAVES ===== */
* {
  transition: background-color 0.2s ease, color 0.2s ease;
}

button,
.elia-conversation-item,
.elia-suggestion-card {
  transition: all 0.2s ease;
}

/* ===== ELIA: painel direito (executivo) ===== */
.elia-rightpanel {
  height: 100%;
  max-height: calc(100vh - 120px);
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
  border-left: 1px solid #e0e0e0;
}

.elia-right-inner {
  height: 100%;
  overflow: auto;
  padding: 12px;
}

.elia-kpi {
  border: 1px solid var(--ed-border);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--ed-white) 0%, var(--ed-gray-50) 100%);
  padding: 10px;
}

.elia-kpi .k {
  font-size: .70rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ed-gray-600);
  font-weight: 800;
}

.elia-kpi .v {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--ed-gray-900);
  margin-top: 4px;
}

.elia-insights-pre {
  white-space: pre-wrap;
  font-size: .88rem;
  min-height: 160px;
  border: 1px solid var(--ed-border);
  border-radius: 14px;
  padding: 10px;
  background: linear-gradient(135deg, var(--ed-white) 0%, var(--ed-gray-50) 100%);
}

/* mobile: painel direito cai abaixo */
@media (max-width: 992px) {
  .elia-rightpanel {
    border-left: 0;
    border-top: 1px solid #e0e0e0;
  }
}

/* ===== ELIA OPERAÇÃO ===== */
.elia-quicklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.elia-quickbtn {
  width: 100%;
  text-align: left;
  border: 1px solid var(--ed-border);
  border-radius: 14px;
  padding: 10px;
  background: linear-gradient(135deg, var(--ed-white) 0%, var(--ed-gray-50) 100%);
  box-shadow: var(--ed-shadow-xs);
  transition: all var(--ed-transition-base);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.elia-quickbtn:hover {
  transform: translateY(-2px);
  box-shadow: var(--ed-shadow);
  border-color: var(--ed-primary-light);
}

.elia-quickbtn i {
  font-size: 1.1rem;
  margin-top: 2px;
  color: var(--ed-primary);
}

.elia-quickbtn .t {
  font-weight: 900;
  line-height: 1.15;
}

.elia-quickbtn .s {
  font-size: .8rem;
  color: var(--ed-gray-600);
  margin-top: 2px;
}

/* KPIs (já tínhamos, só garantindo) */
.elia-kpi {
  border: 1px solid var(--ed-border);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--ed-white) 0%, var(--ed-gray-50) 100%);
  padding: 10px;
}

.elia-kpi .k {
  font-size: .70rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ed-gray-600);
  font-weight: 800;
}

.elia-kpi .v {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--ed-gray-900);
  margin-top: 4px;
}