/* ============================================================
   CENTRAL DE CONSULTAS — estilos (prefixo cq- pra não colidir
   com nada existente no admin-styles.css).
   ============================================================ */

.cq-fab {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: #1e3a5f;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease;
}
.cq-fab:hover { background: #274b7a; transform: scale(1.06); }

.cq-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9995;
  padding: 20px;
}
.cq-overlay.cq-visible { display: flex; }

.cq-modal {
  width: 100%;
  max-width: 880px;
  max-height: 86vh;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cq-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #1e3a5f;
  color: #fff;
}
.cq-modal-header h4 { margin: 0; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.cq-close-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
}
.cq-close-btn:hover { opacity: 1; }

.cq-modal-body {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
}

.cq-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px 16px 0;
  border-bottom: 1px solid #e5e7eb;
}
.cq-tab-btn {
  border: none;
  background: transparent;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cq-tab-btn:hover { color: #1e3a5f; background: #f1f5f9; }
.cq-tab-btn.cq-active { color: #1e3a5f; background: #eef2ff; border-bottom: 2px solid #1e3a5f; }

.cq-panes { flex: 1; overflow-y: auto; padding: 20px; }
.cq-pane { display: flex; flex-direction: column; gap: 14px; }

.cq-search-row { display: flex; gap: 8px; }
.cq-search-row input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
}
.cq-search-btn {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: #1e3a5f;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.cq-search-btn:hover { background: #274b7a; }

.cq-fipe-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.cq-fipe-filters select {
  flex: 1;
  min-width: 160px;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
}

.cq-result { min-height: 20px; }
.cq-loading, .cq-error { font-size: 13px; color: #64748b; }
.cq-error { color: #dc2626; }

.cq-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 16px;
  background: #f8fafc;
}
.cq-card-highlight { background: #eef7ee; border-color: #bfe3bf; }
.cq-fipe-valor { font-size: 26px; font-weight: 800; color: #166534; margin-bottom: 6px; }

.cq-card-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 13px;
}
.cq-card-row:last-child { border-bottom: none; }
.cq-card-row span { color: #64748b; }
.cq-card-row strong { color: #0f172a; text-align: right; }
.cq-card-row-block { flex-direction: column; align-items: flex-start; }

.cq-status-ok { color: #16a34a !important; }
.cq-status-warn { color: #dc2626 !important; }

.cq-socios-list { list-style: none; padding: 0; margin: 6px 0 0; width: 100%; }
.cq-socios-list li {
  font-size: 13px;
  padding: 4px 0;
  color: #0f172a;
}
.cq-socios-list li span { color: #94a3b8; font-size: 12px; }

.cq-blocked {
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  color: #64748b;
}
.cq-blocked i { font-size: 34px; color: #cbd5e1; margin-bottom: 10px; }
.cq-blocked h5 { margin: 0 0 8px; color: #334155; font-size: 15px; }
.cq-blocked p { max-width: 420px; margin: 0 auto; font-size: 13px; line-height: 1.5; }

@media (max-width: 640px) {
  .cq-modal { max-height: 92vh; }
  .cq-fipe-filters { flex-direction: column; }
  .cq-fipe-filters select { min-width: 0; }
}
