/* Estilos para hacer las tarjetas de consultas más compactas */

.ticket-card {
  background: white;
  border-radius: 8px;
  padding: 10px 12px !important;  /* Reducido de 16px a 10px */
  margin-bottom: 8px !important;  /* Reducido de 12px a 8px */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
  border-left: 3px solid #3b82f6;
}

.ticket-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.ticket-card.urgent {
  border-left-color: #ef4444;
}

.ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px !important;  /* Reducido de 12px a 6px */
  gap: 8px;
}

.ticket-category {
  font-size: 0.7rem !important;  /* Reducido de 0.8rem */
  font-weight: 600;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ticket-category i {
  font-size: 0.7rem !important;
}

.ticket-body {
  margin-bottom: 6px !important;  /* Reducido de 10px a 6px */
}

.ticket-title {
  font-size: 0.85rem !important;  /* Reducido de 0.95rem */
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 4px 0 !important;  /* Reducido margen inferior */
  line-height: 1.3 !important;  /* Más compacto */
}

.ticket-description {
  font-size: 0.75rem !important;  /* Reducido de 0.85rem */
  color: #6b7280;
  margin: 0 !important;
  line-height: 1.3 !important;  /* Más compacto */
  display: -webkit-box;
  -webkit-line-clamp: 2;  /* Máximo 2 líneas */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ticket-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px !important;  /* Reducido de 10px */
  padding-top: 6px !important;  /* Reducido de 8px */
  border-top: 1px solid #e5e7eb;
}

.ticket-date {
  font-size: 0.7rem !important;  /* Reducido de 0.75rem */
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ticket-date i {
  font-size: 0.65rem !important;
}

.ticket-location {
  margin-top: 6px !important;  /* Reducido de 8px */
}

.location-info {
  display: flex;
  align-items: center;
  gap: 6px !important;  /* Reducido de 8px */
  font-size: 0.7rem !important;  /* Reducido de 0.75rem */
  color: #6b7280;
}

.location-info i {
  font-size: 0.65rem !important;
  color: #3b82f6;
}

.location-info span {
  white-space: nowrap;
}

.ticket-actions {
  display: flex;
  gap: 4px;
}

.ticket-delete-btn {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 4px 6px !important;  /* Reducido padding */
  border-radius: 4px;
  transition: all 0.2s ease;
  font-size: 0.7rem !important;
}

.ticket-delete-btn:hover {
  background: #fee2e2;
}

.urgent-badge {
  background: #ef4444;
  color: white;
  padding: 2px 6px !important;  /* Reducido padding */
  border-radius: 4px;
  font-size: 0.65rem !important;  /* Reducido tamaño */
  display: flex;
  align-items: center;
  gap: 3px;
}

.urgent-badge i {
  font-size: 0.65rem !important;
}

.ticket-number-label {
  font-size: 0.7rem !important;  /* Reducido de 0.75rem */
  font-weight: 700;
  color: #3b82f6;
  font-family: 'Courier New', monospace;
  background: rgba(59, 130, 246, 0.1);
  padding: 2px 8px !important;  /* Reducido padding */
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Ajustar altura de las columnas para que se vean más consultas */
.ticket-list {
  max-height: calc(100vh - 280px) !important;  /* Aprovecha mejor el espacio vertical */
  overflow-y: auto;
}

/* Scroll más delgado y elegante */
.ticket-list::-webkit-scrollbar {
  width: 6px;
}

.ticket-list::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 3px;
}

.ticket-list::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.ticket-list::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}
