/* UP! Kanban — camada visual (ver up-kanban.js). Cores dos selos vêm da etiqueta (--up-cor). */
.up-cartao {
  background: linear-gradient(var(--up-fundo), var(--up-fundo)), #fff !important;
  border-color: var(--up-cor) !important;
  box-shadow: inset 4px 0 0 var(--up-cor);
}
.up-faixa {
  margin: -8px -12px 8px; padding: 5px 12px;
  background: var(--up-cor); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
  border-radius: 5px 5px 0 0;
}
.up-logo { font-weight: 800; letter-spacing: -.02em; }
.up-logo b { color: #0058FE; }

/* comentários do UP! Aprova */
.up-ev { --c: #2563EB; border-color: var(--c) !important; border-left-width: 5px !important;
  background: color-mix(in srgb, var(--c) 7%, #fff) !important; }
.up-ev-enviado { --c: #2563EB; }
.up-ev-visto { --c: #64748B; }
.up-ev-aprovado { --c: #16A34A; }
.up-ev-ajuste { --c: #F59E0B; }
.up-ev-lembrete { --c: #DC2626; }
.up-ev p:first-of-type strong, .up-ev strong:first-child { color: var(--c); font-size: 15px; }
.up-ev blockquote { border-left: 3px solid var(--c) !important; background: #fff; border-radius: 6px; padding: 8px 12px !important; font-style: normal !important; }
.up-ev-aprovado, .up-ev-ajuste { box-shadow: 0 1px 2px rgba(15,23,42,.05), 0 6px 18px color-mix(in srgb, var(--c) 18%, transparent); }
.up-ev-botoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.up-bt { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 10px;
  font: 600 13px/1 inherit; border: 1.5px solid #CBD5E1; background: #fff; color: #0F172A; cursor: pointer; text-decoration: none; }
.up-bt:hover { border-color: #0F172A; }
.up-bt-forte { background: #16A34A; border-color: #16A34A; color: #fff; }
.up-bt-forte:hover { background: #15803D; border-color: #15803D; }
.up-bt:focus-visible { outline: 2px solid #0058FE; outline-offset: 2px; }
/* o Kan liga o modo escuro com a classe .dark no <html> */
.dark .up-cartao { background: linear-gradient(var(--up-fundo), var(--up-fundo)), #1c1c1c !important; }
.dark .up-ev { background: color-mix(in srgb, var(--c) 12%, #1c1c1c) !important; }
.dark .up-bt { background: #262626; color: #f5f5f5; border-color: #404040; }

/* faixa "Aprovação do cliente" no topo do cartão */
.up-painel { --c: #64748B; margin: 0 0 28px; padding: 16px 18px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--c) 35%, #E2E8F0);
  border-left: 5px solid var(--c); background: color-mix(in srgb, var(--c) 5%, #fff);
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.05); }
.up-p-topo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.up-p-esq { display: flex; align-items: center; gap: 12px; min-width: 0; }
.up-p-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--c); color: #fff; flex: none; }
.up-p-ic .up-ic { width: 20px; height: 20px; }
.up-painel h3 { margin: 0; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #64748B; }
.up-situacao { font-weight: 700; font-size: 16px; line-height: 1.3; color: var(--c); }
.up-detalhe { margin: 2px 0 0; font-size: 12.5px; color: #475569; }
.up-detalhe:empty { display: none; }
.up-acoes { display: flex; flex-wrap: wrap; gap: 8px; }
.up-acoes .up-bt { min-height: 36px; }
.up-bt-azul { background: #0058FE; border-color: #0058FE; color: #fff; }
.up-bt-azul:hover { background: #0047D1; border-color: #0047D1; }
.up-bt:disabled { opacity: .6; cursor: wait; }
.up-menu-aprovar { font-weight: 600; }
.up-painel details { margin-top: 14px; border-top: 1px solid #E2E8F0; padding-top: 10px; }
.up-painel summary { cursor: pointer; font-size: 13px; font-weight: 700; color: #0F172A; list-style: none; display: flex; align-items: center; gap: 6px; }
.up-painel summary::-webkit-details-marker { display: none; }
.up-painel summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid #64748B; border-bottom: 2px solid #64748B; transform: rotate(-45deg); transition: transform .15s; }
.up-painel details[open] summary::before { transform: rotate(45deg); }
.up-hist { list-style: none; margin: 10px 0 0; padding: 0; position: relative; }
.up-hist li { position: relative; display: flex; gap: 12px; padding: 0 0 14px; }
.up-hist li:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: #E2E8F0; }
.up-h-ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: color-mix(in srgb, var(--h) 14%, #fff);
  color: var(--h); border: 1.5px solid color-mix(in srgb, var(--h) 40%, #fff); flex: none; position: relative; z-index: 1; }
.up-h-ic .up-ic { width: 14px; height: 14px; stroke-width: 2.4; }
.up-hist b { display: block; font-size: 13.5px; color: #0F172A; }
.up-hist small { display: block; font-size: 12px; color: #64748B; }
.up-hist blockquote { margin: 6px 0 0; padding: 8px 12px; border-left: 3px solid var(--h); background: #fff; border-radius: 6px; font-size: 13px; color: #0F172A; }
.up-ajuda { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: #334155; }
.up-ajuda:empty { display: none; }
.up-painel[hidden] { display: none; }
.dark .up-painel { background: color-mix(in srgb, var(--c) 10%, #1c1c1c); border-color: #333; }
.dark .up-detalhe, .dark .up-ajuda, .dark .up-hist small { color: #a3a3a3; }
.dark .up-hist b, .dark .up-painel summary { color: #f5f5f5; }
.dark .up-hist blockquote { background: #262626; color: #f5f5f5; }

/* ícones (traço, sem emoji) */
.up-ic { width: 16px; height: 16px; flex: none; }
.up-faixa { display: flex; align-items: center; gap: 6px; }
.up-faixa .up-ic { width: 14px; height: 14px; stroke-width: 2.4; }
.up-bt { gap: 8px; }
.up-acoes .up-bt, .up-ev-botoes .up-bt { text-align: center; line-height: 1.25; padding-top: 8px; padding-bottom: 8px; }
.up-ev p { margin-top: 2px !important; margin-bottom: 4px !important; }
.up-ev-titulo { line-height: 26px; }
.up-ev-titulo strong { font-size: 15px; }
.up-ev-ic { vertical-align: middle; margin-right: 8px; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; flex: none;
  background: var(--c); color: #fff; }
.up-ev-ic .up-ic { width: 15px; height: 15px; stroke-width: 2.4; }

/* etiqueta com o balão inteiro pintado (cor vem da etiqueta) */
.up-etiqueta { background: var(--e-fundo) !important; color: var(--e-texto) !important; font-weight: 600 !important;
  --tw-ring-color: var(--e-borda) !important; box-shadow: inset 0 0 0 1px var(--e-borda) !important; }
.up-etiqueta > div { color: var(--e-texto) !important; }
.dark .up-etiqueta { color: #f5f5f5 !important; }
.dark .up-etiqueta > div { color: #f5f5f5 !important; }

.up-ultimo { font-weight: 500; color: #64748B; margin-left: 4px; }
