/* ============================================================
   XINGUZINHO_COMUNICACAO_DARK_V1
   Corrige a aba Comunicacao no modo escuro.
   Suporta data-theme="dark" e data-tema="escuro".
   ============================================================ */

html[data-theme="dark"] .com-wrap,
html[data-tema="escuro"] .com-wrap {
  color:var(--tema-texto,#e5edf8) !important;
}

html[data-theme="dark"] .com-title,
html[data-tema="escuro"] .com-title,
html[data-theme="dark"] .com-panel,
html[data-tema="escuro"] .com-panel,
html[data-theme="dark"] .com-card,
html[data-tema="escuro"] .com-card,
html[data-theme="dark"] .com-kpi,
html[data-tema="escuro"] .com-kpi {
  color:var(--tema-texto,#e5edf8) !important;
}

html[data-theme="dark"] .com-sub,
html[data-tema="escuro"] .com-sub,
html[data-theme="dark"] .com-muted,
html[data-tema="escuro"] .com-muted,
html[data-theme="dark"] .com-vazio,
html[data-tema="escuro"] .com-vazio {
  color:var(--tema-texto-suave,var(--tema-secundario,#94a3b8)) !important;
}

html[data-theme="dark"] .com-panel,
html[data-tema="escuro"] .com-panel {
  background:var(--tema-card,#111c2e) !important;
  border-color:var(--tema-borda,#2a3a52) !important;
  box-shadow:none !important;
}

html[data-theme="dark"] .com-card,
html[data-tema="escuro"] .com-card,
html[data-theme="dark"] .com-kpi,
html[data-tema="escuro"] .com-kpi {
  background:var(--tema-card-2,#162338) !important;
  border-color:var(--tema-borda,#2a3a52) !important;
}

html[data-theme="dark"] .com-card h1,
html[data-theme="dark"] .com-card h2,
html[data-theme="dark"] .com-card h3,
html[data-theme="dark"] .com-card h4,
html[data-theme="dark"] .com-card b,
html[data-theme="dark"] .com-card strong,
html[data-tema="escuro"] .com-card h1,
html[data-tema="escuro"] .com-card h2,
html[data-tema="escuro"] .com-card h3,
html[data-tema="escuro"] .com-card h4,
html[data-tema="escuro"] .com-card b,
html[data-tema="escuro"] .com-card strong,
html[data-theme="dark"] .com-kpi b,
html[data-tema="escuro"] .com-kpi b {
  color:var(--tema-texto,#f1f5f9) !important;
}

html[data-theme="dark"] .com-btn,
html[data-tema="escuro"] .com-btn {
  border:1px solid transparent !important;
}

html[data-theme="dark"] .com-primary,
html[data-tema="escuro"] .com-primary {
  background:#2563eb !important;
  border-color:#3b82f6 !important;
  color:#fff !important;
}

html[data-theme="dark"] .com-primary:hover,
html[data-tema="escuro"] .com-primary:hover {
  background:#1d4ed8 !important;
}

html[data-theme="dark"] .com-soft,
html[data-tema="escuro"] .com-soft {
  background:var(--tema-card-2,#172338) !important;
  border-color:var(--tema-borda,#334155) !important;
  color:var(--tema-texto,#e5edf8) !important;
}

html[data-theme="dark"] .com-soft:hover,
html[data-tema="escuro"] .com-soft:hover {
  background:var(--tema-hover,#23334c) !important;
}

html[data-theme="dark"] .com-danger,
html[data-tema="escuro"] .com-danger {
  background:rgba(239,68,68,.16) !important;
  border-color:rgba(248,113,113,.35) !important;
  color:#fca5a5 !important;
}

html[data-theme="dark"] .com-chip,
html[data-tema="escuro"] .com-chip {
  background:var(--tema-card-2,#162338) !important;
  border-color:var(--tema-borda,#334155) !important;
  color:var(--tema-texto,#dbe7f5) !important;
}

html[data-theme="dark"] .com-chip:hover,
html[data-tema="escuro"] .com-chip:hover {
  background:var(--tema-hover,#23334c) !important;
  border-color:#64748b !important;
}

html[data-theme="dark"] .com-chip.ativo,
html[data-tema="escuro"] .com-chip.ativo {
  background:#2563eb !important;
  border-color:#3b82f6 !important;
  color:#fff !important;
}

html[data-theme="dark"] .com-table-wrap,
html[data-tema="escuro"] .com-table-wrap {
  background:var(--tema-card,#111c2e) !important;
  border-color:var(--tema-borda,#2a3a52) !important;
}

html[data-theme="dark"] .com-table,
html[data-tema="escuro"] .com-table {
  color:var(--tema-texto,#e5edf8) !important;
}

html[data-theme="dark"] .com-table thead,
html[data-tema="escuro"] .com-table thead,
html[data-theme="dark"] .com-table th,
html[data-tema="escuro"] .com-table th {
  background:var(--tema-card-2,#162338) !important;
  color:var(--tema-texto-suave,#b7c4d6) !important;
  border-color:var(--tema-borda,#2a3a52) !important;
}

html[data-theme="dark"] .com-table tbody tr,
html[data-tema="escuro"] .com-table tbody tr {
  background:var(--tema-card,#111c2e) !important;
  color:var(--tema-texto,#e5edf8) !important;
}

html[data-theme="dark"] .com-table tbody tr:nth-child(even),
html[data-tema="escuro"] .com-table tbody tr:nth-child(even) {
  background:var(--tema-card-2,#142035) !important;
}

html[data-theme="dark"] .com-table tbody tr:hover,
html[data-tema="escuro"] .com-table tbody tr:hover {
  background:var(--tema-hover,#1c2c44) !important;
}

html[data-theme="dark"] .com-table td,
html[data-tema="escuro"] .com-table td {
  color:var(--tema-texto,#e5edf8) !important;
  border-bottom-color:var(--tema-borda,#2a3a52) !important;
}

html[data-theme="dark"] .com-table td b,
html[data-theme="dark"] .com-table td strong,
html[data-tema="escuro"] .com-table td b,
html[data-tema="escuro"] .com-table td strong {
  color:var(--tema-texto,#f1f5f9) !important;
}

html[data-theme="dark"] .com-tag-ATIVO,
html[data-tema="escuro"] .com-tag-ATIVO {
  background:rgba(34,197,94,.16) !important;
  border:1px solid rgba(74,222,128,.28) !important;
  color:#86efac !important;
}

html[data-theme="dark"] .com-tag-DEMITIDO,
html[data-tema="escuro"] .com-tag-DEMITIDO {
  background:rgba(239,68,68,.16) !important;
  border:1px solid rgba(248,113,113,.28) !important;
  color:#fca5a5 !important;
}

html[data-theme="dark"] .com-tag-NAO_IDENTIFICADO,
html[data-tema="escuro"] .com-tag-NAO_IDENTIFICADO {
  background:rgba(245,158,11,.16) !important;
  border:1px solid rgba(251,191,36,.28) !important;
  color:#fcd34d !important;
}

html[data-theme="dark"] .com-tag-EXCECAO,
html[data-tema="escuro"] .com-tag-EXCECAO {
  background:rgba(59,130,246,.16) !important;
  border:1px solid rgba(96,165,250,.28) !important;
  color:#93c5fd !important;
}

html[data-theme="dark"] .com-wrap input,
html[data-theme="dark"] .com-wrap select,
html[data-theme="dark"] .com-wrap textarea,
html[data-tema="escuro"] .com-wrap input,
html[data-tema="escuro"] .com-wrap select,
html[data-tema="escuro"] .com-wrap textarea {
  background:var(--tema-input,var(--tema-card-2,#162338)) !important;
  color:var(--tema-texto,#e5edf8) !important;
  border-color:var(--tema-borda,#334155) !important;
}

html[data-theme="dark"] .com-wrap input::placeholder,
html[data-theme="dark"] .com-wrap textarea::placeholder,
html[data-tema="escuro"] .com-wrap input::placeholder,
html[data-tema="escuro"] .com-wrap textarea::placeholder {
  color:var(--tema-texto-suave,#94a3b8) !important;
}

html[data-theme="dark"] .com-wrap option,
html[data-tema="escuro"] .com-wrap option {
  background:var(--tema-card,#111c2e) !important;
  color:var(--tema-texto,#e5edf8) !important;
}

html[data-theme="dark"] .com-wrap a,
html[data-tema="escuro"] .com-wrap a {
  color:#93c5fd !important;
}

html[data-theme="dark"] .com-wrap [style*="background:#fff"],
html[data-theme="dark"] .com-wrap [style*="background: #fff"],
html[data-theme="dark"] .com-wrap [style*="background:white"],
html[data-theme="dark"] .com-wrap [style*="background: white"],
html[data-tema="escuro"] .com-wrap [style*="background:#fff"],
html[data-tema="escuro"] .com-wrap [style*="background: #fff"],
html[data-tema="escuro"] .com-wrap [style*="background:white"],
html[data-tema="escuro"] .com-wrap [style*="background: white"] {
  background:var(--tema-card,#111c2e) !important;
}

html[data-theme="dark"] .com-wrap [style*="color:#0f172a"],
html[data-theme="dark"] .com-wrap [style*="color: #0f172a"],
html[data-theme="dark"] .com-wrap [style*="color:#111827"],
html[data-theme="dark"] .com-wrap [style*="color: #111827"],
html[data-tema="escuro"] .com-wrap [style*="color:#0f172a"],
html[data-tema="escuro"] .com-wrap [style*="color: #0f172a"],
html[data-tema="escuro"] .com-wrap [style*="color:#111827"],
html[data-tema="escuro"] .com-wrap [style*="color: #111827"] {
  color:var(--tema-texto,#e5edf8) !important;
}

html[data-theme="dark"] .com-wrap [style*="color:#64748b"],
html[data-theme="dark"] .com-wrap [style*="color: #64748b"],
html[data-tema="escuro"] .com-wrap [style*="color:#64748b"],
html[data-tema="escuro"] .com-wrap [style*="color: #64748b"] {
  color:var(--tema-texto-suave,#94a3b8) !important;
}
