/* Chamados e Suporte — Kanban recolhível no padrão do Kanban principal. */
.ch-dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3-5);
}

@media (max-width: 1100px) {
  .ch-dashboard-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .ch-dashboard-kpis { grid-template-columns: 1fr; }
}

.ch-kanban-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin: var(--space-2) 0;
  color: var(--muted);
  font-size: var(--text-xs);
}
.ch-kanban-tools > span { display: inline-flex; align-items: center; gap: var(--space-1); }
.ch-kanban-tools > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-2); }
.ch-kanban-wrap { overflow-x: auto; padding-bottom: 8px; }
.ch-kanban-board { display: flex; align-items: flex-start; gap: var(--space-3); min-width: max-content; }
.ch-kanban-col {
  flex: 0 0 280px;
  width: 280px;
  max-width: 280px;
  max-height: calc(100vh - 380px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: flex-basis .18s ease, width .18s ease, max-width .18s ease;
}
.ch-kanban-col-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  user-select: none;
}
.ch-kanban-col-head:hover { background: var(--panel); }
.ch-kanban-col-head:focus-visible { outline: 2px solid var(--focus, var(--blue)); outline-offset: -2px; }
.ch-kanban-col-head h3 { flex: 1; min-width: 0; margin: 0; font-size: var(--text-sm); font-weight: var(--font-semibold); white-space: nowrap; }
.ch-kanban-col-dot { width: 9px; height: 9px; flex-shrink: 0; border-radius: 50%; background: var(--ch-col-cor); }
.ch-kanban-col-count { color: var(--muted); font-size: var(--text-xs); background: var(--panel); border: 1px solid var(--line); padding: 1px 8px; border-radius: var(--radius-pill); }
.ch-kanban-col-body { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; padding: 10px; }

.ch-kanban-col.is-collapsed {
  flex: 0 0 44px;
  width: 44px;
  max-width: 44px;
  min-width: 44px;
  min-height: 260px;
  height: calc(100vh - 380px);
  max-height: none;
}
.ch-kanban-col.is-collapsed .ch-kanban-col-head { height: 100%; min-height: 0; flex-direction: column; justify-content: flex-start; padding: var(--space-2); border-bottom: 0; }
.ch-kanban-col.is-collapsed .ch-kanban-col-head h3 { flex: 0; writing-mode: vertical-rl; transform: rotate(180deg); line-height: 1.1; letter-spacing: .45px; text-align: left; }
.ch-kanban-col.is-collapsed .ch-kanban-col-dot { margin-top: var(--space-1); }
.ch-kanban-col.is-collapsed .ch-kanban-col-count { margin-top: auto; margin-bottom: var(--space-1); padding: 2px 4px; }
.ch-kanban-col.is-collapsed .ch-kanban-col-body { display: none; }

@media (max-width: 768px) {
  .ch-kanban-col { flex: 0 0 82vw; width: 82vw; max-width: 82vw; max-height: calc(100vh - 300px); }
}
