:root,
html[data-theme="ocean"] {
  --sidebar-width: 260px;
  --sidebar-bg: #0f2744;
  --sidebar-text: #c5d4e8;
  --sidebar-active: #38bdf8;
  --topbar-height: 64px;
  --content-bg: #eef3f8;
  --brand-accent: #0284c7;
  --surface: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --border: #d8e0ea;
  --primary: #0369a1;
  --danger: #dc2626;
  --success: #16a34a;
}

html[data-theme="forest"] {
  --sidebar-bg: #14532d;
  --sidebar-text: #dcfce7;
  --sidebar-active: #4ade80;
  --content-bg: #f0fdf4;
  --brand-accent: #15803d;
  --primary: #166534;
  --border: #bbf7d0;
}

html[data-theme="slate"] {
  --sidebar-bg: #111827;
  --sidebar-text: #d1d5db;
  --sidebar-active: #60a5fa;
  --content-bg: #f3f4f6;
  --brand-accent: #2563eb;
  --primary: #1d4ed8;
  --border: #e5e7eb;
}

html[data-theme="sunset"] {
  --sidebar-bg: #7c2d12;
  --sidebar-text: #ffedd5;
  --sidebar-active: #fb923c;
  --content-bg: #fff7ed;
  --brand-accent: #ea580c;
  --primary: #c2410c;
  --border: #fed7aa;
}

html[data-theme="contrast"] {
  --sidebar-bg: #000000;
  --sidebar-text: #f5f5f5;
  --sidebar-active: #facc15;
  --content-bg: #fafafa;
  --brand-accent: #111111;
  --primary: #111111;
  --text-main: #111111;
  --border: #d4d4d4;
}

html[data-theme="rose"] {
  --sidebar-bg: #831843;
  --sidebar-text: #fce7f3;
  --sidebar-active: #f472b6;
  --content-bg: #fdf2f8;
  --brand-accent: #db2777;
  --primary: #be185d;
  --border: #fbcfe8;
  --surface: #ffffff;
  --text-main: #500724;
  --text-muted: #9d174d;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body.app-body {
  margin: 0;
  background: var(--content-bg);
  color: var(--text-main, #0f172a);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.app-sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1rem 1rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand-logo {
  display: block;
  max-width: 168px;
  width: 100%;
  height: auto;
  background: transparent;
  padding: 0;
}

.sidebar-brand-icon {
  display: none;
}

.sidebar-brand i {
  display: none;
}

.sidebar-brand strong {
  display: block;
  color: #fff;
  font-size: 1.1rem;
  line-height: 1.2;
}

.sidebar-brand small {
  color: #94a3b8;
  font-size: 0.75rem;
  padding-left: 0.15rem;
}

.sidebar-nav {
  padding: 1rem 0.75rem;
  overflow-y: auto;
  flex: 1;
}

.sidebar-section {
  margin: 1rem 0.5rem 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.2rem;
  border-radius: 0.5rem;
  color: var(--sidebar-text);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.sidebar-link.active {
  background: rgba(14, 165, 233, 0.18);
  color: #fff;
  border-left: 3px solid var(--sidebar-active);
}

.sidebar-link i {
  font-size: 1.1rem;
  width: 1.25rem;
  text-align: center;
}

.app-main {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-topbar {
  height: var(--topbar-height);
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.25rem;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.topbar-title {
  flex: 1;
}

.topbar-title h1 {
  font-size: 1.15rem;
  margin: 0;
  font-weight: 600;
  color: #0f172a;
}

.app-content {
  padding: 1.5rem;
  flex: 1;
}

.app-footer {
  padding: 0.85rem 1.5rem;
  color: var(--text-muted, #475569);
  font-size: 0.85rem;
  border-top: 1px solid var(--border, #e2e8f0);
  background: var(--surface, #fff);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

.panel-card {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 0.85rem;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.badge-status-online {
  background: #16a34a !important;
  color: #fff !important;
  font-weight: 600;
}
.badge-status-offline {
  background: #dc2626 !important;
  color: #fff !important;
  font-weight: 600;
}

/* Bootstrap 5.1 não tem text-bg-* — polyfill para badges legíveis em todo o sistema */
.badge.text-bg-light,
.badge.bg-light {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1;
}
.badge.text-bg-secondary {
  background-color: #64748b !important;
  color: #fff !important;
}
.badge.text-bg-primary {
  background-color: var(--primary, #0369a1) !important;
  color: #fff !important;
}
.badge.text-bg-success {
  background-color: #16a34a !important;
  color: #fff !important;
}
.badge.text-bg-danger {
  background-color: #dc2626 !important;
  color: #fff !important;
}
.badge.text-bg-warning {
  background-color: #fbbf24 !important;
  color: #1f2937 !important;
}
.badge.text-bg-info {
  background-color: #0ea5e9 !important;
  color: #fff !important;
}
.badge.text-bg-dark {
  background-color: #0f172a !important;
  color: #fff !important;
}

.theme-swatch {
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  display: inline-block;
  border: 1px solid rgba(0,0,0,.15);
  vertical-align: middle;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 1035;
}

.sidebar-backdrop.show {
  display: block;
}

.welcome-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.dashboard-filtros {
  background: #fff;
  border: 1px solid #e2e8f0 !important;
  border-radius: 0.75rem;
}

.dash-kpi {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1rem 1.15rem;
  height: 100%;
}

.dash-kpi-open {
  border-left: 4px solid #0284c7;
}

.dash-kpi-closed {
  border-left: 4px solid #64748b;
}

.dash-kpi-label {
  font-size: 0.8rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dash-kpi-value {
  font-size: 1.85rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
  margin: 0.15rem 0;
}

.dash-kpi-hint {
  font-size: 0.75rem;
  color: #94a3b8;
}

.dash-table thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #64748b;
  font-weight: 600;
  border-bottom-width: 1px;
}

.dash-table td {
  vertical-align: middle;
  font-size: 0.9rem;
}

.dash-chart-wrap {
  position: relative;
  height: 220px;
}

.dash-chart-tall {
  height: 280px;
}

.welcome-panel h2 {
  font-size: 1.4rem;
  margin-bottom: 0.35rem;
  color: #0f172a;
}

.module-tile {
  display: block;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.25rem;
  color: #0f172a;
  height: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.module-tile:hover {
  border-color: #7dd3fc;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.08);
}

.module-tile i {
  font-size: 1.6rem;
  color: var(--brand-accent);
}

.module-tile h3 {
  font-size: 1.05rem;
  margin: 0.65rem 0 0.25rem;
}

.module-tile p {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
}

.placeholder-panel {
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 0.75rem;
  padding: 3rem 1.5rem;
  text-align: center;
  color: #64748b;
}

.placeholder-panel i {
  font-size: 2.5rem;
  color: #94a3b8;
  display: block;
  margin-bottom: 0.75rem;
}

.placeholder-panel h2 {
  color: #0f172a;
  font-size: 1.35rem;
}

/* Login */
.login-body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.18), transparent 40%),
    linear-gradient(160deg, #0f172a 0%, #1e293b 55%, #0f172a 100%);
  display: flex;
  flex-direction: column;
  padding: 0;
}

.login-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  padding: 1.5rem;
}

.login-wrapper .login-card {
  width: 100%;
  max-width: 420px;
}

.login-footer {
  width: 100%;
  text-align: right;
  padding: 0.85rem 1.5rem;
  color: rgba(226, 232, 240, 0.75);
  font-size: 0.85rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  background: transparent;
}

.login-card {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.login-brand {
  text-align: center;
  margin-bottom: 1.75rem;
}

.login-logo {
  max-width: 280px;
  width: 100%;
  height: auto;
  margin: 0 auto 0.75rem;
  display: block;
  background: transparent;
  padding: 0;
}

.login-brand i {
  font-size: 2.4rem;
  color: var(--brand-accent);
}

.login-brand h1 {
  font-size: 1.5rem;
  margin: 0.5rem 0 0.25rem;
  color: #0f172a;
}

.login-brand p {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
}

@media (max-width: 991.98px) {
  .app-sidebar {
    transform: translateX(-100%);
  }

  .app-sidebar.open {
    transform: translateX(0);
  }

  .app-main {
    margin-left: 0;
  }
}

/* Status / Prioridade badges */
.bg-status-Aberto { background: #0ea5e9; }
.bg-status-EmAtendimento { background: #2563eb; }
.bg-status-AguardandoUsuario { background: #d97706; }
.bg-status-Resolvido { background: #059669; }
.bg-status-Fechado { background: #64748b; }
.bg-status-Cancelado { background: #94a3b8; }

.bg-prioridade-Baixa { background: #64748b; }
.bg-prioridade-Media { background: #0284c7; }
.bg-prioridade-Alta { background: #ea580c; }
.bg-prioridade-Critica { background: #dc2626; }

/* Lista estilo PDF / rastreador legado */
.chamados-rastreador-wrap {
  background: #fff;
  padding: 0.25rem 0.5rem 1rem;
}

.chamados-rastreador {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
  color: #111;
}

.chamados-rastreador thead th {
  font-weight: 700;
  text-align: left;
  padding: 0.35rem 0.75rem 0.55rem 0;
  border: none;
  border-bottom: none;
  white-space: nowrap;
  color: #111;
}

.chamados-rastreador tbody td {
  padding: 0.28rem 0.75rem 0.28rem 0;
  border: none;
  vertical-align: top;
  white-space: nowrap;
}

.chamados-rastreador .col-num {
  width: 4.5rem;
  padding-right: 1.25rem;
}

.chamados-rastreador .col-id {
  min-width: 9rem;
  padding-right: 1.5rem;
  letter-spacing: 0.02em;
}

.chamados-rastreador .col-data {
  min-width: 9.5rem;
  padding-right: 1.25rem;
}

.chamados-rastreador .col-acao {
  width: 1%;
  padding-left: 0.5rem;
}

.chamados-rastreador .rastreador-link {
  color: #111;
  text-decoration: none;
}

.chamados-rastreador .rastreador-link:hover {
  text-decoration: underline;
  color: #0d6efd;
}

.chamados-rastreador tbody tr.row-risco {
  background: #fff5f5;
}

/* Painel moderno (estilo rastreador) */
.btn-criar-ticket {
  background: #1e3a5f;
  border-color: #1e3a5f;
  color: #fff;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
  box-shadow: 0 2px 8px rgba(30, 58, 95, 0.25);
}
.btn-criar-ticket:hover {
  background: #152a45;
  border-color: #152a45;
  color: #fff;
}

.fila-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.fila-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #1e293b;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
}
.fila-chip:hover { background: #f1f5f9; color: #0f172a; }
.fila-chip.ativo {
  background: #1e3a5f;
  border-color: #1e3a5f;
  color: #fff;
}
.fila-chip.chip-warn { background: #fef3c7; border-color: #fbbf24; }
.fila-chip.chip-warn.ativo { background: #d97706; border-color: #d97706; color: #fff; }
.fila-chip.chip-danger { background: #fee2e2; border-color: #f87171; }
.fila-chip.chip-danger.ativo { background: #dc2626; border-color: #dc2626; color: #fff; }

.tabela-painel thead th {
  background: #1e3a5f;
  color: #fff !important;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.65rem 0.75rem !important;
  border: none;
}
.tabela-painel tbody td {
  padding: 0.55rem 0.75rem !important;
  border-bottom: 1px solid #e2e8f0;
  white-space: normal;
  vertical-align: middle;
}
.tabela-painel tbody tr:nth-child(even) { background: #f0f7ff; }
.tabela-painel tbody tr.row-novo { background: #fff1f2 !important; }
.tabela-painel .rastreador-link { color: #2563eb; font-weight: 600; }
.tabela-painel .col-assunto { max-width: 280px; }

.status-text { font-weight: 600; }
.status-Aberto { color: #e11d48; }
.status-EmAtendimento { color: #6366f1; }
.status-AguardandoUsuario { color: #db2777; }
.status-Resolvido { color: #059669; }
.status-Fechado { color: #64748b; }
.status-Cancelado { color: #94a3b8; }

.prio-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
}
.prio-Baixa { background: #38bdf8; }
.prio-Media { background: #22c55e; }
.prio-Alta { background: #f59e0b; }
.prio-Critica { background: #b91c1c; }

.depto-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
}
.depto-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--depto-cor, #64748b);
  flex-shrink: 0;
}
.depto-legend { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.portal-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #eff6ff, #f8fafc);
  border: 1px solid #dbeafe;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
}

.cronometro-panel.ativo {
  border-color: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.15);
}
.cronometro-display {
  font-size: 1.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
  color: #0f172a;
}

.message-item {
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.85rem;
  margin-bottom: 0.75rem;
  background: #f8fafc;
}

.message-interna {
  background: #fffbeb;
  border-color: #fcd34d;
}

/* Kanban — quadro estilo Trello */
.kanban-quadro-shell {
  margin: -0.5rem -0.75rem 0;
  padding: 0.85rem 0.85rem 1.25rem;
  border-radius: 0.75rem;
  min-height: calc(100vh - 160px);
  background-size: cover;
  background-position: center;
}

.kanban-quadro-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
  color: #fff;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  padding: 0.75rem 1rem;
  border-radius: 0.65rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.kanban-back-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.8rem;
}
.kanban-back-link:hover { color: #fff; }

.kanban-quadro-nome {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0.15rem 0 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.kanban-renomear-link {
  color: rgba(255, 255, 255, 0.75);
  margin-left: 0.35rem;
  font-size: 0.85rem;
  text-decoration: none;
}
.kanban-renomear-link:hover { color: #fff; }

.kanban-quadro-sub {
  font-size: 0.8rem;
  opacity: 0.85;
}

.kanban-membros {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.kanban-membros .avatar-circle {
  margin-left: -6px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.kanban-membros .avatar-circle:first-child {
  margin-left: 0;
}

.btn-quadro-action {
  background: rgba(255, 255, 255, 0.18);
  border: none;
  color: #fff;
  backdrop-filter: blur(4px);
}
.btn-quadro-action:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}
.btn-quadro-danger:hover {
  background: rgba(235, 90, 70, 0.85);
}

.kanban-fundo-menu {
  min-width: 220px;
}
.kanban-fundo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}
.kanban-fundo-swatch {
  width: 100%;
  aspect-ratio: 1.4;
  border-radius: 0.35rem;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
}
.kanban-fundo-swatch.ativo,
.kanban-fundo-swatch:hover {
  border-color: #172b4d;
  box-shadow: 0 0 0 1px #fff;
}

.kanban-board {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  align-items: flex-start;
  min-height: 50vh;
}

.kanban-column {
  flex: 0 0 280px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 220px);
  backdrop-filter: blur(6px);
}

.kanban-column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0.85rem;
  color: #fff;
  gap: 0.35rem;
}
.kanban-column-header strong,
.kanban-coluna-nome {
  font-size: 0.92rem;
  cursor: text;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kanban-coluna-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
.kanban-coluna-menu {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.15rem 0.35rem;
  line-height: 1;
}
.kanban-coluna-menu:hover,
.kanban-coluna-menu:focus {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.kanban-col-count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
}

.kanban-column-body {
  padding: 0 0.55rem;
  overflow-y: auto;
  flex: 1;
  min-height: 80px;
}

.kanban-add-card-btn {
  margin: 0.35rem 0.55rem 0.65rem;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  text-align: left;
  padding: 0.45rem 0.55rem;
  border-radius: 0.45rem;
  font-size: 0.88rem;
}
.kanban-add-card-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.kanban-add-column {
  flex: 0 0 272px;
  width: 272px;
}
.kanban-add-column-btn {
  width: 100%;
  border: none;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
}
.kanban-add-column-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.kanban-coluna-nome-input {
  width: 100%;
  border: 2px solid #85b8ff;
  border-radius: 0.35rem;
  padding: 0.15rem 0.4rem;
  font-size: 0.92rem;
  font-weight: 700;
  background: #fff;
  color: #172b4d;
}

.kanban-card {
  background: #22272b;
  border-radius: 0.5rem;
  padding: 0.7rem 0.75rem;
  margin-bottom: 0.55rem;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(9, 30, 66, 0.35);
  border: 2px solid transparent;
  transition: border-color 0.12s ease, transform 0.12s ease;
  color: #c7d1db;
}

.kanban-card:hover {
  border-color: #579dff;
  background: #2c333a;
}

.kanban-card:active {
  cursor: grabbing;
}

.kanban-card.atrasado {
  box-shadow: 0 0 0 2px #eb5a46;
}

.kanban-card-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.45rem;
}

.kanban-label-bar {
  display: inline-block;
  height: 10px;
  min-width: 48px;
  border-radius: 4px;
}

.kanban-card-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: #f1f2f4;
  margin-bottom: 0.45rem;
  line-height: 1.35;
}

.kanban-card-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.kanban-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.75rem;
  color: #9fadbc;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0.25rem;
  padding: 0.12rem 0.4rem;
}

.kanban-badge.atrasado {
  background: #eb5a46;
  color: #fff;
}

.kanban-card-meta {
  font-size: 0.8rem;
  color: #64748b;
}

.kanban-ghost {
  opacity: 0.4;
}

.kanban-drag {
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.35);
}

.avatar-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
}

.avatar-circle.avatar-board {
  width: 36px;
  height: 36px;
  font-size: 0.78rem;
}

.avatar-circle.avatar-card {
  width: 30px;
  height: 30px;
  font-size: 0.7rem;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.avatar-circle.avatar-sm {
  width: 28px;
  height: 28px;
  font-size: 0.7rem;
}

.projeto-tile {
  cursor: default;
}

/* Card modal (Trello-like) */
.card-modal-trello {
  background: #f4f5f7;
}

.card-modal-header {
  background: #f4f5f7;
}

.card-modal-body {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 1.25rem;
  background: #f4f5f7;
}

@media (max-width: 767.98px) {
  .card-modal-body {
    grid-template-columns: 1fr;
  }
}

.card-titulo-input {
  font-weight: 600;
  background: transparent;
  border: 2px solid transparent;
  box-shadow: none;
  padding-left: 0.35rem;
}

.card-titulo-input:focus {
  background: #fff;
  border-color: #0079bf;
}

.card-action-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.card-action-chip {
  background: #eaecf0;
  border: none;
  color: #172b4d;
  font-weight: 500;
}

.card-action-chip:hover {
  background: #dfe1e6;
}

.card-section-label {
  font-size: 0.8rem;
  font-weight: 650;
  color: #5e6c84;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.card-popover {
  background: #fff;
  border-radius: 0.5rem;
  padding: 0.85rem;
  box-shadow: 0 8px 16px rgba(9, 30, 66, 0.15);
  border: 1px solid #dfe1e6;
}

.card-popover-title {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
  color: #172b4d;
}

.etiqueta-lista {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.etiqueta-opcao {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  margin: 0;
}

.etiqueta-pill {
  display: inline-block;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 0.25rem;
  min-width: 4rem;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.25);
}

.cor-paleta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.cor-swatch {
  width: 28px;
  height: 28px;
  border-radius: 0.25rem;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
}

.cor-swatch.ativo,
.cor-swatch:hover {
  border-color: #172b4d;
  outline: 1px solid #fff;
}

.checklist-progress {
  height: 8px;
  background: #ebecf0;
}

.checklist-progress .progress-bar {
  background: #61bd4f;
  font-size: 0;
}

.checklist-item {
  padding: 0.25rem 0;
}

.usuario-cor-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 0.35rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Monitoramento — badges de métricas */
.mon-badge {
  display: inline-block;
  min-width: 3.25rem;
  padding: 0.2rem 0.45rem;
  border-radius: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
}

.mon-ok {
  background: #d1fae5;
  color: #065f46;
}

.mon-warn {
  background: #fef3c7;
  color: #92400e;
}

.mon-crit {
  background: #fee2e2;
  color: #991b1b;
}

.mon-metric-card {
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.75rem;
  background: #f8fafc;
}

.remoto-stage {
  position: relative;
  min-height: 70vh;
  height: 70vh;
  overflow: hidden;
  cursor: crosshair;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
}

.remoto-canvas {
  display: none;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
}

.remoto-video {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0b1220;
  cursor: crosshair;
  touch-action: none;
}

.remoto-frame {
  display: none;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  cursor: crosshair;
  pointer-events: auto;
}

.remoto-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

/* Assistente IA */
.assistente-page {
  max-width: 900px;
  margin: 0 auto;
}

.assistente-chat {
  display: flex;
  flex-direction: column;
  min-height: 520px;
  padding: 0 !important;
  overflow: hidden;
}

.assistente-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 55vh;
  min-height: 320px;
}

.assistente-msg {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  max-width: 92%;
}

.assistente-msg-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.assistente-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--brand-accent, #0ea5e9);
  color: #fff;
  font-size: 1rem;
}

.assistente-msg-user .assistente-avatar {
  background: #64748b;
}

.assistente-bubble {
  background: var(--surface-muted, #f1f5f9);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.assistente-msg-user .assistente-bubble {
  background: #dbeafe;
  border-color: #bfdbfe;
}

.assistente-fontes {
  padding: 0 1.25rem 0.5rem;
}

.assistente-abrir-wrap {
  padding: 0 1.25rem 0.75rem;
}

.assistente-input-row {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border, #e2e8f0);
  background: var(--surface, #fff);
}

.assistente-input-row textarea {
  resize: none;
}

.assistente-input-row .btn {
  align-self: flex-end;
  min-width: 48px;
}

.assistente-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 4.5rem;
  z-index: 1040;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
  font-size: 1.35rem;
}
