/******* Do not edit this file *******
Woody Code Snippets CSS and JS
Saved: Mar 28 2026 | 15:37:42 */
/* ============================================================
   SISTEMA DE DENUNCIAS - CSS COMPARTIDO
   Pegar en Woody Snippets como: denuncias_css
   Compatible con: seguimiento-denuncia y panel-denuncias
   ============================================================ */

#rp-btn-cambiar-estado, #rp-btn-admin-responder, #rp-btn-enviar-msg{	  background-color: #1B3A6B;
	  color: #FFFFFF;}


#rp-btn-cambiar-estado:hover, #rp-btn-admin-responder:hover , #rp-btn-enviar-msg:hover{	  background-color: #FFFFFF;
	  color: #1B3A6B;}

.rp-form-busqueda .rp-btn-primary.rp-btn-full {
	 background-color: #1B3A6B;
	 color: #FFFFFF;
}

.rp-form-busqueda:hover .rp-btn-primary.rp-btn-full:hover {
	background-color: #FFFFFF;
	  color: #1B3A6B;
border: 2px solid #1B3A6B;
}

/* ── Variables de color ─────────────────────── */
/* Azul principal: #1B3A6B | Rojo: #D32F2F | Gris texto: #1A1A2E */

/* ── Reset básico ───────────────────────────── */
.rp-seguimiento-wrap,
.rp-admin-wrap {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #1A1A2E;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 0 40px;
}

.rp-seguimiento-wrap {
    max-width: 700px;
}

/* ── Cards ──────────────────────────────────── */
.rp-card {
    background: #FFFFFF;
    border: 1px solid #D8DDE8;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(27,58,107,0.07);
}

.rp-card-warning {
    border-color: #F6C842;
    background: #FFFBEA;
}

.rp-card-header {
    background: #1B3A6B;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.rp-card-header .rp-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.rp-card-header h2 {
    color: #FFFFFF;
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.rp-card-header p {
    color: #9EC5E8;
    margin: 4px 0 0;
    font-size: 14px;
}

.rp-card-header-simple {
    padding: 16px 20px 12px;
    border-bottom: 1px solid #EEF2F9;
}

.rp-card-header-simple h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #1B3A6B;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.rp-card-body {
    padding: 20px;
}

.rp-card-body-chat {
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* ── Formulario de búsqueda ─────────────────── */
.rp-busqueda-card .rp-card-body {
    padding: 28px;
}

.rp-form-busqueda {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ── Inputs y botones ───────────────────────── */
.rp-input {
    width: 100%;
    padding: 11px 16px;
    border: 1.5px solid #D8DDE8;
    border-radius: 8px;
    font-size: 14px;
    color: #1A1A2E;
    background: #FFFFFF;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.rp-input:focus {
    border-color: #1B3A6B;
    box-shadow: 0 0 0 3px rgba(27,58,107,0.1);
}

.rp-codigo-input {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 3px;
    text-align: center;
    font-family: monospace;
    text-transform: uppercase;
    max-width: 280px;
    margin: 0 auto;
}

.rp-textarea {
    width: 100%;
    padding: 11px 16px;
    border: 1.5px solid #D8DDE8;
    border-radius: 8px;
    font-size: 14px;
    color: #1A1A2E;
    background: #FFFFFF;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
    resize: vertical;
    min-height: 90px;
    transition: border-color 0.2s;
}

.rp-textarea:focus {
    border-color: #1B3A6B;
    box-shadow: 0 0 0 3px rgba(27,58,107,0.1);
}

.rp-select {
    padding: 8px 12px;
    border: 1.5px solid #D8DDE8;
    border-radius: 6px;
    font-size: 13px;
    color: #1A1A2E;
    background: #FFFFFF;
    cursor: pointer;
    font-family: inherit;
    outline: none;
}

.rp-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1A1A2E;
    margin-bottom: 8px;
}

.rp-label-sm {
    font-size: 12px;
    font-weight: 600;
    color: #4A5568;
}

.rp-hint {
    font-size: 12px;
    color: #718096;
    display: block;
}

/* ── Botones ────────────────────────────────── */
.rp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    font-family: inherit;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1;
}

.rp-btn-primary {
    background: #1B3A6B;
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(27,58,107,0.2);
}

.rp-btn-primary:hover {
    background: #122850;
    color: #FFFFFF;
}

.rp-btn-secondary {
    background: #EEF2F9;
    color: #1B3A6B;
    border: 1.5px solid #C5D3E8;
}

.rp-btn-secondary:hover {
    background: #D8E4F5;
}

.rp-btn-outline {
    background: transparent;
    color: #1B3A6B;
    border: 1.5px solid #1B3A6B;
}

.rp-btn-outline:hover {
    background: #EEF2F9;
}

.rp-btn-full {
    width: 100%;
}

.rp-btn-sm {
    padding: 7px 14px;
    font-size: 13px;
}

.rp-btn-filtro {
    background: #F7F9FC;
    color: #4A5568;
    border: 1.5px solid #D8DDE8;
    font-size: 13px;
    padding: 7px 14px;
}

.rp-btn-filtro.active {
    background: #1B3A6B;
    color: #FFFFFF;
    border-color: #1B3A6B;
}

/* ── Alertas ────────────────────────────────── */
.rp-alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
}

.rp-alert-error {
    background: #FDF0F0;
    color: #D32F2F;
    border: 1px solid #F5C6CB;
}

.rp-alert-success {
    background: #EAF7ED;
    color: #1E7E34;
    border: 1px solid #C3E6CB;
}

/* ── Badges y estados ───────────────────────── */
.rp-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.rp-badge-info {
    background: #D1ECF1;
    color: #0C5460;
}

.rp-badge-warning {
    background: #FFF3CD;
    color: #856404;
}

.rp-estado-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.rp-codigo-badge {
    background: #1B3A6B;
    color: #FFFFFF;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    font-family: monospace;
    letter-spacing: 2px;
}

/* ── Datos fila ─────────────────────────────── */
.rp-dato-fila {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #F0F2F5;
    font-size: 13px;
    align-items: flex-start;
}

.rp-dato-fila:last-child {
    border-bottom: none;
}

.rp-dato-label {
    flex-shrink: 0;
    width: 160px;
    color: #718096;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding-top: 1px;
}

.rp-dato-valor {
    color: #1A1A2E;
    line-height: 1.5;
    flex: 1;
}

.rp-texto-largo {
    font-size: 14px;
    line-height: 1.7;
    color: #1A1A2E;
    margin: 0;
}

/* ── Seguimiento: cabecera ──────────────────── */
.rp-seguimiento-header {
    margin-bottom: 20px;
}

.rp-seguimiento-titulo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.rp-fecha-registro {
    font-size: 13px;
    color: #718096;
    margin: 0;
}

/* ── Chat / Conversación ────────────────────── */
.rp-chat-box {
    flex: 1;
    padding: 16px 20px;
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-bottom: 1px solid #EEF2F9;
}

.rp-chat-vacio {
    text-align: center;
    padding: 30px;
    color: #A0AEC0;
}

.rp-chat-vacio span {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.rp-chat-vacio p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
}

.rp-mensaje {
    display: flex;
    flex-direction: column;
    max-width: 80%;
}

.rp-mensaje-denunciante {
    align-self: flex-end;
    align-items: flex-end;
}

.rp-mensaje-admin {
    align-self: flex-start;
    align-items: flex-start;
}

.rp-mensaje-burbuja {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
    word-break: break-word;
}

.rp-mensaje-denunciante .rp-mensaje-burbuja {
    background: #1B3A6B;
    color: #FFFFFF;
    border-bottom-right-radius: 4px;
}

.rp-mensaje-admin .rp-mensaje-burbuja {
    background: #EEF2F9;
    color: #1A1A2E;
    border-bottom-left-radius: 4px;
}

.rp-mensaje-meta {
    font-size: 11px;
    color: #A0AEC0;
    margin-top: 4px;
}

.rp-nuevo-mensaje {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rp-nuevo-mensaje-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

/* ── Panel admin: layout ────────────────────── */
.rp-admin-top {
    margin-bottom: 20px;
}

.rp-admin-top h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #1B3A6B;
}

.rp-contadores {
    display: grid;
    grid-template-columns: repeat(4, 25%);
    gap: 14px;
    margin-bottom: 20px;
}

.rp-contador {
    background: #FFFFFF;
    border: 1px solid #D8DDE8;
    border-radius: 10px;
    padding: 18px;
    text-align: center;
    box-shadow: 0 1px 6px rgba(27,58,107,0.06);
}

.rp-contador-num {
    font-size: 28px;
    font-weight: 700;
    color: #1B3A6B;
}

.rp-contador-label {
    font-size: 12px;
    color: #718096;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rp-contador-warning .rp-contador-num { color: #D68910; }
.rp-contador-info    .rp-contador-num { color: #1B3A6B; }
.rp-contador-success .rp-contador-num { color: #1E7E34; }

.rp-filtros-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.rp-filtros-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rp-busqueda-form {
    flex: 1;
    max-width: 280px;
}

.rp-input-busqueda {
    padding: 8px 14px;
    font-size: 13px;
}

/* ── Tabla ──────────────────────────────────── */
.rp-tabla-scroll {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(27,58,107,0.07);
}

.rp-tabla {
    width: 100%;
    border-collapse: collapse;
    background: #FFFFFF;
    font-size: 13px;
}

.rp-tabla thead tr {
    background: #1B3A6B;
}

.rp-tabla th {
    padding: 13px 14px;
    color: #FFFFFF;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
}

.rp-tabla tbody tr {
    border-bottom: 1px solid #F0F2F5;
    transition: background 0.15s;
}

.rp-tabla tbody tr:hover {
    background: #F7F9FC;
}

.rp-tabla td {
    padding: 12px 14px;
    vertical-align: middle;
    color: #1A1A2E;
}

.rp-tabla tbody tr:last-child {
    border-bottom: none;
}

.rp-nowrap { white-space: nowrap; }
.rp-truncate { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-codigo-mono { font-family: monospace; font-weight: 700; color: #1B3A6B; letter-spacing: 1px; }

/* ── Admin detalle ──────────────────────────── */
.rp-admin-detalle-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.rp-admin-detalle-titulo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
}

.rp-estado-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.rp-admin-grid {
    display: grid;
    grid-template-columns: calc(100% - 400px) 380px;
    gap: 20px;
    align-items: start;
}

.rp-chat-card {
    position: sticky;
    top: 20px;
}

/* ── Personas ───────────────────────────────── */
.rp-persona-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #F0F2F5;
    font-size: 13px;
}

.rp-persona-item:last-child { border-bottom: none; }

.rp-persona-num {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #1B3A6B;
    background: #EEF2F9;
    padding: 3px 8px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Adjuntos ───────────────────────────────── */
.rp-adjunto-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #F7F9FC;
    border: 1px solid #D8DDE8;
    border-radius: 8px;
    text-decoration: none;
    color: #1A1A2E;
    font-size: 13px;
    margin-bottom: 8px;
    transition: background 0.15s, border-color 0.15s;
}

.rp-adjunto-item:hover {
    background: #EEF2F9;
    border-color: #1B3A6B;
}

.rp-adjunto-icon { font-size: 20px; flex-shrink: 0; }
.rp-adjunto-nombre { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-adjunto-descargar { font-size: 11px; font-weight: 700; color: #1B3A6B; flex-shrink: 0; }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 900px) {
    .rp-admin-grid {
        grid-template-columns: 100%;
    }
    .rp-chat-card {
        position: static;
    }
    .rp-contadores {
        grid-template-columns: repeat(2, 50%);
    }
}

@media (max-width: 600px) {
    .rp-filtros-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .rp-busqueda-form { max-width: 100%; width: 100%; }
    .rp-contadores { grid-template-columns: repeat(2, 50%); }
    .rp-dato-fila { flex-direction: column; gap: 4px; }
    .rp-dato-label { width: auto; }
    .rp-admin-detalle-header { flex-direction: column; align-items: flex-start; }
    .rp-mensaje { max-width: 90%; }
    .rp-codigo-input { max-width: 100%; }
    .rp-tabla th:nth-child(3),
    .rp-tabla td:nth-child(3) { display: none; }
}


/**/
/* ── RESPONSIVE MOBILE ADICIONAL ────────────── */

/* Modal del codigo: se ve bien en pantallas pequeñas */
#rp-modal-overlay {
    padding: 12px !important;
    align-items: flex-end !important;
}

@media (min-width: 480px) {
    #rp-modal-overlay {
        align-items: center !important;
        padding: 20px !important;
    }
}

/* Codigo en el modal: tamaño legible en móvil */
#rp-codigo-val {
    font-size: 22px !important;
    letter-spacing: 3px !important;
    word-break: break-all;
}

/* Panel admin: cabecera detalle en columna en móvil */
@media (max-width: 768px) {
    .rp-admin-detalle-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .rp-admin-detalle-titulo {
        flex-wrap: wrap;
    }
    .rp-estado-selector {
        flex-wrap: wrap;
        gap: 8px;
    }
    /* Contadores: 2 columnas en móvil */
    .rp-contadores {
        grid-template-columns: repeat(2, 50%) !important;
    }
    /* Tabla: ocultar columnas menos importantes */
    .rp-tabla th:nth-child(3),
    .rp-tabla td:nth-child(3),
    .rp-tabla th:nth-child(4),
    .rp-tabla td:nth-child(4) {
        display: none;
    }
    /* Filtros en columna */
    .rp-filtros-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .rp-filtros-btns {
        overflow-x: auto;
        padding-bottom: 4px;
        flex-wrap: nowrap;
    }
    .rp-busqueda-form {
        max-width: 100%;
    }
    /* Formulario CF7: campos en 1 columna */
    .cf7-persona-row .cf7-row-2col {
        grid-template-columns: 100%;
    }
    /* Botón enviar: ancho completo */
    .cf7-submit-wrap input[type="submit"] {
        width: 100% !important;
    }
}

/* Seguimiento: input código centrado */
@media (max-width: 480px) {
    .rp-codigo-input {
        font-size: 18px !important;
        letter-spacing: 2px !important;
        max-width: 100% !important;
    }
    .rp-seguimiento-titulo {
        flex-direction: column;
        align-items: flex-start;
    }
    /* Chat: burbujas más anchas */
    .rp-mensaje {
        max-width: 95% !important;
    }
    .rp-nuevo-mensaje-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .rp-nuevo-mensaje-footer .rp-btn {
        width: 100%;
        justify-content: center;
    }
}
