/* --- WIDGET DE MARCAÇÃO E GERAL --- */
.scout_nav_bar_wrapper, .scout_cota_viewer_wrapper { font-family: inherit; }

/* Container do Botão */
.scout_nav_bar_container { 
    display: inline-flex; 
    align-items: center; 
    gap: 10px; 
    position: relative;
    border: 2px solid #6EA56D;
    border-radius: 20px;
    padding: 5px 15px 5px 5px; 
    color: #BEBEBE; 
    transition: all 0.3s ease;
    cursor: pointer; /* Indica que é clicável */
}

.scout_nav_bar_container.scout_disabled { opacity: 0.6; cursor: not-allowed; border-color: #ccc; }

/* Novo Checkbox (Esconde o input original) */
.scout_toggle_input { display: none; }

/* Ícone do Checkbox Personalizado */
.scout_custom_checkbox_icon {
    width: 18px; /* Solicitado */
    height: 18px; /* Solicitado */
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

/* Texto do Label */
.scout_nav_bar_label {
    font-size: 0.9em;
    font-weight: 500;
    user-select: none;
}

/* Texto da Cota */
.scout_nav_bar_quota { font-size: 0.85em; color: #666; background: #f0f0f0; padding: 4px 8px; border-radius: 4px; margin-left: 10px; }

/* Toast */
.scout_nav_bar_toast { visibility: hidden; min-width: 250px; background-color: #333; color: #fff; text-align: center; border-radius: 4px; padding: 10px; position: fixed; z-index: 9999; left: 50%; bottom: 30px; transform: translateX(-50%); opacity: 0; transition: opacity 0.5s, bottom 0.5s; }
.scout_nav_bar_toast.show { visibility: visible; opacity: 1; bottom: 50px; }
.scout_nav_bar_toast.error { background-color: #d9534f; }

/* --- MENU DE POSTS (GAVETA LATERAL) --- */

.scout_nav_bar_posts_wrapper { /* Container lógico */ }

/* O Container Principal do Menu */
.scout_nav_bar_posts {
    position: fixed;
    left: 0;
    width: 350px;
    z-index: 994;
    box-shadow: 15px 0 50px rgba(0, 0, 0, 0.5);
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
    background: #EDF2EE;
    overflow: visible; 
}

.scout_nav_bar_posts.is-open { transform: translateX(0); }

/* Header */
.scout_nav_bar_posts_header {
    display: flex; align-items: center; justify-content: space-between;
    height: 50px; position: relative; top: 20px;
    border-top-right-radius: 15px; border-bottom-right-radius: 15px;
    padding-left: 20px; margin-right: -50px; cursor: pointer;
    transition: margin-right 0.3s ease; 
}

.scout_nav_bar_posts_title { font-weight: bold; font-size: 1.5rem; flex-grow: 1; }

/* Ícone Aba */
.scout_nav_bar_posts_icon {
    width: 30px; height: 30px; position: relative;
    right: auto; top: auto; transform: none; background: transparent;
    margin-right: 15px;
}
.scout_nav_bar_posts_icon img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(2px 2px 5px rgba(0,0,0,0.2)); }

/* Busca */
.scout_nav_bar_posts_search {
    width: 90%; margin: 0 auto; margin-top: 35px;
    padding: 10px 15px; border-radius: 20px; border: 1px solid #ccc;
    background: #fff; font-size: 0.8em; outline: none;
}

/* Lista */
.scout_nav_bar_posts_list {
    flex-grow: 1; overflow-y: auto; padding: 10px;
    scrollbar-width: thin; scrollbar-color: #999 transparent;
}
.scout_nav_bar_posts_list::-webkit-scrollbar { width: 6px; }
.scout_nav_bar_posts_list::-webkit-scrollbar-thumb { background-color: #999; border-radius: 3px; }

/* Item Lista */
.scout_post_item {
    display: flex; align-items: center; padding: 8px; margin-bottom: 8px;
    cursor: pointer; transition: background 0.2s; border-radius: 8px;
}
.scout_post_item:hover { background: rgba(255,255,255,0.5); }

.scout_nav_bar_posts_list_icons, .scout_nav_bar_posts_list_icons_aplicada {
    width: 20px; height: 20px; margin-right: 10px; flex-shrink: 0;
}
.scout_nav_bar_posts_list_icons img, .scout_nav_bar_posts_list_icons_aplicada img { width: 100%; height: 100%; object-fit: contain; }
.scout_no_media { opacity: 0.25; }
.scout_nav_bar_posts_list_titles { font-size: 0.95rem; font-weight: 500; line-height: 1.2; }

/* Footer Filtros */
.scout_nav_bar_posts_footer_filter { padding: 15px; border-top: 1px solid rgba(0,0,0,0.05); }
.scout_filter_row { display: flex; align-items: center; margin-bottom: 8px; gap: 8px; font-size: 0.9rem; color: #555; }
.scout_filter_icon { width: 20px; height: 20px; }
.scout_filter_disabled { opacity: 0.5; pointer-events: none; }

/* --- RESPONSIVIDADE MOBILE --- */
@media (max-width: 600px) {
    /* FECHADO */
    .scout_nav_bar_posts {
        width: 85%; 
        transform: translateX(-100%);
        border-top-right-radius: 15px;
        border-bottom-right-radius: 15px;
        transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), width 0.4s ease, border-radius 0.4s ease;
    }
    .scout_nav_bar_posts_header {
        margin-right: -50px;
        border-top-right-radius: 15px;
        border-bottom-right-radius: 15px;
        transition: margin-right 0.4s ease, border-radius 0.4s ease;
    }

    /* ABERTO */
    .scout_nav_bar_posts.is-open {
        transform: translateX(0);
        width: 100%;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }
    .scout_nav_bar_posts.is-open .scout_nav_bar_posts_header {
        margin-right: 0;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }
}
/* --- MULTI-STATE CHECKBOX E DROPDOWNS DE TAXONOMIA --- */
.scout_btn_mais_filtros {
    background: none; border: none; color: #4F7B5B; font-weight: bold; cursor: pointer; padding: 5px 0; margin-top: 10px; width: 100%; text-align: left;
}
.scout_tax_dropdown {
    background: #fff; border: 1px solid #ccc; border-radius: 8px; margin-bottom: 8px; overflow: hidden;
}
.scout_tax_header {
    padding: 8px 12px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; font-size: 0.9em; background: #f9f9f9;
}
.scout_tax_list {
    padding: 10px; border-top: 1px solid #eee; background: #fff; max-height: 150px; overflow-y: auto;
}
.scout_tax_term {
    display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 0.85em; cursor: pointer; user-select: none;
}
.scout_3state {
    display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border: 1px solid #999; border-radius: 3px; font-size: 12px; font-weight: bold; transition: background 0.2s;
}
.scout_3state.state-0 { background: #fff; color: transparent; }
.scout_3state.state-1 { background: #4F7B5B; border-color: #4F7B5B; color: #fff; }
.scout_3state.state-1::after { content: '✓'; }
.scout_3state.state-2 { background: #d9534f; border-color: #d9534f; color: #fff; }
.scout_3state.state-2::after { content: '✕'; }