/* ==========================================================================
   ЕДИНАЯ КАНБАН-ДОСКА (ИСПОЛНЕНИЕ И ЮРОТДЕЛ)
   ========================================================================== */
.kanban-board {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 6px 2px 14px;
  min-height: 520px;
  align-items: flex-start;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.kanban-column {
  flex: 0 0 280px;
  min-width: 280px;
  max-width: 280px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 310px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  scroll-snap-align: start;
}

.kanban-col-head {
  padding: 12px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  border-radius: 14px 14px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.kanban-col-head strong {
  font-size: 12.5px;
  color: var(--ink);
  font-weight: 750;
  line-height: 1.25;
}

.kanban-col-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 99px;
  background: var(--pale-green);
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
}

.kanban-cards-list {
  padding: 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 80px;
}

.kanban-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: left;
}

.kanban-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(23, 119, 101, 0.12);
  border-color: var(--teal);
}

.kanban-card-title {
  font-size: 13px;
  font-weight: 750;
  color: var(--ink);
  line-height: 1.3;
}

.kanban-card-subline { font-size: 11px; color: var(--muted); }
.kanban-card-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 2px; }

.kanban-tag {
  font-size: 10px;
  font-weight: 750;
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--soft);
  color: var(--muted);
}
.kanban-tag.service { background: var(--pale-blue); color: var(--blue); }
.kanban-tag.ready { background: var(--pale-green); color: var(--green); border: 1px solid var(--line); }
.kanban-tag.blocker { background: var(--pale-red); color: var(--red); border: 1px solid var(--line); }

.kanban-card-action {
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--muted);
  background: var(--soft);
  border-left: 3px solid var(--teal);
  padding: 6px 8px;
  border-radius: 0 6px 6px 0;
}

.kanban-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 2px;
  padding-top: 6px;
  border-top: 1px dashed var(--line);
}
.kanban-card-footer .overdue { color: var(--red); font-weight: 800; }
.kanban-empty-col { padding: 24px 10px; text-align: center; color: var(--muted); font-size: 11.5px; }