/* Stylesheet: Fieldservice Kanban board */

.kanban-board {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  overflow-x: auto;
}

.kanban-board::-webkit-scrollbar {
  height: 8px;
}

.kanban-board::-webkit-scrollbar-thumb {
  background-color: rgba(33, 37, 41, 0.25);
  border-radius: 999px;
}

.kanban-column {
  background: #f8f9fa;
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  min-width: 260px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  max-height: 100%;
}

.kanban-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.kanban-column-header .status-label {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.kanban-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
  font-weight: 600;
  font-size: 0.75rem;
}

.kanban-cards {
  flex: 1;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 120px;
}

.kanban-card {
  background: #ffffff;
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 18px -12px rgba(33, 37, 41, 0.25);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  cursor: grab;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.kanban-card:active {
  cursor: grabbing;
}

.kanban-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 20px -15px rgba(33, 37, 41, 0.35);
}

.kanban-card-ghost {
  opacity: 0.45;
  border-style: dashed;
}

.kanban-card-drag {
  opacity: 0.6;
}

.kanban-card .card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
}

.kanban-card .card-meta strong {
  font-size: 0.9rem;
}

.kanban-card .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.kanban-card .badge-today {
  background: #ffc107;
  color: #212529;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.kanban-card .badge-today i {
  font-size: 0.75rem;
}

.kanban-empty-state {
  color: rgba(33, 37, 41, 0.45);
  background: rgba(248, 249, 250, 0.8);
  border: 1px dashed rgba(0, 0, 0, 0.08);
  border-radius: 0.75rem;
  padding: 1.25rem;
  text-align: center;
  font-size: 0.9rem;
}

@media (max-width: 992px) {
  .kanban-board {
    flex-direction: column;
  }

  .kanban-column {
    min-width: auto;
  }
}
