/* ============================================================
   CARD DE ORDEM DE SERVIÇO
   ============================================================ */

.os-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 12px;
  cursor: grab;
  transition: box-shadow var(--duration), transform var(--duration), border-color var(--duration);
  animation: fadeIn 200ms var(--ease);
  position: relative;
  overflow: hidden;
  user-select: none;
}

.os-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

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

.os-card.dragging {
  opacity: 0.5;
  box-shadow: var(--shadow-lg);
}

/* Barra colorida lateral (cor do técnico) */
.os-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--tec-color, var(--text-muted));
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

/* Linha topo do card */
.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.card-os-id {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.card-tipo {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 99px;
  background: var(--bg-col);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  white-space: nowrap;
}

/* Nome do cliente */
.card-cliente {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Plano PPPOE */
.card-plano {
  font-size: 11px;
  color: var(--brand-light);
  font-weight: 500;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Endereço */
.card-endereco {
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 6px;
  line-height: 1.4;
}

.card-endereco .icon { flex-shrink: 0; margin-top: 1px; }

/* Linha de infos: telefone + taxa */
.card-infos {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.card-info-item {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: var(--text-secondary);
}

/* Tag de taxa */
.taxa-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 99px;
}

.taxa-sim { background: #FEE2E2; color: var(--status-cancelada); }
.taxa-nao { background: #DCFCE7; color: var(--status-concluida); }

/* Observação */
.card-obs {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-col);
  border-radius: var(--radius-sm);
  padding: 5px 8px;
  line-height: 1.4;
  border-left: 2px solid var(--border-strong);
  margin-bottom: 8px;
  font-style: italic;
}

/* Rodapé do card */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--bg-col);
}

.card-tecnico {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
}

.tec-avatar {
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.card-data {
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Botões de ação rápida (aparecem no hover) */
.card-actions {
  display: none;
  gap: 4px;
  position: absolute;
  top: 8px; right: 8px;
}

.os-card:hover .card-actions { display: flex; }

.card-action-btn {
  width: 24px; height: 24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration);
}

.card-action-btn:hover {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}

/* Cores dos técnicos */
.tec-1 { --tec-color: var(--tec-1); }
.tec-2 { --tec-color: var(--tec-2); }
.tec-3 { --tec-color: var(--tec-3); }
.tec-4 { --tec-color: var(--tec-4); }
.tec-5 { --tec-color: var(--tec-5); }
.tec-6 { --tec-color: var(--tec-6); }
.tec-7 { --tec-color: var(--tec-7); }

/* Equipe no rodapé do card */
.card-equipe {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
}

.eq-avatar-sm {
  width: 20px; height: 20px;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; font-weight: 700; color: white;
  flex-shrink: 0;
}

/* Barra lateral usa cor da equipe */
.os-card::before {
  background: var(--eq-color, var(--text-muted));
}
