/* =========================================================
   AniaHub — Estilos do painel (extraídos do protótipo v1.0.0)
   ========================================================= */

:root {
  --ink: #1B1F3B;
  --ink-soft: #5B5F7A;
  --bg: #F4F5FA;
  --card: #FFFFFF;
  --line: #E7E8F2;
  --primary: #4F46E5;
  --primary-soft: #EEEDFD;
  --primary-dark: #3730A3;
  --ch-interno: #64748B;
  --ch-interno-bg: #EEF1F4;
  --ch-email: #D97706;
  --ch-email-bg: #FEF3E2;
  --ch-whats: #16A34A;
  --ch-whats-bg: #E8F8EE;
  --ch-tel: #0284C7;
  --ch-tel-bg: #E5F4FC;
  --pr-baixa: #6B7280;
  --pr-media: #2563EB;
  --pr-alta: #D97706;
  --pr-critica: #DC2626;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
}

h1,
h2,
h3,
h4,
h5,
.font-display {
  font-family: 'Manrope', sans-serif;
}

.text-soft {
  color: var(--ink-soft);
}

::selection {
  background: var(--primary-soft);
}

/* LOGIN */
#loginScreen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 15% 20%, rgba(79, 70, 229, .10), transparent 40%), radial-gradient(circle at 85% 80%, rgba(79, 70, 229, .08), transparent 40%), var(--bg);
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 900px;
  min-height: 520px;
  background: var(--card);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(27, 31, 59, .18);
  display: flex;
}

.login-visual {
  flex: 1;
  background: linear-gradient(160deg, var(--primary), var(--primary-dark) 75%);
  color: #fff;
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.login-visual::after {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  right: -90px;
  bottom: -100px;
}

.login-visual::before {
  content: '';
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  left: -50px;
  top: -40px;
}

.login-form-side {
  flex: 1;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-badge-lg {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.login-feature {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: .85rem;
  opacity: .92;
}

.form-control-modern {
  border-radius: 12px;
  border: 1.5px solid var(--line);
  padding: 11px 14px;
  font-size: .92rem;
}

.form-control-modern:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

#loginError {
  display: none;
}

/* SIDEBAR */
#sidebar {
  width: 244px;
  min-width: 244px;
  background: var(--card);
  border-right: 1px solid var(--line);
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  padding: 4px 8px 22px 8px;
}

.brand .brand-badge {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.05rem;
}

.nav-section-label {
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9AA0B4;
  font-weight: 700;
  margin: 14px 10px 6px;
}

.nav-link-app {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
  transition: .15s;
  margin-bottom: 2px;
}

.nav-link-app i {
  font-size: 1.05rem;
  width: 20px;
  text-align: center;
}

.nav-link-app:hover {
  background: var(--bg);
  color: var(--ink);
}

.nav-link-app.active {
  background: var(--primary-soft);
  color: var(--primary);
}

.nav-badge {
  margin-left: auto;
  background: var(--primary);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  border-radius: 20px;
  padding: 1px 7px;
}

/* TOPBAR */
#topbar {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 14px 26px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-pill {
  flex: 1;
  max-width: 460px;
  background: var(--bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: #9AA0B4;
}

.search-pill input {
  border: none;
  background: transparent;
  outline: none;
  flex: 1;
  color: var(--ink);
  font-size: .9rem;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  position: relative;
}

.icon-btn .dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #DC2626;
}

.session-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  border-radius: 10px;
  padding: 7px 12px;
  font-size: .78rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.tech-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  border-radius: 12px;
  background: var(--bg);
  cursor: pointer;
  border: none;
}

.avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
}

/* GENERAL */
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(27, 31, 59, .04);
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 1px 3px rgba(27, 31, 59, .04);
  display: flex;
  align-items: center;
  gap: 14px;
}

.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.content-view {
  display: none;
}

.content-view.active {
  display: block;
}

.chart-box {
  position: relative;
  height: 230px;
}

.chart-box.tall {
  height: 280px;
}

.badge-ch {
  font-weight: 600;
  font-size: .74rem;
  padding: 4px 9px;
  border-radius: 20px;
  white-space: nowrap;
}

.badge-ch.interno {
  background: var(--ch-interno-bg);
  color: var(--ch-interno);
}

.badge-ch.email {
  background: var(--ch-email-bg);
  color: var(--ch-email);
}

.badge-ch.whatsapp {
  background: var(--ch-whats-bg);
  color: var(--ch-whats);
}

.badge-ch.telefone {
  background: var(--ch-tel-bg);
  color: var(--ch-tel);
}

.badge-st {
  font-weight: 700;
  font-size: .72rem;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  display: inline-block;
}

.badge-empresa {
  font-weight: 600;
  font-size: .72rem;
  padding: 3px 9px;
  border-radius: 20px;
  background: #EEF1F4;
  color: #475569;
  white-space: nowrap;
}

.dot-pr {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

.dot-pr.baixa {
  background: var(--pr-baixa);
}

.dot-pr.media {
  background: var(--pr-media);
}

.dot-pr.alta {
  background: var(--pr-alta);
}

.dot-pr.critica {
  background: var(--pr-critica);
}

.table-tickets thead th {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #9AA0B4;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  white-space: nowrap;
}

.table-tickets td {
  vertical-align: middle;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  font-size: .86rem;
}

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

.row-hover:hover {
  background: var(--bg);
  cursor: pointer;
}

.btn-primary-app {
  background: var(--primary);
  border: none;
  color: #fff;
  font-weight: 700;
  border-radius: 12px;
  padding: 10px 20px;
  font-size: .88rem;
}

.btn-primary-app:hover {
  background: var(--primary-dark);
  color: #fff;
}

.btn-ghost {
  background: var(--bg);
  border: none;
  color: var(--ink);
  font-weight: 600;
  border-radius: 12px;
  padding: 9px 16px;
  font-size: .85rem;
}

.kb-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  cursor: pointer;
  transition: .15s;
}

.kb-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(79, 70, 229, .08);
}

.kb-tag {
  background: var(--primary-soft);
  color: var(--primary);
  font-size: .7rem;
  font-weight: 700;
  border-radius: 20px;
  padding: 2px 9px;
}

.ai-box {
  border: 1.5px dashed #C9CBE8;
  border-radius: 14px;
  background: #FBFBFE;
  padding: 16px;
}

.timeline-item {
  position: relative;
  padding-left: 26px;
  padding-bottom: 18px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: 10px;
  top: 14px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.timeline-item:last-child::after {
  display: none;
}

.badge-log {
  font-weight: 700;
  font-size: .7rem;
  padding: 3px 9px;
  border-radius: 20px;
}

#toastHost {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2000;
}

/* INBOX (estilo Gmail) */
#inboxShell {
  display: flex;
  min-height: 560px;
}

.inbox-side {
  width: 180px;
  border-right: 1px solid var(--line);
  padding: 16px 10px;
  flex-shrink: 0;
}

.inbox-tab.active {
  background: var(--primary-soft);
  color: var(--primary);
}

#inboxListWrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

#inboxList {
  flex: 1;
  overflow-y: auto;
}

.inbox-row {
  border-bottom: 1px solid var(--line);
}

.inbox-row:hover {
  background: var(--bg);
  cursor: pointer;
}

#inboxDetailWrap {
  flex: 1.35;
  min-width: 0;
  border-left: 1px solid var(--line);
  flex-direction: column;
}

#inboxDetMensagens {
  overflow-y: auto;
  max-height: 390px;
}

.email-bubble {
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

/* CONFIG TABS */
.cfg-pill {
  border-radius: 10px;
  font-weight: 600;
  font-size: .84rem;
  padding: 8px 14px;
}

.cfg-pill.active {
  background: var(--primary) !important;
  color: #fff !important;
}

.fluxo-row {
  background: var(--bg);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

/* EDITOR RICO (Quill) */
.ql-toolbar.ql-snow {
  border-radius: 10px 10px 0 0;
  border-color: #dcdde8;
  background: var(--bg);
}

.ql-container.ql-snow {
  border-radius: 0 0 10px 10px;
  border-color: #dcdde8;
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  background: #fff;
}

.ql-editor {
  min-height: 120px;
}

.ql-editor.ql-mini {
  min-height: 44px;
  max-height: 120px;
  overflow-y: auto;
}

.rich-content p {
  margin-bottom: .5rem;
}

.rich-content:last-child {
  margin-bottom: 0;
}

/* KANBAN ENHANCED */
.kanban-col {
  min-width: 280px;
  max-width: 280px;
  background: #EDF0F7;
  border-radius: 16px;
  padding: 14px;
  flex-shrink: 0;
  border: 1px solid rgba(231, 232, 242, 0.8);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.kanban-col-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: .88rem;
  margin-bottom: 12px;
  padding: 0 4px 10px 4px;
  border-bottom: 2.5px solid var(--col-color, var(--primary));
}

.kanban-count {
  margin-left: auto;
  background: var(--card);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: .74rem;
  font-weight: 700;
  color: var(--ink-soft);
  box-shadow: 0 1px 3px rgba(27, 31, 59, 0.06);
}

.kanban-cards {
  flex-grow: 1;
  min-height: 90px;
}

.kanban-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  cursor: grab;
  box-shadow: 0 2px 5px rgba(27, 31, 59, .04);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.kanban-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--card-accent, var(--primary));
  border-radius: 4px 0 0 4px;
}

.kanban-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -6px rgba(27, 31, 59, 0.12);
  border-color: #C7D2FE;
}

.kanban-card:active {
  cursor: grabbing;
  transform: scale(0.98);
}

.kanban-card.dragging {
  opacity: .35;
  transform: rotate(2deg) scale(0.96);
  box-shadow: 0 15px 30px rgba(27, 31, 59, 0.15);
}

.kanban-col.drag-over {
  outline: 2px dashed var(--primary);
  outline-offset: -4px;
  background: #EEEDFD;
  box-shadow: 0 0 20px rgba(79, 70, 229, 0.15);
}

.kanban-card .kanban-id {
  font-size: .7rem;
  font-weight: 600;
  color: #8E94A8;
}

.kanban-card .kanban-title {
  font-weight: 700;
  font-size: .88rem;
  margin: 4px 0 6px;
  line-height: 1.3;
  color: var(--ink);
}

.kanban-card .kanban-meta {
  font-size: .76rem;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.btn-subview {
  border: none;
  background: transparent;
  padding: 5px 12px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-soft);
  border-radius: 8px;
  transition: all 0.15s ease;
}

.btn-subview.active {
  background: var(--card);
  color: var(--primary);
  box-shadow: 0 2px 6px rgba(27, 31, 59, .08);
}

/* SEARCH POPUP */
.search-pill {
  position: relative;
}

.search-popup {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 380px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  z-index: 1050;
  max-height: 380px;
  overflow-y: auto;
  box-shadow: 0 16px 32px -8px rgba(27, 31, 59, 0.18);
}

.search-item {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.15s ease;
}

.search-item:last-child {
  border-bottom: none;
}

.search-item.selected,
.search-item:hover {
  background: var(--primary-soft);
}

/* TIMELINE */
.timeline-item-enhanced {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  position: relative;
}

.timeline-item-enhanced::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 15px;
  bottom: -16px;
  width: 2px;
  background: var(--line);
}

.timeline-item-enhanced:last-child::before {
  display: none;
}

.timeline-bubble {
  flex: 1;
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--card);
}

.timeline-bubble.sistema {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

.timeline-bubble.tecnico {
  background: var(--primary-soft);
  border-color: #C7D2FE;
}

.timeline-bubble.cliente {
  background: #FEF3E2;
  border-color: #FDE68A;
}

@media (max-width: 900px) {
  .login-visual {
    display: none;
  }

  #inboxShell {
    flex-direction: column;
  }

  .inbox-side {
    display: none;
  }
}

/* ---------- Páginas separadas (v1.0.0) ---------- */
a.nav-link-app { text-decoration: none; color: inherit; }
.sidebar-versao { margin-top: auto; padding: 16px 12px 4px; font-size: .7rem; color: var(--ink-soft); opacity: .8; }
#sidebar { display: flex; flex-direction: column; }
#loginScreen { display: flex; }

/* Menu do usuário (topo) — mesmo padrão dos links do menu lateral */
.menu-usuario { min-width: 240px; margin-top: 8px !important; padding: 6px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: 0 12px 32px -12px rgba(27, 31, 59, .18); }
.menu-usuario-cabecalho { padding: 10px 12px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); font-size: .85rem; color: var(--ink); }
.menu-usuario-cabecalho .text-soft { font-size: .75rem; }
.menu-usuario-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: none; border-radius: 12px; background: none; color: var(--ink-soft); font-weight: 600; font-size: .86rem; text-align: left; text-decoration: none; cursor: pointer; transition: .15s; }
.menu-usuario-item i { font-size: 1rem; width: 20px; text-align: center; }
.menu-usuario-item:hover, .menu-usuario-item:focus-visible { background: var(--bg); color: var(--ink); outline: none; }
.menu-usuario-item.perigo:hover, .menu-usuario-item.perigo:focus-visible { background: #FEECEC; color: var(--pr-critica); }

/* Detalhe do chamado: solicitante em duas linhas (nome e contato), sem estourar a coluna */
.det-solicitante { min-width: 0; line-height: 1.25; }
.det-solicitante #detSolicitanteContato { font-size: .75rem; }

/* Ações no cabeçalho do modal (ex.: Editar + Fechar): sempre no canto direito, sem encolher */
.modal-acoes { display: flex; align-items: center; gap: 12px; margin-left: auto; flex-shrink: 0; }

/* Notificações (página): ícone | protocolo, título e dados do chamado | alerta e prazo */
.notif-linha { display: flex; align-items: center; gap: 14px; padding: 14px 20px; cursor: pointer; }
.notif-linha:last-child { border-bottom: none !important; }
.notif-icone { font-size: 1.15rem; flex-shrink: 0; }
.notif-corpo { flex: 1; min-width: 0; }
.notif-titulo { font-weight: 600; font-size: .9rem; color: var(--ink); }
.notif-protocolo { font-size: .74rem; font-weight: 600; color: var(--ink-soft); margin-right: 8px; }
.notif-meta { display: flex; flex-wrap: wrap; column-gap: 16px; row-gap: 2px; margin-top: 4px; font-size: .76rem; color: var(--ink-soft); }
.notif-meta > span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.notif-meta .dot-pr { margin: 0; }
.notif-alerta { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: .74rem; }
@media (max-width: 576px) {
  .notif-linha { flex-wrap: wrap; padding: 12px 16px; }
  .notif-alerta { flex-direction: row; align-items: center; gap: 8px; width: 100%; padding-left: 32px; }
}

/* SLA: valor + unidade (min / h) */
.sla-campo { max-width: 240px; }
.sla-campo .sla-unidade { flex: 0 0 88px; }

/* Assistente do chamado: resumo e sugestão organizados em blocos */
#iaOutput { color: var(--ink); line-height: 1.5; }
.ia-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ia-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; background: var(--bg); color: var(--ink-soft); font-size: .74rem; font-weight: 600; }
.ia-chip .dot-pr { margin: 0; }
.ia-secao + .ia-secao { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.ia-rotulo { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); margin-bottom: 4px; }
.ia-timeline { list-style: none; padding: 0; margin: 0; }
.ia-timeline li { position: relative; padding-left: 14px; margin-bottom: 4px; font-size: .8rem; }
.ia-timeline li::before { content: ''; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); opacity: .5; }
.ia-sugestao { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.ia-nota { margin-top: 12px; font-size: .72rem; color: var(--ink-soft); }

/* Dashboard personalizável: cards com ordem, tamanho e visibilidade por usuário */
.dash-item { position: relative; }
.dash-item > .dash-conteudo { height: 100%; }
.dash-item > .dash-conteudo > .panel, .dash-item > .dash-conteudo > .stat-card { height: 100%; }
.dash-ctrl { display: none; }
.dash-aviso { background: var(--primary-soft); color: var(--primary-dark); border-radius: 12px; padding: 10px 14px; font-size: .82rem; }
.dash-vazio { text-align: center; color: var(--ink-soft); padding: 48px 16px; border: 2px dashed var(--line); border-radius: 20px; }
.dash-editando .dash-item { cursor: grab; }
.dash-editando .dash-item > .dash-conteudo { pointer-events: none; user-select: none; outline: 2px dashed #C7C9E0; outline-offset: 3px; border-radius: 20px; }
.dash-editando .dash-item:hover > .dash-conteudo { outline-color: var(--primary); }
.dash-editando .dash-item.arrastando { opacity: .4; }
.dash-editando .dash-ctrl { display: flex; align-items: center; gap: 2px; position: absolute; top: 8px; right: 20px; z-index: 3; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 3px; box-shadow: 0 4px 14px rgba(27, 31, 59, .12); }
.dash-ctrl button, .dash-ctrl .dash-alca { border: none; background: transparent; color: var(--ink-soft); font-size: .74rem; font-weight: 700; min-width: 26px; height: 24px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }
.dash-ctrl .dash-alca { cursor: grab; font-size: .9rem; }
.dash-ctrl button:hover:not(:disabled) { background: var(--bg); color: var(--ink); }
.dash-ctrl button.ativo { background: var(--primary); color: #fff; }
.dash-ctrl button:disabled { opacity: .35; cursor: not-allowed; }
.dash-ctrl .dash-ocultar:hover { color: #DC2626 !important; }
.dash-ctrl .dash-sep { width: 1px; height: 16px; background: var(--line); margin: 0 2px; }
.dash-linha { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-bottom: 1px solid var(--line); border-radius: 8px; min-width: 0; }
.dash-linha:last-child { border-bottom: none; }
.dash-linha-corpo { flex: 1; min-width: 0; }
.dash-linha-titulo { font-weight: 600; font-size: .84rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-linha-meta { font-size: .72rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-linha-meta .dot-pr { margin: 0 4px 0 0; }
.dash-contador { background: var(--bg); color: var(--ink-soft); font-size: .72rem; font-weight: 700; border-radius: 20px; padding: 2px 9px; }
.dash-barra { height: 6px; background: var(--bg); border-radius: 6px; overflow: hidden; margin-top: 4px; }
.dash-barra > span { display: block; height: 100%; background: var(--primary); border-radius: 6px; }
.card-disponivel { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
.card-disponivel-corpo { flex: 1; min-width: 0; }
.card-disponivel-modulo { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); margin: 14px 0 8px; }
.card-disponivel-modulo:first-child { margin-top: 0; }

/* Notificações por técnico: não lidas destacadas, abas da página */
.notif-linha.nao-lida, .notif-sino.nao-lida { background: rgba(79, 70, 229, .05); }
.notif-linha.nao-lida .notif-titulo { font-weight: 700; }
.notif-texto { font-size: .82rem; color: var(--ink); margin-top: 2px; }
.notif-ponto { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex-shrink: 0; margin-top: 6px; }
.aba-notif { border: 1px solid var(--line); background: var(--card); color: var(--ink-soft); font-weight: 600; font-size: .84rem; border-radius: 12px; padding: 7px 14px; display: inline-flex; align-items: center; gap: 6px; }
.aba-notif:hover { color: var(--ink); }
.aba-notif.ativa { background: var(--primary-soft); color: var(--primary); border-color: transparent; }
.aba-contador { background: var(--bg); color: inherit; border-radius: 20px; padding: 0 7px; font-size: .72rem; }
.aba-notif.ativa .aba-contador { background: var(--card); }

/* Anexos do chamado (modal de detalhe) */
.anexo-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 6px; background: var(--card); }
.anexo-icone { font-size: 1.25rem; color: var(--primary); flex-shrink: 0; }
.anexo-corpo { flex: 1; min-width: 0; }
.anexo-nome { display: block; font-weight: 600; font-size: .83rem; color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.anexo-nome:hover { color: var(--primary); }
.anexo-meta { font-size: .72rem; color: var(--ink-soft); }
.anexo-acao { border: none; background: transparent; color: var(--ink-soft); width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; flex-shrink: 0; }
.anexo-acao:hover { background: var(--bg); color: var(--ink); }
.anexo-remover:hover { color: #DC2626; }
label.btn-ghost.disabled { pointer-events: none; opacity: .6; }

/* Quadros: colunas por status ou responsável, raias por empresa (mesmo estilo dos botões Lista/Kanban) */
.quadro-opcoes { display: inline-flex; gap: 2px; background: #EDF0F7; border-radius: 10px; padding: 3px; }
.quadro-opcao { border: none; background: transparent; padding: 5px 12px; font-size: .8rem; font-weight: 600; color: var(--ink-soft); border-radius: 8px; transition: all .15s ease; }
.quadro-opcao.ativa { background: var(--card); color: var(--primary); box-shadow: 0 2px 6px rgba(27, 31, 59, .08); }
.quadro-raias { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--ink-soft); cursor: pointer; }
.kanban-quadro { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.kanban-raia { margin-bottom: 18px; }
.kanban-raia-titulo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; color: var(--ink); margin: 0 2px 8px; }
.kanban-raia-titulo .kanban-count { margin-left: 0; }
.kanban-quadro .kanban-col-header .text-truncate { min-width: 0; }

/* Menu lateral no celular e tablet (< 992px): gaveta que abre pelo botão do topo */
.menu-celular { display: none; flex-shrink: 0; }
#sidebarFundo { display: none; }
@media (max-width: 991.98px) {
  .menu-celular { display: flex; }
  #sidebar { position: fixed; left: 0; top: 0; z-index: 1045; height: 100vh; height: 100dvh; transform: translateX(-100%); visibility: hidden; transition: transform .25s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .25s; box-shadow: 0 0 40px rgba(27, 31, 59, .18); }
  body.menu-aberto #sidebar { transform: none; visibility: visible; transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
  #sidebarFundo { position: fixed; inset: 0; z-index: 1040; background: rgba(27, 31, 59, .38); }
  body.menu-aberto #sidebarFundo { display: block; }
  body.menu-aberto { overflow: hidden; }
  #topbar { padding: 12px 16px; gap: 10px; }
  .session-pill { display: none; }
  .search-pill { min-width: 0; padding: 9px 12px; }
}
@media (max-width: 576px) {
  #topbar .tech-pill .text-start, #topbar .tech-pill .bi-chevron-down { display: none; }
  #topbar .tech-pill { padding: 4px; }
  #conteudo { padding: 16px !important; }
}
@media (prefers-reduced-motion: reduce) {
  #sidebar, body.menu-aberto #sidebar { transition: none; }
}
.kanban-rodape { flex-wrap: wrap; gap: 4px; }
#sidebar .brand { gap: 8px; }
#sidebar .brand img { max-width: 150px; }
#sidebar .brand .menu-celular { width: 34px; height: 34px; }
