/* ============================================================
 *  KANBAN 10/10 — minimalista, padrão Nova Tarefa
 *  Branco, bordas finas, prioridade só na barra lateral sutil
 * ============================================================ */

/* ---------- BOARD ---------- */
.k10-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
  margin-top: 20px;
  align-items: start;
}
@media (min-width: 1400px) {
  .k10-board { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ---------- COLUNA ---------- */
.k10-col {
  display: flex;
  flex-direction: column;
  min-height: 320px;
  max-height: calc(100vh - 260px);
  background: #ffffff;
  border: 1px solid oklch(0.94 0.005 260);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 160ms ease;
}
.k10-col.drag-over,
.k10-col:has(.kanban-column.drag-over) {
  border-color: oklch(0.65 0.14 260);
  box-shadow: 0 0 0 3px oklch(0.94 0.04 260);
}

.k10-col__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  background: transparent;
}
.k10-col__headline {
  display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1;
}
.k10-col__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.k10-col__title {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: oklch(0.45 0.015 260);
  margin: 0;
}
.k10-col__count {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 500;
  color: oklch(0.52 0.015 260);
  letter-spacing: 0;
  margin-left: auto;
  padding-right: 8px;
}
.k10-col__add {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; padding: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: oklch(0.55 0.015 260);
  cursor: pointer;
  transition: all 120ms ease;
}
.k10-col__add svg { width: 13px; height: 13px; }
.k10-col__add:hover {
  background: oklch(0.96 0.005 260);
  color: oklch(0.18 0.008 260);
}

/* ---------- LISTA ---------- */
.k10-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  list-style: none;
}
.k10-list::-webkit-scrollbar { width: 6px; }
.k10-list::-webkit-scrollbar-thumb {
  background: oklch(0.90 0.008 260);
  border-radius: 3px;
}
.k10-list::-webkit-scrollbar-thumb:hover {
  background: oklch(0.78 0.012 260);
}

/* ============================================================
 *  CARD — MINIMALISTA
 * ============================================================ */
.k10-card {
  position: relative;
  background: #ffffff;
  border: 1px solid oklch(0.93 0.005 260);
  border-radius: 10px;
  padding: 12px 14px 12px 16px;
  cursor: grab;
  transition: border-color 140ms ease, box-shadow 160ms ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  min-height: 0;
}
.k10-card:hover {
  border-color: oklch(0.82 0.01 260);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 20px rgba(15, 23, 42, 0.06);
}
.k10-card:focus-visible {
  outline: 2px solid oklch(0.55 0.17 260);
  outline-offset: 2px;
  border-color: oklch(0.55 0.17 260);
}
.k10-card:active { cursor: grabbing; }
.k10-card.is-dragging {
  opacity: 0.5;
  transform: rotate(1deg);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
}

/* ---------- EDGE (barra lateral de prioridade, sutil) ---------- */
.k10-card__edge {
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 0 2px 2px 0;
  background: transparent;
  transition: background 160ms ease;
}
.k10-card[data-prio="urgente"] .k10-card__edge,
.k10-card[data-prio="critica"] .k10-card__edge { background: oklch(0.58 0.22 25); }
.k10-card[data-prio="alta"]    .k10-card__edge { background: oklch(0.65 0.17 45); }
.k10-card[data-prio="media"]   .k10-card__edge { background: oklch(0.72 0.10 85); }
.k10-card[data-prio="baixa"]   .k10-card__edge { background: oklch(0.80 0.04 200); }

/* ---------- TOP (tipo + recorrência) ---------- */
.k10-card__top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 16px;
}
.k10-tchip {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  padding: 0;
  background: transparent;
  color: oklch(0.52 0.015 260);
  border: 0;
}
.k10-tchip[data-tipo="prazo-legal"] { color: oklch(0.42 0.14 280); }
.k10-tchip[data-tipo="audiencia"]   { color: oklch(0.44 0.16 35); }
.k10-tchip[data-tipo="peticao"]     { color: oklch(0.42 0.14 260); }
.k10-card__rec {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px; height: 14px;
  color: oklch(0.55 0.02 260);
  margin-left: auto;
  flex-shrink: 0;
}
.k10-card__rec svg { width: 11px; height: 11px; }

/* ---------- TÍTULO ---------- */
.k10-card__title {
  font-family: "Inter Tight", "Inter", -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.013em;
  color: oklch(0.14 0.008 260);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  padding-right: 8px;
}

/* ---------- URGENCY INLINE (texto + dot, sem pill colorida) ---------- */
.k10-urg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1;
  padding: 0;
  color: oklch(0.52 0.015 260);
  align-self: flex-start;
}
.k10-urg__ico {
  width: 11px; height: 11px;
  flex-shrink: 0;
  color: oklch(0.62 0.015 260);
}
.k10-urg[data-tone="danger"]  { color: oklch(0.46 0.20 25); font-weight: 600; }
.k10-urg[data-tone="danger"] .k10-urg__ico { color: oklch(0.55 0.22 25); }
.k10-urg[data-tone="warn"]    { color: oklch(0.48 0.17 50); font-weight: 600; }
.k10-urg[data-tone="warn"] .k10-urg__ico { color: oklch(0.58 0.18 50); }
.k10-urg[data-tone="caution"] { color: oklch(0.46 0.14 85); }
.k10-urg[data-tone="caution"] .k10-urg__ico { color: oklch(0.56 0.15 85); }
.k10-urg[data-tone="info"]    { color: oklch(0.42 0.13 240); }
.k10-urg[data-tone="info"] .k10-urg__ico { color: oklch(0.52 0.13 240); }
.k10-urg[data-tone="soft"]    { color: oklch(0.48 0.015 260); }

/* ---------- META (cliente, processo) ---------- */
.k10-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.k10-meta__item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 12px;
  line-height: 1.3;
  color: oklch(0.40 0.012 260);
  min-width: 0;
}
.k10-meta__item svg {
  width: 12px; height: 12px;
  flex-shrink: 0;
  color: oklch(0.62 0.012 260);
}
.k10-meta__txt {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.k10-meta__item--proc .k10-meta__txt {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: -0.01em;
  color: oklch(0.44 0.01 260);
}

/* ---------- SUBTASKS PROGRESS ---------- */
.k10-subs {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.k10-subs__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.k10-subs__lbl {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: oklch(0.58 0.012 260);
}
.k10-subs__bar {
  flex: none;
  height: 3px;
  border-radius: 999px;
  background: oklch(0.94 0.006 260);
  overflow: hidden;
}
.k10-subs__bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: oklch(0.18 0.008 260);
  transition: width 320ms cubic-bezier(0.16, 1, 0.3, 1);
}
.k10-subs__txt {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 500;
  color: oklch(0.55 0.012 260);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* ---------- PRIO CHIP discreto ---------- */
.k10-pchip {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 3px;
  background: transparent;
  border: 1px solid oklch(0.90 0.01 260);
  color: oklch(0.48 0.015 260);
  line-height: 1.4;
}
.k10-pchip[data-prio="urgente"],
.k10-pchip[data-prio="critica"] {
  color: oklch(0.48 0.20 25);
  border-color: oklch(0.86 0.06 25);
}
.k10-pchip[data-prio="alta"] {
  color: oklch(0.50 0.15 50);
  border-color: oklch(0.88 0.05 50);
}

/* ---------- CLIENTE (obrigatório, destaque) ---------- */
.k10-cliente {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  margin-top: -2px;
  background: oklch(0.98 0.004 260);
  border: 1px solid oklch(0.93 0.006 260);
  border-radius: 6px;
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: oklch(0.22 0.012 260);
  line-height: 1.3;
  min-width: 0;
  letter-spacing: -0.005em;
}
.k10-cliente svg {
  width: 12px; height: 12px;
  flex-shrink: 0;
  color: oklch(0.48 0.012 260);
}
.k10-cliente__name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.k10-cliente--empty {
  background: transparent;
  border-style: dashed;
  border-color: oklch(0.90 0.008 260);
}
.k10-cliente--empty .k10-cliente__name {
  font-weight: 400;
  font-style: italic;
  color: oklch(0.58 0.012 260);
}
.k10-cliente--empty svg { color: oklch(0.70 0.012 260); }

/* ---------- DESC preview ---------- */
.k10-desc {
  margin: 0;
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 12px;
  line-height: 1.45;
  color: oklch(0.48 0.012 260);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

/* ---------- DATELINE (data + urgência em linha) ---------- */
.k10-dateline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  background: oklch(0.985 0.003 260);
  border: 1px solid oklch(0.94 0.006 260);
  border-radius: 6px;
}
.k10-dateline__date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  color: oklch(0.30 0.012 260);
  letter-spacing: -0.005em;
}
.k10-dateline__date svg {
  width: 11px; height: 11px;
  color: oklch(0.58 0.012 260);
  flex-shrink: 0;
}
.k10-dateline__urg {
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: oklch(0.50 0.015 260);
  white-space: nowrap;
  letter-spacing: 0;
}
.k10-dateline:has(.k10-dateline__urg[data-tone="danger"]) {
  background: oklch(0.98 0.024 25);
  border-color: oklch(0.90 0.05 25);
}
.k10-dateline__urg[data-tone="danger"]  { color: oklch(0.46 0.20 25); font-weight: 600; }
.k10-dateline:has(.k10-dateline__urg[data-tone="warn"]) {
  background: oklch(0.98 0.026 50);
  border-color: oklch(0.91 0.05 50);
}
.k10-dateline__urg[data-tone="warn"]    { color: oklch(0.48 0.17 50); font-weight: 600; }
.k10-dateline__urg[data-tone="caution"] { color: oklch(0.46 0.14 85); }
.k10-dateline__urg[data-tone="info"]    { color: oklch(0.42 0.13 240); }
.k10-dateline__urg[data-tone="soft"]    { color: oklch(0.52 0.012 260); }

/* ---------- TAGS ---------- */
.k10-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.k10-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 500;
  color: oklch(0.48 0.015 260);
  background: oklch(0.97 0.005 260);
  border: 1px solid oklch(0.93 0.005 260);
  border-radius: 3px;
  letter-spacing: 0;
  line-height: 1.5;
}
.k10-tag--more {
  font-style: normal;
  color: oklch(0.55 0.012 260);
  background: transparent;
  border-style: dashed;
}

/* ---------- RESPONSÁVEL (avatar + nome) ---------- */
.k10-resp {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.k10-resp__av {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  font-family: "Inter Tight", "Inter", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.k10-resp__av--empty {
  border: 1.2px dashed oklch(0.88 0.008 260);
  background: transparent;
}
.k10-resp__name {
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  color: oklch(0.30 0.012 260);
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.k10-resp--empty .k10-resp__name {
  color: oklch(0.60 0.012 260);
  font-style: italic;
  font-weight: 400;
}

/* ---------- FOOTER ---------- */
.k10-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  margin-top: 2px;
  border-top: 1px solid oklch(0.95 0.005 260);
  min-height: 22px;
}
.k10-card__left  { display: flex; align-items: center; min-width: 0; }
.k10-card__right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.k10-avstack { display: flex; align-items: center; }
.k10-av {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  font-family: "Inter Tight", "Inter", sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-left: -5px;
  border: 1.5px solid #fff;
  text-transform: uppercase;
}
.k10-av:first-child { margin-left: 0; }
.k10-av--more {
  background: oklch(0.94 0.006 260);
  color: oklch(0.42 0.015 260);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9px;
}
.k10-av-empty {
  display: inline-block;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.2px dashed oklch(0.88 0.008 260);
  background: transparent;
}

/* ---------- CHIPS (SLA, anexos, comentários — minimalistas) ---------- */
.k10-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0;
  background: transparent;
  color: oklch(0.50 0.012 260);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0;
}
.k10-chip svg { width: 11px; height: 11px; stroke-width: 1.8; }
.k10-chip--sla { color: oklch(0.45 0.015 260); }

/* ---------- HOVER ACTIONS ---------- */
.k10-card__actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 3px;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 140ms ease, transform 140ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  padding: 3px;
  background: oklch(1 0 0 / 0.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 8px;
}
.k10-card:hover .k10-card__actions,
.k10-card:focus-within .k10-card__actions {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.k10-act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  padding: 0;
  background: #ffffff;
  border: 1px solid oklch(0.92 0.008 260);
  border-radius: 6px;
  color: oklch(0.40 0.014 260);
  cursor: pointer;
  transition: all 120ms ease;
}
.k10-act svg { width: 12px; height: 12px; stroke-width: 2; }
.k10-act:hover {
  background: oklch(0.16 0.008 260);
  border-color: oklch(0.16 0.008 260);
  color: #ffffff;
}
.k10-act:focus-visible {
  outline: 2px solid oklch(0.55 0.17 260);
  outline-offset: 2px;
}

/* ---------- EMPTY STATE ---------- */
.k10-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 14px;
  text-align: center;
  border: 1px dashed oklch(0.91 0.008 260);
  border-radius: 10px;
  gap: 10px;
  background: transparent;
  list-style: none;
}
.k10-empty__icon { color: oklch(0.80 0.012 260); }
.k10-empty__icon svg { width: 26px; height: 26px; }
.k10-empty__msg {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: oklch(0.56 0.015 260);
  margin: 0;
}
.k10-empty__add {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid oklch(0.90 0.008 260);
  color: oklch(0.38 0.014 260);
  cursor: pointer;
  transition: all 120ms ease;
}
.k10-empty__add:hover {
  background: oklch(0.16 0.008 260);
  color: #fff;
  border-color: oklch(0.16 0.008 260);
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  .k10-card, .k10-card__actions, .k10-subs__bar > span,
  .k10-act, .k10-col, .k10-col__add {
    transition: none !important;
  }
}

/* ---------- NEUTRALIZAR REGRAS LEGACY ---------- */
.kanban-column .k10-card,
.k10-col .k10-card,
.k10-card[data-task-id] {
  min-height: 0;
  min-width: 0;
  margin: 0;
}
.k10-list.kanban-column {
  background: transparent !important;
  padding: 4px 10px 12px !important;
  gap: 8px !important;
  border: none !important;
  min-width: 0 !important;
}
