/*!
 *   CUSTOM CSS	- System Plugin
 *   Author: David Dapozzo
 *   Website: dapozzo.pro <https://dapozzo.pro>
 */

#IASD_ENC_tabla_encuestas{
    position:relative;
    min-height:50px;
}

.IASD_ENC_table{
    width:100%;
    border-collapse:collapse;
}

.IASD_ENC_table thead th{
    font-size:.9rem;
    font-weight:700;
    padding:12px 14px;
    border-bottom:1px solid rgba(255,255,255,.08);
    white-space:nowrap;
    cursor:pointer;
    user-select:none;
}

.IASD_ENC_table tbody td{
    padding:14px;
    vertical-align:middle;
    border-bottom:1px solid rgba(255,255,255,.05);
}

.IASD_ENC_table tbody tr{
    transition:all .2s ease;
}

.IASD_ENC_table tbody tr:hover{
    background:rgba(255,255,255,.04);
}

.IASD_ENC_table_title{
    font-size:1rem;
    font-weight:700;
    line-height:1.2;
}

.IASD_ENC_table_slug{
    font-size:.78rem;
    opacity:.7;
    margin-top:2px;
}

.IASD_ENC_sort_icon{
    margin-left:4px;
    opacity:.5;
    font-size:.75rem;
}

.IASD_ENC_badge{
    display:inline-flex;
    align-items:center;
    gap:5px;
    padding:3px 10px;
    border-radius:999px;
    font-size:.72rem;
    font-weight:600;
    line-height:1;
    white-space:nowrap;
}

.IASD_ENC_badge_success{
    background:#18c964;
    color:#fff;
}

.IASD_ENC_badge_secondary{
    background:#6c757d;
    color:#fff;
}

.IASD_ENC_badge_warning{
    background:#f5a524;
    color:#fff;
}

.IASD_ENC_badge_primary{
    background:#7828c8;
    color:#fff;
}

.IASD_ENC_badge_info{
    background:#06b7db;
    color:#fff;
}

.IASD_ENC_channels{
    display:flex;
    flex-wrap:wrap;
    gap:5px;
}

.IASD_ENC_actions{
    display:flex;
    justify-content:flex-end;
    gap:5px;
    flex-wrap:wrap;
}

.IASD_ENC_empty{
    text-align:center;
    padding:40px 20px;
    opacity:.7;
}

.IASD_ENC_editor_preview{
    border-radius:18px;
    overflow:hidden;
    min-height:500px;
    box-shadow:0 10px 40px rgba(0,0,0,.12);
    transition:all .3s ease;
}

.IASD_ENC_editor_preview_inner{
    min-height:500px;
    padding:40px 20px;
    display:flex;
    justify-content:center;
    align-items:flex-start;
}

.IASD_ENC_preview_form{
    width:100%;
    max-width:900px;
    border-radius:24px;
    overflow:hidden;
    padding:25px;
    backdrop-filter:blur(10px);
    transition:all .3s ease;
}

.IASD_ENC_preview_header{
    border-bottom:1px solid rgba(255,255,255,.08);
    margin-bottom:20px;
    padding-bottom:15px;
}

.IASD_ENC_preview_title{
    font-size:1.4rem;
    font-weight:700;
    margin-bottom:5px;
}

.IASD_ENC_preview_desc{
    opacity:.7;
    font-size:.9rem;
}

.IASD_ENC_preview_field{
    background:rgba(255,255,255,.04);
    border-radius:14px;
    padding:18px;
    margin-bottom:15px;
}

.IASD_ENC_preview_label{
    font-size:.95rem;
    font-weight:700;
    margin-bottom:10px;
}

.IASD_ENC_preview_input{
    height:42px;
    border-radius:10px;
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.08);
}

.IASD_ENC_preview_radio{
    display:flex;
    align-items:center;
    gap:10px;
    margin-top:10px;
}

.IASD_ENC_preview_radio_circle{
    width:18px;
    height:18px;
    border-radius:50%;
    border:2px solid rgba(255,255,255,.5);
}

.IASD_ENC_visual_block{
    border:1px solid rgba(255,255,255,.08);
    border-radius:18px;
    padding:18px;
    margin-bottom:20px;
    background:rgba(255,255,255,.02);
}

.IASD_ENC_visual_block_title{
    font-size:1rem;
    font-weight:700;
    margin-bottom:15px;
}

.IASD_ENC_range_value{
    min-width:60px;
    text-align:center;
    font-weight:700;
}

.IASD_ENC_top_filters{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    flex-wrap:wrap;
    gap:8px;
}

.IASD_ENC_top_filters .form-control{
    min-width:220px;
}

@media(max-width:991px){

    .IASD_ENC_top_filters{
        justify-content:flex-start;
    }

    .IASD_ENC_actions{
        justify-content:flex-start;
    }

    .IASD_ENC_editor_preview_inner{
        padding:15px;
    }

    .IASD_ENC_preview_form{
        padding:18px;
    }
}

@media(max-width:767px){

    .IASD_ENC_table thead{
        display:none;
    }

    .IASD_ENC_table,
    .IASD_ENC_table tbody,
    .IASD_ENC_table tr,
    .IASD_ENC_table td{
        display:block;
        width:100%;
    }

    .IASD_ENC_table tr{
        margin-bottom:15px;
        border-radius:14px;
        overflow:hidden;
        background:rgba(255,255,255,.03);
    }

    .IASD_ENC_table td{
        border:none;
        padding:10px 14px;
    }

    .IASD_ENC_actions{
        justify-content:flex-start;
    }

    .IASD_ENC_top_filters .form-control{
        width:100%;
        min-width:100%;
    }
}

html,
body{
    margin:0;
    min-height:100%;
}

body.iasd-encuestas-public{
    background:var(--iasd-enc-page-bg);
}

.IASD_ENC_public_page{
    min-height:100vh;
    padding:40px;
    box-sizing:border-box;
    background:var(--iasd-enc-page-bg);
}

.IASD_ENC_public_form{
    max-width:var(--iasd-enc-form-width);
    margin:0 auto;
    background:var(--iasd-enc-form-bg);
    border-radius:18px;
    padding:24px;
    box-shadow:0 10px 35px rgba(0,0,0,.12);
}

.IASD_ENC_public_page_img,
.IASD_ENC_public_card_img{
    width:100%;
    display:block;
    border-radius:14px;
}

.IASD_ENC_placeholder{
    border:1px solid rgba(0,0,0,.12);
    border-radius:12px;
    padding:18px;
    background:rgba(255,255,255,.55);
    color:#555;
}

@media(max-width:767px){
    .IASD_ENC_public_page{
        padding:12px;
    }

    .IASD_ENC_public_form{
        max-width:100%;
        padding:18px;
        border-radius:14px;
    }
}

.IASD_ENC_preguntas_wrap{
    display:flex;
    flex-direction:column;
    gap:16px;
}

.IASD_ENC_question_card{
    background:rgba(255,255,255,.78);
    border:1px solid rgba(0,0,0,.08);
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 8px 24px rgba(0,0,0,.08);
}

.IASD_ENC_question_header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    padding:12px 14px;
    border-bottom:1px solid rgba(0,0,0,.06);
    background:rgba(255,255,255,.65);
}

.IASD_ENC_question_body{
    padding:14px;
}

.IASD_ENC_option_item input{
    min-width:0;
}

.IASD_ENC_public_questions{
    margin-top:20px;
}

.IASD_ENC_public_question{
    padding:14px;
    border-radius:14px;
    background:rgba(255,255,255,.45);
    border:1px solid rgba(0,0,0,.08);
}

.IASD_ENC_public_label{
    font-weight:700;
    margin-bottom:6px;
    display:block;
}

.IASD_ENC_public_desc{
    font-size:.875rem;
    opacity:.75;
    margin-bottom:8px;
}

.IASD_ENC_public_question .form-control{
    border-radius:10px;
}

.IASD_ENC_public_result{
    margin-bottom:18px;
    padding:16px 18px;
    border-radius:14px;
    font-size:.95rem;
}

.IASD_ENC_public_result_ok{
    background:rgba(25,135,84,.12);
    border:1px solid rgba(25,135,84,.35);
    color:#146c43;
}

.IASD_ENC_public_result_error{
    background:rgba(220,53,69,.12);
    border:1px solid rgba(220,53,69,.35);
    color:#b02a37;
}

.IASD_ENC_public_question_error{
    border-color:rgba(220,53,69,.75)!important;
    box-shadow:0 0 0 3px rgba(220,53,69,.12);
    background:rgba(220,53,69,.06);
}

.IASD_ENC_option_input{
    display:none;
}

.IASD_ENC_option_label{
    display:flex;
    align-items:center;
    gap:10px;
    cursor:pointer;
    margin-bottom:8px;
    font-size:0.9rem;
    line-height:1.35;
    font-weight:400;
}

.IASD_ENC_fake_check{
    width:18px;
    height:18px;
    border:2px solid #d5dce3;
    border-radius:5px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    background:#fff;
    transition:.15s ease;
    flex:0 0 18px;
}

.IASD_ENC_fake_check i{
    font-size:.8rem;
    opacity:0;
}

.IASD_ENC_option_input:checked + .IASD_ENC_option_label .IASD_ENC_fake_check{
    background:#20b455;
    border-color:#20b455;
}

.IASD_ENC_option_input:checked + .IASD_ENC_option_label .IASD_ENC_fake_check i{
    opacity:1;
}

.IASD_ENC_public_intro_paragraphs p{
    margin:0 0 8px 0;
}

.IASD_ENC_public_footer_card_text{
    margin-top:50px;
}

.IASD_ENC_module_sort_placeholder{
    border:2px dashed #b5b5b5;
    border-radius:14px;
    min-height:180px;
    background:rgba(0,0,0,.03);
}

.IASD_ENC_summary_card{
    cursor:pointer;
    border-left:5px solid var(--esperanzaweb1);
    transition:all .2s ease;
}

.IASD_ENC_summary_card:hover{
    transform:translateY(-2px);
    box-shadow:0 12px 28px rgba(0,0,0,.12);
}

.IASD_ENC_summary_card .IASD_ENC_summary_label{
    font-size:16px;
    color:#5b6670;
    margin-bottom:6px;
}

.IASD_ENC_summary_card .IASD_ENC_summary_number{
    font-size:34px;
    font-weight:800;
    color:#1f2937;
    line-height:1;
}

.IASD_ENC_summary_card .IASD_ENC_summary_icon{
    font-size:34px;
    color:#4b5563;
    opacity:.75;
}