/**
 * Estilos públicos
 * Nota: Estilos principais são feitos via Tailwind CSS nas views
 * Este arquivo serve apenas para estilos específicos se necessário
 */

/* Filtros de categoria no ranking */
.promo-category-filters {
    margin-bottom: 1.5rem;
}

.promo-filter-btn {
    transition: all 0.3s ease;
}

.promo-filter-btn[data-active="true"],
.promo-filter-btn.active {
    opacity: 1;
    font-weight: 600;
}

.promo-filter-btn[data-active="false"]:not(.active) {
    opacity: 0.7;
}

/* Filtros de missão para ganhadores */
.promo-mission-filters {
}

.promo-mission-filter-btn {
    transition: all 0.3s ease;
}

.promo-mission-filter-btn[data-active="true"],
.promo-mission-filter-btn.active {
    opacity: 1;
    font-weight: 600;
}

.promo-mission-filter-btn[data-active="false"]:not(.active) {
    opacity: 0.7;
}

/* Filtros de categoria para ganhadores */
.promo-winners-filter-btn {
    transition: all 0.3s ease;
}

.promo-winners-filter-btn[data-active="true"],
.promo-winners-filter-btn.active {
    background-color: #ffffff !important;
    color: #c00b1e !important;
    font-weight: 600;
}

.promo-winners-filter-btn[data-active="false"]:not(.active) {
    opacity: 1;
}

/* Filtros de categoria por missão no ranking */
.promo-mission-category-filters {
    margin-bottom: 1.5rem;
}

.promo-mission-category-filter-btn {
    transition: all 0.3s ease;
}

.promo-mission-category-filter-btn[data-active="true"],
.promo-mission-category-filter-btn.active {
    background-color: #ffffff !important;
    color: #c00b1e !important;
    font-weight: 600;
}

.promo-mission-category-filter-btn[data-active="false"]:not(.active) {
    opacity: 1;
}

/* Busca no Ranking Empresa — padrão visual: campo largo em pílula + botão BUSCAR vermelho em pílula (referência Lenovo/promo) */
.promo-empresa-search-filters-wrapper {
    display: block;
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 100%;
}

/* Especificidade extra para vencer tema / Tailwind na página do ranking */
.promo-empresa-ranking-wrapper .promo-empresa-search-filters-wrapper .promo-empresa-search-form,
.promo-empresa-ranking-wrapper .promo-empresa-search-filters-wrapper #promo-empresa-search-form,
.promo-empresa-search-filters-wrapper .promo-empresa-search-form,
.promo-empresa-search-filters-wrapper #promo-empresa-search-form {
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 480px) {
    .promo-empresa-ranking-wrapper .promo-empresa-search-filters-wrapper .promo-empresa-search-form,
    .promo-empresa-ranking-wrapper .promo-empresa-search-filters-wrapper #promo-empresa-search-form,
    .promo-empresa-search-filters-wrapper .promo-empresa-search-form,
    .promo-empresa-search-filters-wrapper #promo-empresa-search-form {
        flex-wrap: nowrap;
    }
}

.promo-empresa-ranking-wrapper .promo-empresa-search-filters-wrapper .promo-empresa-search-input,
.promo-empresa-ranking-wrapper .promo-empresa-search-filters-wrapper #promo-empresa-search-input,
.promo-empresa-search-filters-wrapper .promo-empresa-search-input,
.promo-empresa-search-filters-wrapper #promo-empresa-search-input {
    flex: 1 1 0%;
    min-width: min(100%, 12rem);
    max-width: none;
    min-height: 48px;
    padding: 0 1.35rem !important;
    margin: 0 !important;
    color: #fff !important;
    background: rgba(40, 32, 48, 0.55) !important;
    background-color: rgba(40, 32, 48, 0.55) !important;
    border: 1px solid rgba(255, 255, 255, 0.38) !important;
    border-radius: 9999px !important;
    font-size: 1rem !important;
    font-weight: 400;
    line-height: 1.35 !important;
    font-family: inherit;
    box-sizing: border-box !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.promo-empresa-ranking-wrapper .promo-empresa-search-filters-wrapper .promo-empresa-search-input:focus,
.promo-empresa-ranking-wrapper .promo-empresa-search-filters-wrapper #promo-empresa-search-input:focus,
.promo-empresa-search-filters-wrapper .promo-empresa-search-input:focus,
.promo-empresa-search-filters-wrapper #promo-empresa-search-input:focus {
    border-color: rgba(255, 255, 255, 0.55) !important;
    background-color: rgba(50, 42, 58, 0.65) !important;
}

.promo-empresa-ranking-wrapper .promo-empresa-search-filters-wrapper .promo-empresa-search-input::placeholder,
.promo-empresa-ranking-wrapper .promo-empresa-search-filters-wrapper #promo-empresa-search-input::placeholder,
.promo-empresa-search-filters-wrapper .promo-empresa-search-input::placeholder,
.promo-empresa-search-filters-wrapper #promo-empresa-search-input::placeholder {
    color: rgba(255, 255, 255, 0.62) !important;
    opacity: 1;
}

.promo-empresa-ranking-wrapper .promo-empresa-search-filters-wrapper .promo-empresa-search-btn,
.promo-empresa-search-filters-wrapper .promo-empresa-search-btn {
    flex: 0 0 auto;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 1.6rem !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 9999px !important;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.8125rem !important;
    font-weight: 700 !important;
    font-family: inherit;
    letter-spacing: 0.06em;
    text-transform: uppercase !important;
    text-decoration: none !important;
    line-height: 1 !important;
    color: #fff !important;
    /* Vermelho sólido (referência: botão vinho/bordô) */
    background: #8f0f22 !important;
    background-color: #8f0f22 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
    box-sizing: border-box !important;
    -webkit-appearance: none;
    appearance: none;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

.promo-empresa-ranking-wrapper .promo-empresa-search-filters-wrapper .promo-empresa-search-btn:hover:not(:disabled),
.promo-empresa-search-filters-wrapper .promo-empresa-search-btn:hover:not(:disabled) {
    filter: brightness(1.08);
}

.promo-empresa-ranking-wrapper .promo-empresa-search-filters-wrapper .promo-empresa-search-btn:disabled,
.promo-empresa-search-filters-wrapper .promo-empresa-search-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    filter: none;
}

.promo-empresa-loading-msg {
    font-weight: 500;
}

.promo-empresa-clear-search-btn {
    font-size: 0.875rem;
    text-decoration: underline;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.promo-empresa-clear-search-btn:hover {
    opacity: 1;
}

/* Aviso de data de atualização do ranking */
.promo-ranking-updated {
    font-size: 0.7rem;
    line-height: 1.2;
    opacity: 0.75;
    margin-bottom: 0.25rem;
    text-align: center;
}

/* Filtro de categoria no Ranking Empresa (mesmo padrão visual) */
.promo-empresa-category-filters {
    margin-bottom: 1.5rem;
}

.promo-empresa-category-filter-btn {
    transition: all 0.3s ease;
}

.promo-empresa-category-filter-btn[data-active="true"],
.promo-empresa-category-filter-btn.active {
    background-color: #ffffff !important;
    color: #c00b1e !important;
    font-weight: 600;
}

.promo-empresa-category-filter-btn[data-active="false"]:not(.active) {
    opacity: 1;
}

/* IDG/ISG no ranking empresa (por missão) — mesmo padrão dos filtros por missão do ranking participantes */
.promo-empresa-mission-category-filter-btn {
    transition: all 0.3s ease;
}

.promo-empresa-mission-category-filter-btn[data-active="true"],
.promo-empresa-mission-category-filter-btn.active {
    background-color: #ffffff !important;
    color: #c00b1e !important;
    font-weight: 600;
}

.promo-empresa-mission-category-filter-btn[data-active="false"]:not(.active) {
    opacity: 1;
}

/* Altura máxima e scroll para tabelas de ganhadores e ranking */
.table-scroll {
    max-height: 310px;
    overflow-y: auto;
    overflow-x: auto;
    border-radius: var(--radius-2xl, 1rem);
}

