/* =========================================================
   SWC PMO · activities.css — Sprint 8
   Filter bar com tabs por status + dropdowns + busca,
   tags de checklist na linha, painel checklist no modal.
========================================================= */

.atv-filterbar { gap: 12px !important; }

.atv-count {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 800;
  background: rgba(255, 255, 255, .06);
  color: #f1f5f9;
}
.hist-tab--on .atv-count { background: rgba(0, 0, 0, .25); }

.atv-col-progress { min-width: 140px; }

.atv-checklist-tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 800;
  color: #22d3ee;
  background: rgba(34, 211, 238, .10);
  border: 1px solid rgba(34, 211, 238, .25);
  margin-left: 4px;
}

/* ── modal: checklist editável ─────────────────────── */
.atv-modal { width: min(820px, 96vw); }

.atv-checklist-panel {
  margin: 12px 0;
  padding: 10px 12px;
  background: rgba(34, 211, 238, .04);
  border: 1px solid rgba(34, 211, 238, .15);
  border-radius: 10px;
}
.atv-checklist-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.atv-checklist-hd strong {
  color: #22d3ee;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.atv-checklist-hd .swm-btn { padding: 4px 10px; font-size: 11px; }

.atv-cl-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}
.atv-cl-row input[type="text"] {
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .08);
  color: #f1f5f9;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-family: inherit;
}
.atv-cl-row input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: #22d3ee;
  cursor: pointer;
}
.atv-cl-empty {
  color: #6b7280;
  font-size: 12px;
  font-style: italic;
  padding: 6px 0;
}

/* ──────────────────────────────────────────────────
   Sprint F · Kanban board (FASES Playbook V4 pg 6)
   ────────────────────────────────────────────────── */
.atv-vmode {
  display: inline-flex; background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08); border-radius: 8px;
  padding: 2px; margin-right: 6px;
}
.atv-vmode__btn {
  background: transparent; border: none; color: #94a3b8;
  padding: 6px 12px; font-size: 12px; cursor: pointer;
  border-radius: 6px; transition: all .15s;
}
.atv-vmode__btn:hover { color: #e8eaf0; }
.atv-vmode__btn.on { background: #f59e0b; color: #0f1117; font-weight: 600; }

.atv-kb {
  display: grid; grid-auto-flow: column; grid-auto-columns: 240px;
  gap: 10px; overflow-x: auto; padding: 14px 28px 28px;
  scrollbar-width: thin;
}
.atv-kb__col {
  display: flex; flex-direction: column; min-height: 320px;
  background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px; overflow: hidden;
}
.atv-kb__col-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; background: rgba(255,255,255,.03);
  border-left: 3px solid var(--c, #94a3b8);
}
.atv-kb__col-hd strong { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.atv-kb__count {
  background: rgba(255,255,255,.08); color: #e8eaf0;
  padding: 1px 8px; border-radius: 10px; font-size: 11px;
}
.atv-kb__col-meter {
  height: 3px; background: rgba(255,255,255,.04);
}
.atv-kb__col-meter i {
  display: block; height: 100%; transition: width .3s;
}
.atv-kb__list {
  flex: 1; padding: 8px; display: flex; flex-direction: column; gap: 8px;
  overflow-y: auto; min-height: 100px;
}
.atv-kb__list.over { background: rgba(245,158,11,.05); }
.atv-kb__empty {
  color: #4b5563; font-size: 11px; text-align: center; padding: 16px 0;
}

.atv-card {
  background: rgba(20,23,31,.7); border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px; padding: 10px 11px; cursor: grab; transition: all .15s;
}
.atv-card:hover { border-color: rgba(245,158,11,.3); transform: translateY(-1px); }
.atv-card.dragging { opacity: .4; cursor: grabbing; }

.atv-card__top {
  display: flex; gap: 6px; align-items: flex-start; margin-bottom: 6px;
}
.atv-card__pri {
  width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex-shrink: 0;
}
.atv-card__title {
  font-size: 12.5px; line-height: 1.3; color: #e8eaf0; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.atv-card__sys {
  font-size: 11px; color: #94a3b8; margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: .4px;
}
.atv-card__cl {
  margin: 6px 0; font-size: 11px; color: #94a3b8;
}
.atv-card__cl span { display: block; margin-bottom: 3px; }
.atv-card__bar {
  height: 3px; background: rgba(255,255,255,.06); border-radius: 2px;
}
.atv-card__bar i {
  display: block; height: 100%; background: #34d399; border-radius: 2px;
  transition: width .3s;
}

.atv-card__ft {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 6px; gap: 6px;
}
.atv-card__st {
  font-size: 10px; padding: 2px 8px; border-radius: 8px;
  text-transform: uppercase; letter-spacing: .4px;
}
.atv-card__due {
  font-size: 10px; color: #94a3b8;
}
.atv-card__due.late { color: #f87171; font-weight: 600; }
.atv-card__due.soon { color: #fbbf24; font-weight: 600; }
