/* Reportes de preguntas: reconocimiento, aviso del dictamen y mesa de revisión.
   Usa clases propias porque tailwind.css está precompilado. */
.pm-contributor-badge {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-top: 0.75rem;
    padding: 0.625rem 0.875rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.1);
    color: #a7f3d0;
    font-size: 0.75rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.pm-contributor-badge .pm-cb-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 1.75rem; height: 1.75rem; border-radius: 999px; background: rgba(16, 185, 129, 0.2); font-size: 0.875rem; }
.pm-contributor-badge strong { color: #fff; font-weight: 800; }
.pm-contributor-badge .block { display: block; }
.pm-contributor-badge .block.text-emerald-400 { font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #34d399; }

/* ---- Dashboard: aviso de dictamen ---- */
.pm-report-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(16, 185, 129, 0.35);
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.14), rgba(250, 204, 21, 0.08));
    color: #d1fae5;
    font-size: 0.8rem;
}
.pm-report-banner.is-rejected {
    border-color: rgba(99, 102, 241, 0.4);
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.16), rgba(56, 189, 248, 0.07));
    color: #e0e7ff;
}
.pm-report-banner.hidden { display: none; }
.pm-report-banner-text { flex: 1 1 14rem; min-width: 0; line-height: 1.4; font-weight: 600; }
.pm-report-banner-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.pm-btn:hover { background: rgba(255, 255, 255, 0.12); }
.pm-btn:disabled { opacity: 0.55; cursor: wait; }
.pm-btn.is-primary { background: #4f46e5; border-color: #6366f1; }
.pm-btn.is-primary:hover { background: #6366f1; }
.pm-btn.is-success { background: #059669; border-color: #10b981; }
.pm-btn.is-success:hover { background: #10b981; }

/* ---- Tarjetas de reporte (Mensajes del médico) ---- */
.pm-report-cards { display: flex; flex-direction: column; gap: 0.6rem; }
.pm-report-cards-title { font-size: 10px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: #94a3b8; }
.pm-report-card {
    border-radius: 0.9rem;
    border: 1px solid rgba(99, 102, 241, 0.3);
    background: rgba(30, 41, 59, 0.7);
    padding: 0.75rem;
    font-size: 0.72rem;
    color: #cbd5e1;
}
.pm-report-card.is-approved { border-color: rgba(16, 185, 129, 0.4); }
.pm-report-card.is-pending { border-color: rgba(148, 163, 184, 0.25); }
.pm-report-card h4 { font-size: 0.75rem; font-weight: 800; color: #fff; margin-bottom: 0.2rem; }
.pm-report-card p { line-height: 1.45; }
.pm-report-card .pm-report-meta { font-size: 10px; color: #64748b; margin-top: 0.35rem; }
.pm-report-card .pm-btn { margin-top: 0.5rem; }

/* ---- Modal de resolución del médico ---- */
.rp-modal {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(6px);
}
.rp-modal.hidden { display: none; }
.rp-modal-card {
    width: 100%;
    max-width: 30rem;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #0f172a;
    padding: 1.25rem;
    color: #e2e8f0;
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}
.rp-modal-card h3 { font-size: 1.05rem; font-weight: 900; color: #fff; }
.pm-verdict-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 900;
    border: 1px solid rgba(16, 185, 129, 0.45);
    background: rgba(16, 185, 129, 0.14);
    color: #6ee7b7;
}
.pm-verdict-badge.is-rejected { border-color: rgba(99, 102, 241, 0.5); background: rgba(99, 102, 241, 0.16); color: #c7d2fe; }
.pm-block { margin-top: 0.9rem; }
.pm-block-label { font-size: 10px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: #94a3b8; margin-bottom: 0.3rem; }
.pm-block-body { border-radius: 0.8rem; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(30, 41, 59, 0.55); padding: 0.7rem 0.8rem; font-size: 0.8rem; line-height: 1.5; white-space: pre-wrap; }
.pm-reward-pill { display: inline-flex; margin-top: 0.7rem; padding: 0.3rem 0.7rem; border-radius: 999px; font-size: 0.72rem; font-weight: 900; background: rgba(250, 204, 21, 0.14); border: 1px solid rgba(250, 204, 21, 0.45); color: #fde68a; }
.rp-modal-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.1rem; }
.rp-modal-actions .pm-btn { flex: 1 1 10rem; padding: 0.65rem 0.9rem; font-size: 0.78rem; }

/* ---- Admin: mesa de revisión ---- */
.pm-review-modal { align-items: flex-start; overflow-y: auto; }
.pm-review-card { max-width: 64rem; margin: 1rem auto; max-height: none; }
.pm-review-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 900px) { .pm-review-grid { grid-template-columns: 1.15fr 1fr; } }
.pm-review-section { border-radius: 1rem; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(15, 23, 42, 0.7); padding: 1rem; }
.pm-review-section h4 { font-size: 0.8rem; font-weight: 900; color: #fff; margin-bottom: 0.75rem; }
.pm-field { display: block; margin-bottom: 0.7rem; }
.pm-field > span { display: block; font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #94a3b8; margin-bottom: 0.25rem; }
.pm-field input[type="text"], .pm-field textarea, .pm-field select {
    width: 100%;
    border-radius: 0.7rem;
    border: 1px solid #334155;
    background: #0b1220;
    color: #fff;
    padding: 0.55rem 0.7rem;
    font-size: 0.8rem;
    outline: none;
}
.pm-field input:focus, .pm-field textarea:focus, .pm-field select:focus { border-color: #6366f1; }
.pm-field textarea { resize: vertical; min-height: 4.5rem; line-height: 1.45; }
.pm-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.pm-option-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.45rem; }
.pm-option-row label.pm-radio { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 2.1rem; height: 2.1rem; border-radius: 0.6rem; border: 1px solid #334155; background: #0b1220; font-size: 0.75rem; font-weight: 900; color: #94a3b8; cursor: pointer; }
.pm-option-row input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.pm-option-row input[type="radio"]:checked + label.pm-radio { background: #059669; border-color: #34d399; color: #fff; }
.pm-option-row input[type="text"] { flex: 1; min-width: 0; border-radius: 0.7rem; border: 1px solid #334155; background: #0b1220; color: #fff; padding: 0.5rem 0.65rem; font-size: 0.8rem; outline: none; }
.pm-option-row.is-correct input[type="text"] { border-color: rgba(52, 211, 153, 0.7); background: rgba(16, 185, 129, 0.08); }
.pm-verdict-cards { display: grid; grid-template-columns: 1fr; gap: 0.6rem; margin-bottom: 0.8rem; }
.pm-verdict-card { display: block; cursor: pointer; }
.pm-verdict-card input { position: absolute; opacity: 0; pointer-events: none; }
.pm-verdict-card > div { border-radius: 0.9rem; border: 2px solid #334155; background: rgba(15, 23, 42, 0.8); padding: 0.8rem 0.9rem; transition: border-color 0.15s, background 0.15s; }
.pm-verdict-card strong { display: block; font-size: 0.82rem; color: #fff; }
.pm-verdict-card small { display: block; margin-top: 0.2rem; font-size: 0.7rem; color: #94a3b8; line-height: 1.4; }
.pm-verdict-card input:checked + div.is-approve { border-color: #10b981; background: rgba(16, 185, 129, 0.13); }
.pm-verdict-card input:checked + div.is-clarify { border-color: #6366f1; background: rgba(99, 102, 241, 0.15); }
.pm-verdict-card input:focus-visible + div { outline: 2px solid #fbbf24; outline-offset: 2px; }
.pm-check { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.75rem; color: #cbd5e1; margin-bottom: 0.6rem; line-height: 1.4; }
.pm-check input { margin-top: 0.15rem; }
.pm-report-info { display: grid; gap: 0.35rem; font-size: 0.75rem; color: #cbd5e1; }
.pm-report-info b { color: #fff; }
.pm-quote { border-left: 3px solid #f87171; padding: 0.4rem 0.7rem; background: rgba(239, 68, 68, 0.08); border-radius: 0 0.6rem 0.6rem 0; font-size: 0.8rem; color: #fecaca; white-space: pre-wrap; }

/* ---- Admin: lista de reportes ---- */
.pm-report-tabs { display: inline-flex; gap: 0.35rem; padding: 0.25rem; border-radius: 0.9rem; background: #0f172a; border: 1px solid #1e293b; }
.pm-report-tab { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.9rem; border-radius: 0.7rem; font-size: 0.75rem; font-weight: 800; color: #94a3b8; border: 0; background: transparent; cursor: pointer; }
.pm-report-tab.is-active { background: #4f46e5; color: #fff; }
.pm-count-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 1.15rem; height: 1.15rem; padding: 0 0.3rem; border-radius: 999px; background: #ef4444; color: #fff; font-size: 10px; font-weight: 900; }
.pm-count-pill.hidden { display: none; }
.pm-report-list { display: flex; flex-direction: column; gap: 0.75rem; }
.pm-report-row { border-radius: 1rem; border: 1px solid #1e293b; background: #0f172a; padding: 1rem; display: grid; gap: 0.75rem; }
@media (min-width: 900px) { .pm-report-row { grid-template-columns: 1fr 1.2fr auto; } }
.pm-report-row .pm-date { font-size: 11px; font-weight: 800; color: #fbbf24; }
.pm-report-row .pm-who { font-size: 0.8rem; font-weight: 800; color: #fff; }
.pm-report-row .pm-mail { font-size: 10px; color: #64748b; word-break: break-all; }
.pm-tag { display: inline-flex; margin-top: 0.3rem; padding: 0.15rem 0.5rem; border-radius: 999px; font-size: 10px; font-weight: 800; background: rgba(248, 113, 113, 0.14); color: #fca5a5; border: 1px solid rgba(248, 113, 113, 0.3); }
.pm-tag.is-ok { background: rgba(16, 185, 129, 0.14); color: #6ee7b7; border-color: rgba(16, 185, 129, 0.35); }
.pm-tag.is-info { background: rgba(99, 102, 241, 0.16); color: #c7d2fe; border-color: rgba(99, 102, 241, 0.35); }
.pm-tag.is-muted { background: rgba(100, 116, 139, 0.16); color: #cbd5e1; border-color: rgba(100, 116, 139, 0.3); }
.pm-report-actions { display: flex; flex-direction: column; gap: 0.45rem; min-width: 11rem; }
.pm-report-empty { padding: 2rem 1rem; text-align: center; color: #64748b; font-size: 0.85rem; border: 1px dashed #1e293b; border-radius: 1rem; }

.pm-check.hidden, .pm-count-pill.hidden, .pm-report-banner.hidden, .rp-modal.hidden { display: none; }
