/* ===================== CRM · Pipeline (Kanban) ===================== */
.kanban {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
  align-items: flex-start;
}
.kanban-col {
  flex: 0 0 272px;
  background: var(--fundo-sutil);
  border: 1px solid var(--linha);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 300px);
  min-height: 160px;
}
.kanban-col.arrastando-sobre {
  background: var(--azul-suave);
  border-color: var(--azul-claro);
}
.kanban-col-topo {
  padding: 10px 12px 8px;
  border-bottom: 1px solid var(--linha);
  border-top: 3px solid var(--azul-principal);
  border-radius: 12px 12px 0 0;
  background: var(--fundo-card);
}
.kanban-col-topo .nome {
  font-weight: 700;
  font-size: 13.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.kanban-col-topo .soma {
  font-size: 12px;
  color: var(--texto-secundario);
  margin-top: 2px;
}
.kanban-cards {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  flex: 1;
}
.kanban-card {
  background: var(--fundo-card);
  border: 1px solid var(--linha);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: grab;
  box-shadow: 0 1px 2px rgba(5, 43, 82, 0.05);
  transition:
    box-shadow 0.15s,
    transform 0.15s;
}
.kanban-card:hover {
  box-shadow: 0 4px 12px rgba(5, 43, 82, 0.12);
  transform: translateY(-1px);
}
.kanban-card.arrastando {
  opacity: 0.4;
}
.kanban-card .titulo-card {
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.3;
  color: var(--texto-principal);
  text-decoration: none;
  display: block;
}
.kanban-card .titulo-card:hover {
  color: var(--azul-principal);
}
.kanban-card .contato {
  font-size: 12.5px;
  color: var(--texto-secundario);
  margin-top: 2px;
}
.kanban-card .rodape {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  gap: 6px;
}
.kanban-card .valor {
  font-weight: 700;
  font-size: 13px;
  color: var(--azul-profundo);
}
.kanban-card .meta {
  font-size: 11px;
  color: var(--texto-suave);
  display: flex;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.kanban-card .meta .parado {
  color: var(--ambar);
  font-weight: 600;
}
.kanban-card .meta .parado.muito {
  color: var(--vermelho);
}
.estrelas {
  display: inline-flex;
  gap: 1px;
  color: #d1d5db;
  font-size: 12px;
  letter-spacing: 1px;
}
.estrelas .on {
  color: var(--ambar);
}
.estrelas-input {
  display: inline-flex;
  gap: 2px;
  cursor: pointer;
  font-size: 22px;
  color: #d1d5db;
  user-select: none;
}
.estrelas-input span.on {
  color: var(--ambar);
}
.estrelas-input span:hover {
  transform: scale(1.15);
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline li {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--linha);
  align-items: start;
}
.timeline li:last-child {
  border-bottom: 0;
}
.timeline .icone {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--azul-suave);
  color: var(--azul-principal);
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline li.feita .icone {
  background: var(--verde-suave);
  color: var(--verde-principal);
}
.timeline li.atrasada .icone {
  background: var(--vermelho-suave);
  color: var(--vermelho);
}
.timeline .quando {
  font-size: 12px;
  color: var(--texto-secundario);
}
.chip-origem {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--fundo-sutil);
  border: 1px solid var(--linha);
  color: var(--texto-secundario);
}
.modal-fundo {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 43, 82, 0.45);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal-fundo.aberto {
  display: flex;
}
.crm-filtros {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.crm-filtros .input {
  width: auto;
  min-width: 140px;
}
@media (max-width: 720px) {
  .kanban-col {
    flex-basis: 85vw;
    max-height: none;
  }
}

/* ===================== Menu recolhível + tema ===================== */
.sidebar .marca {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.btn-recolher,
.btn-tema {
  background: rgba(0, 0, 0, 0.14);
  border: 0;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 12.5px;
  padding: 6px 8px;
}
.btn-recolher:hover,
.btn-tema:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.btn-tema {
  margin-top: 10px;
  width: 100%;
  justify-content: flex-start;
}
.sidebar .sub {
  color: #0d2a08;
  opacity: 0.85;
  font-weight: 600;
}

html.menu-recolhido .app-shell {
  grid-template-columns: 68px 1fr;
}
html.menu-recolhido .sidebar {
  padding: 16px 10px;
}
html.menu-recolhido .sidebar .marca {
  flex-direction: column;
  align-items: center;
  padding: 4px 0 10px;
}
html.menu-recolhido .sidebar .marca .logo {
  font-size: 0;
}
html.menu-recolhido .sidebar .marca .logo::before {
  content: "G";
  font-size: 22px;
}
html.menu-recolhido .sidebar .marca .sub,
html.menu-recolhido .menu .secao,
html.menu-recolhido .menu a span,
html.menu-recolhido .sidebar-rodape > div,
html.menu-recolhido .sidebar-rodape span {
  display: none;
}
html.menu-recolhido .menu a {
  justify-content: center;
  padding: 9px 0;
}
html.menu-recolhido .menu a.ativo::before {
  left: -10px;
}
html.menu-recolhido .menu a[style] {
  display: flex !important;
}
html.menu-recolhido .sidebar-rodape a,
html.menu-recolhido .btn-tema {
  justify-content: center;
}
html.menu-recolhido .btn-recolher svg {
  transform: rotate(180deg);
}
@media (max-width: 900px) {
  .btn-recolher {
    display: none;
  }
  html.menu-recolhido .app-shell {
    grid-template-columns: 1fr;
  }
}
