/* ============================================================================
   kanban.css — Cartões de pedido compactos e polidos
   Vision Art Gráfica — Sistema interno
   Carregado DEPOIS de styles.css/mobile.css para refinar os cartões do Kanban.
   Identidade: rosa (--va-pink) apenas em ações/destaques pontuais; fundos
   neutros, bordas discretas, tipografia legível.
   ============================================================================ */

/* ---- Cartão ---- */
.kanban-card {
  padding: 11px 12px 10px !important;
  border-radius: 12px;
  border: 1px solid #eceef2;
  border-left: 3px solid transparent;          /* pequeno indicador colorido da etapa */
  box-shadow: 0 1px 2px rgba(16, 24, 40, .06);
  background: #fff;
}
.kanban-card:hover { box-shadow: 0 4px 14px rgba(16, 24, 40, .10); }
.kanban-card.expanded { box-shadow: 0 6px 20px rgba(16, 24, 40, .12); }

/* ---- Cabeçalho: origem + número (discretos) | prazo (destaque) ---- */
.kc-head { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; flex-wrap: wrap; }
.kc-head-spacer { flex: 1 1 auto; }
.kc-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .66rem; font-weight: 600; line-height: 1;
  padding: 3px 7px; border-radius: 999px;
  background: #f4f6f8; color: #64748b; border: 1px solid #eceef2;
}
.kc-chip i { font-size: .78rem; }
.kc-orig.wpp i     { color: #22a565; }
.kc-orig.shopify i { color: #2e7d32; }
.kc-orig.manual i  { color: #64748b; }
.kc-num { background: #f4f6f8; color: #475569; }
.kc-visto { background: #dcfce7; color: #166534; border-color: #bbf7d0; max-width: 140px; }
.kc-visto span, .kc-visto { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kc-visto i { color: #16a34a; }

/* ===== Selos compactos de atendimento/anexos ===== */
.kc-selos { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.kc-selo { display: inline-flex; align-items: center; gap: 4px; font-size: .68rem; font-weight: 600;
  color: #475569; background: #f1f5f9; border: 1px solid #eceef2; border-radius: 999px; padding: 2px 8px; }
.kc-selo i { color: #94a3b8; font-size: .76rem; }
.kanban-card .kc-btn.atend:hover { background: #eef2ff; border-color: #c7d2fe; color: #4338ca; }

/* ---- Cliente em destaque ---- */
.kanban-card .kc-cliente {
  font-size: .96rem; font-weight: 800; color: #111827;
  line-height: 1.2; margin: 0 0 5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---- Resumo de produtos ---- */
.kc-resumo { display: flex; align-items: center; gap: 8px; min-width: 0; }
.kc-mini-thumb { width: 30px; height: 30px; border-radius: 7px; object-fit: cover; border: 1px solid #eceef2; flex-shrink: 0; }
.kc-resumo-txt {
  flex: 1 1 auto; min-width: 0;
  font-size: .82rem; color: #475569;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.kc-uni {
  flex-shrink: 0; font-size: .7rem; font-weight: 700; color: #475569;
  background: #f1f5f9; border-radius: 999px; padding: 2px 8px;
}

/* ---- Responsável ---- */
.kc-resp {
  display: inline-flex; align-items: center; margin-top: 7px;
  font-size: .7rem; font-weight: 600; color: #6d28d9;
  background: #f5f3ff; border: 1px solid #ede9fe; border-radius: 999px; padding: 2px 8px;
}

/* ---- Pendência principal (fica visível recolhido) ---- */
.kc-pend {
  display: flex; align-items: flex-start; gap: 5px; margin-top: 7px;
  font-size: .72rem; font-weight: 600; color: #92400e;
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 5px 8px;
}
.kc-pend i { color: #d97706; margin-top: 1px; }

/* ---- Badge de prazo (mantém as cores já existentes .kc-prazo-*) ---- */
.kc-prazo-badge { padding: 3px 8px; border-radius: 999px; }

/* ---- Botão "Itens e observações" / "Recolher detalhes" ---- */
.kc-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  width: 100%; margin-top: 9px; padding: 7px 9px;
  background: #fafbfc; border: 1px solid #eceef2; border-radius: 9px;
  color: var(--va-pink); font-weight: 700; font-size: .76rem; cursor: pointer;
  transition: background .12s, border-color .12s;
}
.kc-toggle:hover { background: #fdf2f8; border-color: #f6cfe6; }
.kc-toggle i.bi-chevron-down, .kc-toggle i.bi-chevron-up { font-size: .8rem; }

/* ---- Painel de detalhes expandido ---- */
.kc-detalhes {
  margin-top: 8px; padding: 10px; border-radius: 9px;
  background: #f8fafc; border: 1px solid #eef1f5;
}
.kc-det-item { padding: 6px 0; border-bottom: 1px dashed #e6eaef; }
.kc-det-item:first-child { padding-top: 0; }
.kc-det-item:last-child { border-bottom: none; padding-bottom: 0; }
.kc-det-nome { font-size: .8rem; font-weight: 700; color: #1e293b; display: flex; justify-content: space-between; gap: 8px; }
.kc-det-qtd { flex-shrink: 0; color: #64748b; font-weight: 700; }
.kc-det-var { font-size: .74rem; color: #7c3aed; font-weight: 600; margin-top: 2px; }
.kc-det-sub { font-size: .72rem; color: #64748b; margin-top: 2px; }
.kc-det-props { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.kc-det-prop {
  font-size: .7rem; color: #3730a3; background: #eef2ff;
  border: 1px solid #e0e7ff; border-radius: 6px; padding: 2px 6px;
}
.kc-det-obs { font-size: .72rem; color: #64748b; margin-top: 3px; font-style: italic; }
.kc-det-vazio { font-size: .76rem; color: #94a3b8; }
.kc-det-extras { margin-top: 8px; padding-top: 8px; border-top: 1px solid #e6eaef; display: flex; flex-direction: column; gap: 4px; }
.kc-det-linha { display: flex; align-items: flex-start; gap: 6px; font-size: .74rem; color: #475569; }
.kc-det-linha i { color: #94a3b8; margin-top: 1px; }
.kc-det-linha.ok i { color: #16a34a; }

/* ---- Ações compactas (sempre visíveis, discretas) ---- */
.kanban-card .kc-acoes {
  display: flex; gap: 5px; flex-wrap: wrap;
  margin-top: 9px; padding-top: 9px; border-top: 1px solid #f1f3f6;
  opacity: 1;
}
.kanban-card .kc-btn {
  width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0; border-radius: 8px; border: 1px solid #e6eaef; background: #fff;
  color: #64748b; font-size: .82rem; cursor: pointer; transition: .12s;
}
.kanban-card .kc-btn:hover { background: #f8fafc; color: #1e293b; border-color: #cbd5e1; }
.kanban-card .kc-btn.ver:hover  { background: var(--va-pink); border-color: var(--va-pink); color: #fff; }
.kanban-card .kc-btn.prod:hover { background: #eef2ff; border-color: #c7d2fe; color: #4338ca; }
.kanban-card .kc-btn.recibo       { color: #0d9488; }
.kanban-card .kc-btn.recibo:hover { background: #ccfbf1; border-color: #5eead4; color: #0f766e; }

/* ===== Acompanhamento de pendências (coluna Novo) ===== */
.kc-acomp { margin-top: 8px; display: flex; flex-direction: column; gap: 5px; }
/* Faixa do motivo de atenção */
.kc-atn { display: flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700;
  border-radius: 8px; padding: 5px 8px; }
.kc-atn i { font-size: .82rem; flex-shrink: 0; }
.kc-atn span { flex: 1 1 auto; }
.kc-atn-atencao { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.kc-atn-critico { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.kc-atn-gestor  { background: #b91c1c; color: #fff; font-size: .6rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .4px; border-radius: 999px; padding: 1px 6px; }
/* Linhas de info (pendência / responsável / próxima ação) */
.kc-acomp-linha { display: flex; align-items: center; gap: 6px; font-size: .74rem; color: #475569; }
.kc-acomp-linha i { color: #94a3b8; font-size: .8rem; flex-shrink: 0; }
.kc-acomp-linha span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kc-sem-resp { color: #b45309; font-style: italic; }
/* Botão Resolver pendência */
.kc-resolver { display: flex; align-items: center; justify-content: center; gap: 5px; width: 100%;
  margin-top: 8px; padding: 7px 9px; border: 1px solid #f6cfe6; border-radius: 9px;
  background: #fdf2f8; color: #c9177a; font-weight: 700; font-size: .76rem; cursor: pointer; transition: .12s; }
.kc-resolver:hover { background: #fce7f3; border-color: #f0abcf; }

/* ===== Referências visuais do cliente (painel expandido) ===== */
.kc-refs-wrap { margin-top: 10px; padding-top: 8px; border-top: 1px solid #e6eaef; }
.kc-refs-tit { font-size: .72rem; font-weight: 800; color: #0369a1; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 6px; }
.kc-refs { display: flex; flex-wrap: wrap; gap: 6px; }
.kc-ref { position: relative; width: 56px; height: 56px; border-radius: 8px; overflow: hidden;
  border: 1px solid #e2e8f0; cursor: zoom-in; flex: none;
  background-color: #fff;
  background-image: linear-gradient(45deg,#e6e9ef 25%,transparent 25%),linear-gradient(-45deg,#e6e9ef 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e6e9ef 75%),linear-gradient(-45deg,transparent 75%,#e6e9ef 75%);
  background-size: 12px 12px; background-position: 0 0,0 6px,6px -6px,-6px 0; }
.kc-ref img { width: 100%; height: 100%; object-fit: contain; display: block; }
.kc-ref-cat { position: absolute; bottom: 2px; right: 2px; background: rgba(2,6,23,.72); color: #fff;
  border-radius: 5px; font-size: .6rem; width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; }
.kc-ref-mais { width: 56px; height: 56px; border-radius: 8px; border: 1px dashed #cbd5e1; display: flex;
  align-items: center; justify-content: center; font-weight: 800; font-size: .8rem; color: #64748b; cursor: pointer; background: #f8fafc; }
.kc-ref-mais:hover { background: #eef2ff; border-color: #c7d2fe; color: #4338ca; }

/* ===== Faixa/banner "X pedidos precisam de atenção" ===== */
.banner-atencao { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 0 0 12px; padding: 8px 14px; border-radius: 10px; font-size: .82rem; font-weight: 600;
  background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.banner-atencao.filtrando { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.banner-atencao b { font-weight: 800; }
.banner-atencao-btn { border: none; background: rgba(0,0,0,.06); border-radius: 8px; padding: 6px 12px;
  font-size: .78rem; font-weight: 700; cursor: pointer; color: inherit; white-space: nowrap; }
.banner-atencao-btn:hover { background: rgba(0,0,0,.12); }

/* ===== Histórico "Notificações WhatsApp" no cartão ===== */
.mc-hist { margin-top: 10px; padding-top: 8px; border-top: 1px solid #e6eaef; }
.mc-hist-titulo { font-size: .72rem; font-weight: 800; color: #166534; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 6px; }
.mc-hist-item { padding: 5px 0; border-bottom: 1px dashed #eef1f5; }
.mc-hist-item:last-child { border-bottom: none; }
.mc-hist-top { display: flex; align-items: center; gap: 6px; font-size: .76rem; color: #1e293b; flex-wrap: wrap; }
.mc-chip { font-size: .64rem; font-weight: 800; padding: 1px 7px; border-radius: 999px; }
.mc-hist-id { font-size: .66rem; color: #94a3b8; }
.mc-hist-meta { font-size: .7rem; color: #94a3b8; margin-top: 1px; }
.mc-hist-motivo { font-size: .7rem; color: #b45309; margin-top: 2px; }
.mc-hist-reenviar { margin-top: 4px; border: 1px solid #cbd5e1; background: #fff; border-radius: 7px; padding: 3px 9px; font-size: .7rem; font-weight: 700; color: #334155; cursor: pointer; }
.mc-hist-reenviar:hover { background: #f1f5f9; }
.kanban-card .kc-btn.wpp        { color: #22a565; }
.kanban-card .kc-btn.wpp:hover  { background: #dcf8c6; border-color: #a8d5a2; color: #075e54; }
.kanban-card .kc-btn.del:hover  { background: #fef2f2; border-color: #fecaca; color: #dc2626; }
