/* =============================================================
   resultados-fullcredit.css
   Estilos complementarios para la vista de solo lectura de
   resultados. Comparte paleta con encuesta-fullcredit.css.
   Scope: #fc-results y .fc-results-* para evitar conflictos.
   ============================================================= */

/* ─── Variables (heredadas del scope del componente) ───────── */

#fc-results, .fc-modal {
  --fc-accent: #ff7b56;
  --fc-hot: #ff3800;
  --fc-row-odd: #ffffff;
  --fc-row-even: #ffe4dc;
  --fc-row-hover: #fdd5c9;
  --fc-row-cat: #f2bd9e;
  --fc-comment-bg: #ffec4c;
  --fc-font: 'Roboto', sans-serif;
  --fc-size: 11px;
  --fc-color: #000000;
}

/* ─── Tipografía base ──────────────────────────────────────── */

#fc-results, #fc-results * {
  font-family: var(--fc-font) !important;
  font-size: var(--fc-size) !important;
  color: var(--fc-color) !important;
}

/* ─── Contador ─────────────────────────────────────────────── */

#fc-results #results-counter {
  color: #888888 !important;
}

/* ─── Tabla ────────────────────────────────────────────────── */

#fc-results #results-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

#fc-results #results-table thead th {
  font-weight: 700;
  background: #f5f5f5;
  border-bottom: 2px solid var(--fc-accent);
  padding: 8px 10px;
  white-space: nowrap;
}

#fc-results #results-table tbody tr.row-odd td {
  background-color: var(--fc-row-odd);
}

#fc-results #results-table tbody tr.row-even td {
  background-color: var(--fc-row-even);
}

#fc-results #results-table tbody tr.row-category td {
  background-color: var(--fc-row-cat);
  font-weight: 700;
}

#fc-results #results-table tbody tr.row-odd:hover td, #fc-results #results-table tbody tr.row-even:hover td {
  background-color: var(--fc-row-hover) !important;
  transition: background-color 0.15s ease;
}

#fc-results #results-table tbody td {
  padding: 6px 10px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* ─── Columnas ─────────────────────────────────────────────── */

#fc-results .col-num {
  width: 36px;
  text-align: center;
  font-weight: 700;
  color: var(--fc-accent) !important;
}

#fc-results tr.row-category .col-num {
  color: transparent !important;
}

#fc-results .col-question {
  line-height: 1.5;
}

#fc-results .col-radio {
  width: 130px;
  white-space: nowrap;
}

#fc-results .col-icon {
  width: 36px;
  text-align: center;
  padding: 3px 6px !important;
}

#fc-results .col-icon .bi {
  font-size: 13px !important;
  color: var(--fc-accent) !important;
}

#fc-results tr.row-category .col-radio, #fc-results tr.row-category .col-icon {
  background-color: var(--fc-row-cat);
}

/* ─── Indicadores de respuesta (solo lectura) ────────────────
   Reemplazan a los radio buttons. Son badges visuales que
   muestran la respuesta guardada sin permitir interacción.
   ──────────────────────────────────────────────────────────── */

#fc-results .answer-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 11px !important;
  border: 2px solid transparent;
}

#fc-results .answer-badge.badge-si {
  background-color: var(--fc-accent);
  border-color: var(--fc-accent);
  color: #ffffff !important;
}

#fc-results .answer-badge.badge-no {
  background-color: transparent;
  border-color: var(--fc-hot);
  color: var(--fc-hot) !important;
}

#fc-results .answer-badge.badge-pending {
  background-color: transparent;
  border-color: #cccccc;
  color: #aaaaaa !important;
  font-weight: 400;
  font-style: italic;
}

/* ─── Botón de comentario (solo lectura) ───────────────────── */

#fc-results .comment-view-btn {
  background: transparent;
  border: none;
  border-radius: 4px;
  padding: 3px 5px;
  cursor: default;
  line-height: 1;
}

/* Sin comentario — ícono en gris neutro, no clickeable */

#fc-results .comment-view-btn .bi {
  font-size: 15px !important;
  color: #cccccc !important;
}

/* Con comentario — fondo amarillo, ícono rojo, cursor pointer */

#fc-results .comment-view-btn.has-comment {
  background-color: var(--fc-comment-bg);
  cursor: pointer;
}

#fc-results .comment-view-btn.has-comment .bi {
  color: var(--fc-hot) !important;
}

#fc-results .comment-view-btn.has-comment:hover {
  background-color: #f5e000;
}

/* ─── Modal de solo lectura ────────────────────────────────── */

.fc-modal #result-modal-question-ref {
  color: var(--fc-accent) !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.fc-modal #result-modal-question-text {
  color: #555555 !important;
  margin-bottom: 12px;
  line-height: 1.5;
}

.fc-modal #result-modal-comment-box {
  background: #fffbea;
  border: 1px solid #ffec4c;
  border-radius: 6px;
  padding: 10px 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  color: #333333 !important;
}

