.rtv-loading {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border: 1px dashed #ddd;
    border-radius: 8px;
    color: #666;
    margin-bottom: 20px;
}

.rtv-error {
    padding: 10px 15px;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 4px;
    color: #c00;
    margin-bottom: 20px;
}

.rtv-encuesta {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.rtv-encuesta.rtv-voted {
    background: #f8f9fa;
}

.rtv-titulo {
    
    font-size: 1.4em;
    color: #002a5c;
}


table.rtv-tabla-votacion {
    margin-top: 2em;
    background: #f6f6f6;
    border-radius: 15px;
    border: none!important;
}

.rtv-tabla-votacion th:last-child {
    border-radius: 0 12px 0px 0;
}

.rtv-tabla-votacion th:first-child{
    border-radius: 12px 0px 0px 0;    
}

.rtv-tabla-votacion th {
    background: #ffc107;
   text-align:left;
    text-transform:uppercase
}

table.rtv-tabla-votacion td, table.rtv-tabla-votacion th {
    border: none;
    border-block-start: 0px solid !important;
}

.rtv-votado-por-apoderado {
    /* color: #008b00; */
    font-size: 0.9em;
    /* background: #ededed; */
    display: inline-block;
    /* padding: 2px 12px; */
    /* border-radius: 6px; */
}
.rtv-nombre-accionista {
    font-size: 1.1em;
    font-weight: bold;
}

.rtv-opciones {
    margin-bottom: 20px;
}

.rtv-opcion {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.rtv-opcion input[type="radio"],
.rtv-opcion input[type="checkbox"] {
    margin-right: 10px;
}

.rtv-opcion input[type="radio"]:disabled,
.rtv-opcion input[type="checkbox"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.rtv-opcion label {
    font-size: 1.1em;
    color: #444;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.rtv-votos-count {
    font-size: 0.9em;
    color: #666;
    margin-left: auto;
}

.rtv-actions {
    margin-bottom: 15px;
}

.rtv-votar {
    background: #0073aa;
    color: white !important;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.rtv-votar:hover {
    background: #005177;
    color: white !important;
    text-decoration: none;
}

.rtv-votar:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.rtv-estado {
    margin-bottom: 15px;
}

.rtv-estado-cerrada {
    display: inline-block;
    padding: 5px 10px;
    background: #f1f1f1;
    border-radius: 4px;
    color: #666;
    font-size: 0.9em;
}

.rtv-total {
    font-size: 0.9em;
    color: #666;
    padding-top: 10px;
    border-top: 1px solid #eee;
    margin-top: 10px;
    text-align: right;
}

.rtv-voted .rtv-opciones {
    opacity: 1;
}

.rtv-voted .rtv-votar {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .rtv-encuesta {
        padding: 15px;
    }

    .rtv-titulo {
        font-size: 1.2em;
    }

    .rtv-opcion label {
        font-size: 1em;
    }

    .rtv-votos-count {
        font-size: 0.8em;
    }
}

.rtv-voto-accionista {
    color: #007bff;
    font-size: 0.9em;
    font-weight: normal;
    margin-top: 5px;
    display: block;
    background-color: #e6f2ff;
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 3px solid #007bff;
}

.rtv-voto-accionista strong {
    font-weight: bold;
    color: #0056b3;
}

.rtv-para-accionista {
    border-left: 4px solid #007bff;
    background-color: #f8f9fa;
}

.rtv-para-accionista .rtv-titulo {
    color: #0056b3;
}

.rtv-encuesta {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.rtv-estado-votado {
    display: inline-block;
    padding: 5px 10px;
    background-color: #28a745;
    color: #fff;
    border-radius: 3px;
    font-size: 0.8em;
}

.rtv-accionista-banner {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border-radius: 5px 5px 0 0;
    font-size: 1.1em;
    font-weight: normal;
    margin-bottom: 15px;
    text-align: center;
}

.rtv-accionista-banner strong {
    font-weight: bold;
}

.rtv-para-accionista {
    border-top: none;
    border-radius: 0 0 5px 5px;
    padding-top: 15px;
}

/* Actualizar el estilo del contenedor de la encuesta cuando tiene banner */
.rtv-para-accionista.rtv-encuesta {
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    border-top: none;
}

.rtv-opcion-seleccionada {
    background-color: #e6f7ff;
    border-left: 3px solid #0073aa;
    padding-left: 12px;
    transition: all 0.3s ease;
}

.rtv-opcion-elegida {
    display: inline-block;
    margin-left: 10px;
    color: #28a745;
    font-weight: bold;
    background-color: #e8f5e9;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85em;
}

.rtv-voted .rtv-votos-count {
    display: inline-block;
}

.rtv-opcion-seleccionada input[type="radio"]:disabled + label,
.rtv-opcion-seleccionada input[type="checkbox"]:disabled + label {
    color: #0073aa;
    font-weight: bold;
}

.rtv-porcentaje-badge {
    display: inline-block;
    background-color: #0056b3;
    color: white;
    font-size: 0.8em;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 10px;
    font-weight: bold;
}

/* Estilos para el mensaje de no encuestas disponibles */
.rtv-no-encuestas {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    margin: 30px 0;
    box-shadow: 0 8px 32px rgba(0, 115, 170, 0.1);
    position: relative;
    overflow: hidden;
}

.rtv-no-encuestas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0073aa, #005a87, #0073aa);
    background-size: 200% 100%;
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.rtv-no-encuestas-icon {
    margin-bottom: 20px;
    color: #0073aa;
    opacity: 0.8;
}

.rtv-no-encuestas-icon svg {
    filter: drop-shadow(0 2px 4px rgba(0, 115, 170, 0.2));
}

.rtv-no-encuestas-title {
    color: #002a5c;
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 15px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.rtv-no-encuestas-message {
    color: #495057;
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.5;
}

.rtv-no-encuestas-reasons {
    text-align: left;
    max-width: 500px;
    margin: 0 auto 25px;
    padding: 0;
    list-style: none;
}

.rtv-no-encuestas-reasons li {
    color: #6c757d;
    font-size: 1em;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    line-height: 1.4;
}

.rtv-no-encuestas-reasons li::before {
    content: '•';
    color: #0073aa;
    font-weight: bold;
    font-size: 1.2em;
    position: absolute;
    left: 0;
    top: -2px;
}

.rtv-no-encuestas-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

.rtv-no-encuestas-footer p {
    color: #868e96;
    font-size: 0.9em;
    margin: 0;
    font-style: italic;
}

/* Responsive design para el mensaje */
@media (max-width: 768px) {
    .rtv-no-encuestas {
        padding: 30px 20px;
        margin: 20px 0;
    }
    
    .rtv-no-encuestas-title {
        font-size: 1.5em;
    }
    
    .rtv-no-encuestas-message {
        font-size: 1em;
    }
    
    .rtv-no-encuestas-reasons {
        max-width: 100%;
    }
    
    .rtv-no-encuestas-reasons li {
        font-size: 0.95em;
        padding-left: 20px;
    }
}
