/* Cores */

:root {
    --orange-color: #F15F56;
    --light-orange-bg: #fff7f5;
    --border-color: #e3e7ed;
    --text-light-gray: #6e7a8e;
    --text-medium-gray: #4b5a6c;
    --text-dark-gray: #2c3e50;
    /* Larguras fixas para sidebars, flexível para centro */
    --texto-sidebar-w: 250px;
    --texto-center-w: 1fr;
    --texto-agencias-w: 290px;
    --resultados-lista-max-height: 570px !important;
    /* Largura máxima alinhada ao header */
    --texto-page-max: min(100vw, 1536px);
}

.textos-main-wrapper {
    display: block;
    background: #fff;
    max-width: var(--texto-page-max);
    margin: 0 auto;
    width: 100%;
    padding: 0 64px;
    box-sizing: border-box;
}

.textos-container {
    display: flex;
    column-gap: clamp(12px, 1.6vw, 24px);
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}

/* DIVISÃO 1: Sidebar esquerda - Filtros */
.textos-sidebar.filtros {
    background: transparent;
    border-right: 1px solid var(--border-color);
    padding: 24px 0px;
    padding-right: clamp(12px, 1.2vw, 20px);
    /* largura fixa para sidebar esquerda */
    flex: 0 0 var(--texto-sidebar-w);
    width: var(--texto-sidebar-w);
    min-width: var(--texto-sidebar-w);
    max-width: var(--texto-sidebar-w);
}

.textos-sidebar.filtros h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark-gray);
}

.filtros-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filtros-categorias-title {
    font-size: 14px;
    color: #ACB5BD;
    margin-bottom: -10px;
}

.filtros-categorias {
    display: flex;
    flex-direction: column;
    gap: 0px;
    max-height: 570px;
    overflow-y: auto;
}

.filtros-categorias label {
    display: flex;
    align-items: center;
    padding: 6px 0;
    color: #495057;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

.filtros-categorias input[type="checkbox"] {
    margin-right: 10px;
    width: 16px;
    height: 16px;
    accent-color: var(--orange-color);
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #ACB5BD;
    border-radius: 3px;
    background-color: #fff;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.filtros-categorias input[type="checkbox"]:checked {
    background-color: var(--orange-color);
    border-color: var(--orange-color);
}

.filtros-categorias input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.filtros-categorias input[type="checkbox"]:indeterminate {
    background-color: var(--orange-color);
    border-color: var(--orange-color);
}

.filtros-categorias input[type="checkbox"]:indeterminate::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 7px;
    width: 10px;
    height: 2px;
    background-color: white;
    transform: none;
    border: none;
}

.filtros-categorias input[type="checkbox"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f8f9fa;
}

/* Estado visual para itens desabilitados (sem permissão) */
.filtros-categorias label.disabled {
    color: #9aa4b2;
    cursor: not-allowed;
}

.filtros-categorias label.disabled input[type="checkbox"] {
    cursor: not-allowed;
    opacity: 0.6;
}

.filtros-botoes {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-aplicar,
.btn-limpar {
    border-radius: 8px;
    padding: 8px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn-aplicar {
    background: var(--orange-color);
    color: #fff;
    border: none;
}

.btn-aplicar:hover {
    background: #E04E47;
}

.btn-limpar {
    background: #fff;
    color: var(--orange-color);
    border: 1px solid var(--orange-color);
}

.btn-limpar:hover {
    background: var(--light-orange-bg);
}

.btn-aplicar:focus,
.btn-limpar:focus {
    outline: none;
    box-shadow: 0 0 0 2px #F15F5633;
    /* sombra laranja suave */
}

/* DIVISÕES 2 e 3: Área principal (barra superior + conteúdo) */
.textos-main-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-width: 0;
}

/* DIVISÃO 2: Barra superior - Ocupa toda a largura */
/* ========================================
   TICKER FLASHES (TEXTOS)
   ======================================== */
.textos-flashes-ticker {
    width: 100%;
    margin: 8px 0 0;
    border-radius: 8px;
    background: #fff7f5;
    box-shadow: 0 1px 0 rgba(18, 35, 53, 0.03);
    overflow: hidden;
}

.textos-flashes-link {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 10px;
    text-decoration: none;
}

.textos-flashes-label {
    color: var(--orange-color);
    background: #fff7f5;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1;
    padding: 5px 8px;
    flex: 0 0 auto;
}

.textos-flashes-sep {
    flex: 0 0 auto;
    color: #acb5bd;
    font-size: 13px;
    font-weight: 500;
}

.textos-flashes-track {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
}

.textos-flashes-text {
    color: #2c3e50;
    font-size: 13px;
    font-weight: 500;
    display: inline-block;
    padding-left: 100%;
    animation: textos-flashes-marquee 32s linear infinite;
    white-space: nowrap;
}

.textos-flashes-link:hover {
    text-decoration: none;
}

.textos-flashes-link:hover .textos-flashes-text {
    animation-play-state: paused;
}

@keyframes textos-flashes-marquee {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

@media (max-width: 768px) {
    .textos-flashes-ticker {
        border-radius: 8px;
        margin: 8px 0 6px;
    }

    .textos-flashes-link {
        min-height: 30px;
        padding: 0 8px;
        gap: 6px;
    }

    .textos-flashes-label {
        font-size: 14px;
    }

    .textos-flashes-sep {
        font-size: 12px;
    }

    .textos-flashes-text {
        font-size: 13px;
    }
}

.textos-header-bar {
    /* Layout fluido e "autoquebrável" baseado em Grid */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    grid-auto-flow: row dense;
    align-items: center;
    border-bottom: none;
    background: transparent;
    width: 100%;
    margin-bottom: 0;
    position: relative;
    /* Mantém altura mínima sem travar o crescimento */
    min-height: 66px;
}

/* Divisores: pseudo-elemento com altura fixa e centralizado verticalmente */
.textos-header-bar>* {
    position: relative;
}

.textos-header-bar>*:not(:first-child)::before {
    content: "";
    position: absolute;
    left: -32px;
    /* centraliza no gap de 6px entre colunas */
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 22px;
    background: var(--border-color);
}

.textos-header-bar::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--border-color);
    /* permite que linhas adicionais do grid não fiquem sobrepostas à borda */
    pointer-events: none;
}

.textos-header-bar .aba {
    color: var(--text-medium-gray);
    text-decoration: none;
    padding: 16px 8px;
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

.textos-header-bar .aba:hover {
    color: var(--orange-color);
}

.textos-header-bar .aba.ativa {
    color: var(--orange-color);
    background: transparent;
    font-weight: 600;
    position: relative;
}

.textos-header-bar .aba.ativa::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -8px;
    height: 3px;
    background: var(--orange-color);
    border-radius: 2px;

    pointer-events: none;
    left: 0;
    right: 0;
    width: 100%;
    transform: none;
}

.aba-dropdown-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    /* Centraliza o bloco dentro da coluna do grid */
    justify-self: center;
    width: max-content;
    margin: 15px 0 15px 0;
}

.aba-dropdown-wrapper::before {
    /* Divisores desativados para não "quebrar" quando o header ocupa múltiplas linhas */
    display: none;
}

.aba-dropdown-wrapper::after {
    display: none;
}

.aba-dropdown-wrapper .aba-label {
    color: var(--text-medium-gray);
    font-size: 14px;
    display: inline-block;
    min-width: 0;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.dropdown-select {
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0px 25px 0px 20px;
    font-size: 14px;
    color: var(--text-medium-gray);
    cursor: pointer;
    outline: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%236e7a8e" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 6px center;
    background-size: 18px;
    font-weight: 600;
}

/* DESKTOP (padrão) */
/* Campo de data com espaço reservado para o ícone */
.filtro-data-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filtro-data-input {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 14px;
    color: var(--text-medium-gray);
    outline: none;
    font-weight: 500;
    box-sizing: border-box;
    transition: border 0.2s;
    width: clamp(180px, 22vw, 230px);
    /* espaço reservado para o ícone */
    margin-left: -45px;
}

/* Ajuste global para o ícone do calendário */
.calendar-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
    color: var(--text-medium-gray);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>');
}

/* Ajustes para quebra de linha do cabeçalho a partir de 1256px */
@media (max-width: 1205px) {
    .textos-header-bar {
        /* Mantém o comportamento fluido com Grid também neste range */
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        grid-auto-flow: row dense;
        align-items: center;
    }

    .textos-header-bar .aba {
        padding: 12px 8px;
        /* Reduz padding vertical para economizar espaço */
    }

    .filtro-data-wrapper {
        margin-top: 4px;
        /* Adiciona margem superior para separar da linha anterior */
    }

    .busca-noticias-wrapper {
        margin-top: 4px;
        /* Adiciona margem superior para separar da linha anterior */
    }
}


/* Ocultar separadores verticais a partir de 1335px */
@media (max-width: 1350px) {

    .textos-header-bar>.aba-dropdown-wrapper::before,
    .textos-header-bar>.paginacao::before,
    .textos-header-bar>*:not(:first-child)::before {
        display: none !important;
    }
}

/* Ocultar ícone do calendário a partir de 1021px */
@media (min-width: 769px) and (max-width: 1005px) {
    .calendar-icon {
        display: none !important;
    }
}

/* MOBILE */
@media (max-width: 768px) {
    .filtro-data-input {
        width: 230px;
        display: block;
        margin-left: 0;
    }

    .calendar-icon {
        right: 12px;
    }

    .textos-header-bar .aba.ativa::after {
        bottom: -1px;
        width: 80%;
        left: 10px;
    }

    .paginacao {
        margin-left: -35px;
    }
}

.datepicker-container {
    left: auto !important;
    right: 0 !important;
    /* ou ajuste o valor de right conforme necessário */
}

.filtro-data-input:focus {
    border-color: var(--orange-color);
}

.paginacao {
    color: var(--text-medium-gray);
    font-size: 14px;
    white-space: nowrap;
    font-weight: 500;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0 15px 0;
}

.paginacao .paginacao-total {
    font-weight: 600;
    color: var(--text-dark-gray);
    white-space: pre;
    /* Preserva espaços exatamente como no HTML */
}

.paginacao::before {
    display: none;
}

/* Reativa divisores também para itens que tinham ::before desativado */
.textos-header-bar>.aba-dropdown-wrapper::before,
.textos-header-bar>.paginacao::before {
    content: "";
    position: absolute;
    /* igual aos demais para centralizar no gap */
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 22px;
    background: var(--border-color);
    display: block;
}

.textos-header-bar>.aba-dropdown-wrapper::before {
    left: -16px;
}

.textos-header-bar>.paginacao::before {
    left: -20px;
}

.setas {
    color: var(--text-light-gray);
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
}

.setas .seta-item {
    display: inline-block;
    width: 22px;
    height: 22px;
    text-indent: -9999px;
    /* esconde os caracteres » « > < */
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
    color: #6e7a8e;
    /* mesma base das setas do menu de cadernos */
    transition: color 0.2s ease;
}

.setas a.seta-item {
    cursor: pointer;
}

.setas span.seta-item {
    cursor: default;
    opacity: 0.5;
}

/* Usa currentColor para permitir hover/color ativo */
.setas .seta-item:nth-child(1) {
    /* primeira página: « */
    background-image: url('data:image/svg+xml;utf8,<svg width="16" height="16" xmlns="http://www.w3.org/2000/svg"><polyline points="10,3 6,8 10,13" fill="none" stroke="currentColor" stroke-width="2"/><polyline points="6,3 2,8 6,13" fill="none" stroke="currentColor" stroke-width="2"/></svg>');
}

.setas .seta-item:nth-child(2) {
    /* anterior: < */
    background-image: url('data:image/svg+xml;utf8,<svg width="16" height="16" xmlns="http://www.w3.org/2000/svg"><polyline points="10,3 5,8 10,13" fill="none" stroke="currentColor" stroke-width="2"/></svg>');
}

.setas .seta-item:nth-child(3) {
    /* próxima: > */
    background-image: url('data:image/svg+xml;utf8,<svg width="16" height="16" xmlns="http://www.w3.org/2000/svg"><polyline points="6,3 11,8 6,13" fill="none" stroke="currentColor" stroke-width="2"/></svg>');
}

.setas .seta-item:nth-child(4) {
    /* última página: » */
    background-image: url('data:image/svg+xml;utf8,<svg width="16" height="16" xmlns="http://www.w3.org/2000/svg"><polyline points="6,3 10,8 6,13" fill="none" stroke="currentColor" stroke-width="2"/><polyline points="2,3 6,8 2,13" fill="none" stroke="currentColor" stroke-width="2"/></svg>');
}

.setas .seta-item:hover {
    color: var(--orange-color);
}

/* DIVISÃO 3: Conteúdo abaixo - Duas colunas */
.textos-content-wrapper {
    display: flex;
    gap: clamp(12px, 1.6vw, 24px);
    align-items: stretch;
    /* faz as colunas terem a mesma altura visual */
    margin-top: 22px;
}

.textos-content-column {
    background: #fff;
    /* coluna central flexível (preenche o espaço restante) */
    flex: 1 1 0;
    width: auto;
    min-width: clamp(500px, 48vw, 820px);
}

.textos-agencias-column {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    /* largura fixa para sidebar direita */
    flex: 0 0 var(--texto-agencias-w);
    min-width: var(--texto-agencias-w);
    margin-bottom: 0;
    /* Altura espelhada: deixa a row esticar, mas com mínimo */
    height: auto;
    min-height: 620px;
    max-height: none;
    overflow-y: auto;
    /* Scrollbar quando exceder altura máxima */
    display: flex;
    flex-direction: column;
}

/* A altura será sincronizada via JS; barra de rolagem no container para ficar no extremo direito */
.textos-agencias-column {
    overflow-y: auto;
}

.textos-agencias-column::-webkit-scrollbar {
    width: 8px;
}

.textos-agencias-column::-webkit-scrollbar-thumb {
    background: #dde1e7;
    border-radius: 8px;
}

.resultados-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-bottom: 1px solid #e3e7ed;
    padding: 16px;
}

.resultados-header-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.filter-icon-bg {
    background: #ffeceb;
    border-radius: 8px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.resultados-header .filter-icon {
    width: 24px;
    height: 24px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" stroke="%23F15F56" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 4h16l-6 8v5l-4 3v-8z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.resultados-header h3 {
    font-size: 16px;
    color: #212529;
    margin-bottom: 2px;
    font-weight: 600;
}

.resultados-header small {
    color: #858E96;
    font-size: 14px;
    font-weight: 400;
    margin-top: 2px;
    font-style: italic;
}

.busca-noticias-wrapper {
    position: relative;
    width: clamp(220px, 26vw, 320px);
}

.busca-noticias {
    width: 100%;
    padding: 10px 16px;
    padding-right: 40px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    background: #f6f7fa;
    color: #4b5a6c;
    outline: none;
    box-shadow: none;
    font-style: italic;
}

.busca-noticias::placeholder {
    color: #b0b8c6;
}

.busca-noticias-wrapper .busca-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23b0b8c6" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: auto;
    /* permite clique */
    z-index: 2;
    /* garante que fique acima do input */
}

.lista-noticias {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lista-noticias li,
.lista-mais-lidas li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 10px 24px;
    border-bottom: 1px solid #e3e7ed;
    background: #fff;
    /* Permite que as colunas internas encolham sem forçar overflow horizontal */
    min-width: 0;
}

.lista-noticias li:last-child,
.lista-mais-lidas li:last-child {
    border-bottom: none;
}

.lista-noticias .texto-status-icon {
    flex-shrink: 0;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.lista-noticias .texto-status-icon:hover {
    opacity: 0.8;
}

.lista-noticias .texto-status-icon i {
    font-size: 16px;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.lista-noticias .data,
.lista-mais-lidas .data {
    color: #858E96;
    font-size: 13px;
    min-width: 130px;
    margin-top: 2px;
    flex-shrink: 0;
}

.lista-noticias .titulo {
    color: #212529;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    flex: 1;
    /* Evita estourar o container mesmo com texto sem espaços */
    min-width: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
    max-width: 100%;
    cursor: pointer !important;
    pointer-events: auto !important;
    user-select: none;
}

/* Mais Lidas / Notícias Gratuitas */
.textos-mais-lidas {
    margin: 25px 0px;
}

.resultados-lista-container,
.resultados-lista-container-mais-lidas {
    padding: 0;
    border: 1px solid #e3e7ed;
    border-radius: 8px;
    background: #fff;
    margin-top: 0;
    overflow: hidden;
}

.resultados-lista-container {
    height: 650px;
    /* Largura responsiva que mantém proporção mas se adapta a telas menores */

}

/* Altura fixa para a área de resultados (mantém estável com 10 itens) */
.textos-resultados .lista-noticias {
    max-height: var(--resultados-lista-max-height, 570px);
    overflow-y: auto;
}

.mais-lidas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-bottom: 1px solid #e3e7ed;
    border-radius: 12px 12px 0 0;
    margin: 10px 20px 10px 20px;
}

.abas-mais-lidas {
    display: flex;
    gap: 20px;
    position: relative;
}

.abas-mais-lidas a {
    color: var(--text-medium-gray);
    text-decoration: none;
    padding: 16px;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    position: relative;
}

.abas-mais-lidas a:hover {
    color: var(--orange-color);
}

.abas-mais-lidas a.ativa {
    color: var(--orange-color);
    position: relative;
}

.abas-mais-lidas a.ativa::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -3px;
    width: 80%;
    height: 3px;
    background: var(--orange-color);
    border-radius: 2px;

    pointer-events: none;
}

.abas-mais-lidas-wrapper {
    flex: 1;
    display: flex;
}

.toggle-mais-lidas {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 0 8px;
    display: flex;
    align-items: center;
}

.abas-header-mobile {
    margin: auto;
    white-space: nowrap;
}

.toggle-mais-lidas:hover {
    background: #f8f9fa;
}

.toggle-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    text-indent: -9999px;
    /* esconde o caractere ^ */
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
    /* Chevron para baixo (mesmo estilo das setas de cadernos) */
    background-image: url('data:image/svg+xml;utf8,<svg width="14" height="14" xmlns="http://www.w3.org/2000/svg"><polyline points="4,6 7,9 10,6" fill="none" stroke="currentColor" stroke-width="2"/></svg>');
    color: #6e7a8e;
    transition: transform 0.3s ease, color 0.2s ease;
}

.toggle-mais-lidas.collapsed .toggle-icon {
    transform: rotate(180deg);
}

.toggle-mais-lidas:hover .toggle-icon {
    color: var(--orange-color);
}

.toggle-mais-lidas:focus {
    outline: none;
}

.mais-lidas-content {
    background: #fff;
    border-radius: 0 0 12px 12px;
    overflow-y: auto;
    transition: max-height 0.3s ease;
    max-height: 500px;
}

.mais-lidas-content.collapsed {
    max-height: 0;
}

.lista-mais-lidas {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lista-mais-lidas li {
    padding: 12px 24px;
    border-bottom: 1px solid #e3e7ed;
    display: flex;
    gap: 12px;
    font-size: 14px;
    color: #212529;
    line-height: 1.4;
}

.lista-mais-lidas li:last-child {
    border-bottom: none;
}

.lista-mais-lidas .titulo {
    color: #212529;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    flex: 1;
    /* Evita estourar o container mesmo com texto sem espaços */
    min-width: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
    max-width: 100%;
}

.textos-agencias-column h2 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark-gray);
}

.agencias-subtitle {
    color: #858E96;
    font-size: 14px;
    margin-bottom: 16px;
    font-style: italic;
    line-height: 1.4;
}

.agencias-dropdown-wrapper {
    max-width: 100%;
    box-sizing: border-box;
    /* Removido overflow: hidden para não cortar o dropdown */
    border-radius: 12px;
    border: 1px solid #e3e7ed;
    background: #fff;
    padding: 0px 12px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 4px;
    /* Adiciona espaçamento direito para compensar o padding removido da coluna */
    margin-right: 20px;
    /* Garantir que o dropdown sempre fique visível */
    visibility: visible !important;
    opacity: 1 !important;
    display: flex !important;
}

.agencia-selected {
    display: flex;
    align-items: center;
    position: relative;
    gap: 12px;
    min-width: 0;
}

.agencia-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: contain;
    background: #fff;
    flex-shrink: 0;
}

.agencia-nome {
    display: none;
}

.agencia-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
    font-size: 18px;
    color: #b0b8c6;
    pointer-events: none;
}

.agencias-select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    border: none;
    padding: 10px;
    font-size: 16px;
    background: #fff;
    color: #495057;
    margin-top: 4px;
    margin-bottom: 4px;
    white-space: nowrap;
    text-overflow: ellipsis;
    outline: none;
}

.agencias-select option {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 16px;
}

.agencias-lista {
    list-style: none;
    margin: 0;
    padding: 0 20px 0 0;
    /* Padding direito para compensar o espaço removido da coluna */
}

.agencias-lista li {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e3e7ed;
}

.agencias-lista li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.agencias-lista .hora {
    color: #858E96;
    font-size: 14px;
    display: block;
    margin-bottom: 6px;
}

.agencias-lista .titulo {
    color: #212529;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tornar itens de agência claramente clicáveis */
.agencias-lista .texto-agencia-item {
    cursor: pointer;
}

.agencias-lista .texto-agencia-item:hover .titulo {
    text-decoration: underline;
}

/* Barra de rolagem na coluna de agências */
.textos-agencias-column::-webkit-scrollbar {
    width: 8px;
}

.textos-agencias-column::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.textos-agencias-column::-webkit-scrollbar-thumb {
    background: #dde1e7;
    border-radius: 8px;
}

.textos-agencias-column::-webkit-scrollbar-thumb:hover {
    background: #c1c7d0;
}

/* Filtro de cadernos hierárquico - AJUSTE PARA SUBCATEGORIAS ABAIXO */
.categoria-item {
    position: relative;
    display: block;
    padding-left: 0;
    margin-bottom: 0;
}

.categoria-item.has-children {
    display: flex;
    align-items: center;
    position: relative;
}

.categoria-item.has-children.expanded {
    flex-direction: column;
    align-items: flex-start;
}

.categoria-item.has-children>.arrow {
    width: 14px;
    height: 14px;
    margin-right: 4px;
    margin-top: 0;
    cursor: pointer;
    background: url('data:image/svg+xml;utf8,<svg width="12" height="12" xmlns="http://www.w3.org/2000/svg"><polyline points="3,4 6,8 9,4" fill="none" stroke="%236e7a8e" stroke-width="2"/></svg>') no-repeat center;
    transition: transform 0.2s;
    display: inline-block;
    vertical-align: middle;
}

.categoria-item.has-children>.arrow {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    margin-right: 2px;
    margin-left: -4px;
    margin-top: 0;
    cursor: pointer;
    background: url('data:image/svg+xml;utf8,<svg width="14" height="14" xmlns="http://www.w3.org/2000/svg"><polyline points="4,6 7,9 10,6" fill="none" stroke="%236e7a8e" stroke-width="2"/></svg>') no-repeat center;
    transition: transform 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
}

.categoria-item.has-children>.arrow:hover {
    background-color: #f0f0f0;
    box-shadow: 0 0 0 1px #e3e7ed;
}

.categoria-item.has-children>label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 6px 0;
}

.categoria-item.has-children>label .arrow {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    margin-right: 2px;
    margin-left: 0;
    margin-top: 0;
    cursor: pointer;
    background: url('data:image/svg+xml;utf8,<svg width="14" height="14" xmlns="http://www.w3.org/2000/svg"><polyline points="4,6 7,9 10,6" fill="none" stroke="%236e7a8e" stroke-width="2"/></svg>') no-repeat center;
    transition: transform 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
}

.categoria-item.has-children>label .arrow:hover {
    background-color: #f0f0f0;
    box-shadow: 0 0 0 1px #e3e7ed;
}

.categoria-item.has-children>label .arrow.collapsed {
    transform: rotate(-90deg);
}

.categoria-item .subcategorias {
    display: none;
    width: 85%;
    margin-left: 24px;
    margin-top: 2px;
    border-left: 1px solid #e3e7ed;
    padding-left: 10px;
}

.categoria-item.expanded>.subcategorias {
    display: block;
}

.categoria-item .subcategorias label {
    font-size: 13px;
    color: #495057;
    padding: 3px 0;
}

.categoria-item.has-children>.arrow {
    margin-right: 6px;
}

.categoria-item.has-children>label .arrow {
    pointer-events: auto;
}

.categoria-item.has-children>label .arrow * {
    pointer-events: none;
}

.arrow,
.arrow-placeholder {
    display: inline-block;
    width: 18px;
    min-width: 18px;
    height: 18px;
    margin-right: 2px;
    margin-left: 0;
    vertical-align: middle;
}

.arrow-placeholder {
    background: none !important;
    cursor: default;
}

.pipe {
    color: #E8E8E8;
    font-size: 15px;
    font-weight: 400;
    user-select: none;
    margin-right: 8px;
}

/* --- RESPONSIVIDADE PADRÃO HOME --- */

@media (min-width: 1015px) and (max-width: 1204px) {
    .paginacao {
        margin-left: 30px;
    }
}

@media (min-width: 1015px) and (max-width: 1303px) {

    /* Garantir que o calendário fique centralizado na tela */
    .flatpickr-calendar.open {
        left: -70% !important;
        top: 106% !important;
    }
}

/* Telas Mídias (Notebooks e Tablets) */
@media (min-width: 769px) and (max-width: 1204px) {

    .textos-content-wrapper {
        flex-direction: column;
        gap: 24px;
    }

    .textos-content-column,
    .textos-agencias-column {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        flex: none;
        /* Reseta o flex para o empilhamento */
    }

    .abas-header-mobile .aba {
        overflow: hidden;
    }

    .textos-header-bar {
        /* Mantém o comportamento fluido com Grid também neste range */
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
        grid-auto-flow: row dense;
        align-items: center;
        width: 100% !important;
        gap: clamp(12px, 2vw, 20px);
    }

    .textos-header-bar>* {
        min-width: 0;
        max-width: 100%;
    }

    .textos-header-bar>*:not(:first-child) {
        padding-left: 0px;
    }
}

/* Estilos para o Flatpickr - Design personalizado baseado na imagem */
.flatpickr-calendar {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #e3e7ed;
    background: white;
    padding: 0;
    width: 320px;
    max-width: 90vw;
    font-size: 12px;
}

.flatpickr-current-month {
    font-size: 16px !important;
    color: #2c3e50;
    padding: 0 !important;
    margin: 0 !important;
}

.flatpickr-monthDropdown-months {
    color: #2c3e50;
    background: transparent;
    border: none;
    padding: 0 !important;
    margin: 0 !important;
    appearance: none;
    -webkit-appearance: none;
}

/* Header do calendário - Área dos meses */
.flatpickr-months {
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
    padding: 14px 0px 4px;
    border-bottom: 1px solid #e3e7ed;
}

.flatpickr-month {
    height: auto;
    line-height: 1;
}

/* Navegação do calendário */
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    top: 22px !important;
    height: 20px !important;
    width: 20px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #2c3e50 !important;
    /* Cor laranja das setas */
    fill: #2c3e50 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 4px !important;
    transition: all 0.2s !important;
    cursor: pointer !important;
    font-size: 22px !important;
    font-weight: bold !important;
    line-height: 1 !important;
}

/* Margens específicas para cada seta */
.flatpickr-months .flatpickr-prev-month {
    margin-right: 15px !important;
}

.flatpickr-months .flatpickr-next-month {
    margin-left: 15px !important;
}

/* Dias da semana */
.flatpickr-weekdays {
    background: white !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

/* Grid do calendário - mais compacto */
.flatpickr-days {
    background: white !important;
    padding: 0 16px 12px !important;
}

.flatpickr-weekday {
    font-size: 10px !important;
    font-weight: 600 !important;
    color: #6e7a8e !important;
    text-transform: uppercase !important;
    letter-spacing: 0.2px !important;
    padding: 2px 0 !important;
    text-align: center !important;
    width: calc(100% / 7) !important;
    box-sizing: border-box !important;
}

.flatpickr-day {
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #2c3e50 !important;
    height: 24px !important;
    line-height: 24px !important;
    border-radius: 3px !important;
    margin: 0 !important;
    border: 1px solid transparent !important;
    transition: all 0.2s !important;
    cursor: pointer !important;
    padding: 0 !important;
    width: calc(100% / 7) !important;
    box-sizing: border-box !important;
}

/* Container dos dias para alinhamento perfeito */
.flatpickr-days .dayContainer {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-width: unset !important;
    max-width: none !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.flatpickr-calendar .flatpickr-days .dayContainer {
    min-width: unset !important;
    max-width: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.flatpickr-day.other-month {
    color: #b0b8c6;
    opacity: 0.6;
}

.flatpickr-day.other-month:hover {
    background: rgba(110, 122, 142, 0.1);
    color: #6e7a8e;
    opacity: 1;
}

/* Estilo nativo para datas desabilitadas do Flatpickr */
.flatpickr-day.flatpickr-disabled {
    color: #d1d5db !important;
    background-color: #f9fafb !important;
    cursor: not-allowed !important;
    opacity: 0.5 !important;
}

/* Indica visualmente dias fora da disponibilidade, mas clicáveis para ranges */
/* Removido estilo de dias inválidos (voltamos ao comportamento padrão com enable) */

.flatpickr-day.flatpickr-disabled:hover {
    background-color: #f3f4f6 !important;
    color: #9ca3af !important;
}

/* Estilos unificados para datas selecionadas e intervalo */
.flatpickr-day.selected,
.flatpickr-day.selected.inRange {
    background-color: #E04E47 !important;
    border-color: #E04E47 !important;
    color: #E04E47 !important;
}

/* Datas de início e fim do intervalo com texto branco para melhor legibilidade */
.flatpickr-day.selected.startRange,
.flatpickr-day.selected.endRange {
    background-color: #E04E47 !important;
    border-color: #E04E47 !important;
    color: white !important;
}

.flatpickr-day.inRange,
.flatpickr-day.startRange,
.flatpickr-day.endRange:hover {
    background-color: rgb(224 78 71 / 10%) !important;
    border-color: rgba(224, 78, 71, 0.3) !important;
    color: #E04E47 !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

.flatpickr-day.selected.endRange:hover {
    color: white !important;
}

.flatpickr-day.endRange {
    background-color: #E04E47 !important;
    color: white !important;
}

/* Sobrescrita unificada para todas as datas selecionadas */
.flatpickr-day[aria-selected="true"],
.flatpickr-day[aria-selected="true"].inRange,
.flatpickr-day[style*="background-color"],
.flatpickr-day[style*="background"],
.flatpickr-day[class*="selected"] {
    background-color: #E04E47 !important;
    border-color: #E04E47 !important;
    color: #E04E47 !important;
}


/* Corrigindo a box-shadow azul do endRange */
.flatpickr-day.selected.startRange+.endRange:not(:nth-child(7n+1)),
.flatpickr-day.startRange.startRange+.endRange:not(:nth-child(7n+1)),
.flatpickr-day.endRange.startRange+.endRange:not(:nth-child(7n+1)) {
    box-shadow: -10px 0 0 #E04E47 !important;
    -webkit-box-shadow: -10px 0 0 #E04E47 !important;
}

.flatpickr-day.endRange.nextMonthDay:hover {
    color: #E04E47 !important;
}

/* Botões de açõo unificados */
.flatpickr-action-buttons button {
    color: #E04E47;
    border-color: #E04E47;
}

.flatpickr-action-buttons button:hover {
    background-color: rgba(224, 78, 71, 0.1);
}

.flatpickr-apply {
    background-color: #E04E47;
    color: white;
    border-color: #E04E47;
}

.flatpickr-apply:hover {
    background-color: #c73d36;
    color: white !important;
    border-color: #c73d36;
}

/* Campo ativo */
.flatpickr-date-input:focus {
    border-color: #E04E47 !important;
    box-shadow: 0 0 0 2px rgba(224, 78, 71, 0.2) !important;
}

/* Estilos unificados para datas */
.flatpickr-day:hover {
    background: rgba(224, 78, 71, 0.08) !important;
    border-color: rgba(224, 78, 71, 0.25) !important;
}

.flatpickr-day.today {
    border-color: #E04E47 !important;
    color: #E04E47 !important;
    background: transparent;
    font-weight: 600;
}

.flatpickr-day.today:hover {
    background-color: rgba(224, 78, 71, 0.1) !important;
}

.flatpickr-day.selected {
    background: #E04E47 !important;
    border-color: #E04E47 !important;
    color: white !important;
    font-weight: 600;
}

.flatpickr-day.selected:hover {
    background: #c73d36 !important;
    border-color: #c73d36 !important;
}

.flatpickr-day.other-month {
    color: #b0b8c6;
}

.flatpickr-day.other-month:hover {
    background: rgba(110, 122, 142, 0.1);
    color: #6e7a8e;
}

/* Botões de ação unificados */
/* Container unificado para botões de ação */
.flatpickr-calendar .flatpickr-action-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #f8f9fa;
    border-top: 1px solid #e3e7ed;
    border-radius: 0 0 8px 8px;
}

/* Grupos de botões - esquerda e direita */
.flatpickr-buttons-left,
.flatpickr-buttons-right {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* Setas de navegação de mês */
.flatpickr-prev-month,
.flatpickr-next-month {
    width: 20px;
    height: 20px;
    fill: #E04E47;
    transition: all 0.2s ease;
    margin: 0 8px;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
    fill: #c03d37;
    transform: scale(1.1);
}

.flatpickr-prev-month {
    transform: rotate(90deg);
}

.flatpickr-next-month {
    transform: rotate(-90deg);
}

/* Container dos meses com setas */
.flatpickr-months {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
    position: relative;
}

/* Setas de navegação de mês */
.flatpickr-prev-month,
.flatpickr-next-month {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    cursor: pointer !important;
    font-size: 22px !important;
    color: #E04E47 !important;
    font-weight: bold !important;
    z-index: 999 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    line-height: 1 !important;
    user-select: none !important;
}

.flatpickr-prev-month {
    left: 10px !important;
}

.flatpickr-next-month {
    right: 10px !important;
}

/* Sobrescreve estilos do Flatpickr que podem estar escondendo as setas */
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.flatpickr-buttons-left {
    justify-content: flex-start;
}

.flatpickr-buttons-right {
    justify-content: flex-end;
}

/* Estilos base unificados para botões */
.flatpickr-calendar .flatpickr-action-buttons button {
    background: transparent;
    border: none;
    color: #E04E47;
    font-size: 11px;
    font-weight: 500;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 50px;
    text-align: center;
}

/* Hover unificado para botões */
.flatpickr-calendar .flatpickr-action-buttons button:hover {
    background: rgba(224, 78, 71, 0.15) !important;
}

/* Estilos unificados para botão aplicar */
.flatpickr-calendar .flatpickr-action-buttons button.flatpickr-apply {
    background: #E04E47;
    color: white;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 4px;
}

.flatpickr-calendar .flatpickr-action-buttons button.flatpickr-clear:hover,
.flatpickr-calendar .flatpickr-action-buttons button.flatpickr-today:hover {
    background: rgba(224, 78, 71, 0.1);
}

/* Estilos específicos para botão Cancelar */
.flatpickr-calendar .flatpickr-action-buttons button.flatpickr-cancel {
    background: #fff;
    color: #E04E47;
    border: 1px solid #E04E47;
    font-weight: 600;
}

.flatpickr-calendar .flatpickr-action-buttons button.flatpickr-cancel:hover {
    background: rgb(224 78 71 / 4%) !important;
}

.flatpickr-calendar .flatpickr-action-buttons button.flatpickr-apply:hover {
    background: #c73d36 !important;
}

/* Removendo borda preta dos botões quando selecionados */
.flatpickr-calendar .flatpickr-action-buttons button:focus,
.flatpickr-calendar .flatpickr-action-buttons button:active {
    border: none !important;
    outline: none !important;
}

/* Interface personalizada do header */
.flatpickr-custom-header {
    background: white;
    padding: 16px 16px 12px;
    border-bottom: 1px solid #e3e7ed;
}

.flatpickr-header-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    text-align: center;
}

.flatpickr-date-inputs {
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.flatpickr-date-input-group {
    flex: 1;
}

.flatpickr-date-input-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #6e7a8e;
    margin-bottom: 4px;
    text-transform: none;
}

.flatpickr-date-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.flatpickr-date-input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #e3e7ed;
    border-radius: 4px;
    font-size: 12px;
    color: #2c3e50;
    background: white;
    outline: none;
    transition: border-color 0.2s;
}

.flatpickr-date-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.flatpickr-date-input:invalid {
    border-color: #dc3545;
}

.flatpickr-date-input::placeholder {
    color: #adb5bd;
    font-style: italic;
}

.flatpickr-calendar-icon-small {
    position: absolute;
    right: 8px;
    width: 12px;
    height: 12px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%236e7a8e" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
}

/* Estilos removidos - agora unificados com os botões de ação */

/* Responsividade */
@media (max-width: 768px) {
    .flatpickr-calendar {
        width: 280px;
        max-width: calc(100vw - 40px);
    }

    .flatpickr-months,
    .flatpickr-weekdays,
    .flatpickr-days {
        padding-left: 14px;
        padding-right: 14px;
    }

    .flatpickr-date-inputs {
        flex-direction: column;
        gap: 10px;
    }

    .flatpickr-custom-header {
        padding: 14px 14px 10px;
    }

    .paginacao {
        margin: 10px 0 8px -30px;
    }
}

/* Telas Pequenas (Smartphones) */
@media (max-width: 768px) {
    .textos-main-wrapper {
        padding: 0 15px;
    }

    .textos-container {
        flex-direction: column;
        gap: 20px;
    }

    .textos-main-content {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin-left: 0;
        border-right: none;
    }

    .textos-sidebar.filtros {
        display: grid;
        width: 100%;
        max-width: 100%;
        padding: 20px;
        border: 1px solid #e3e7ed;
        border-radius: 8px;
        background: #fff;
        margin-bottom: 20px;
        justify-content: center;
        align-items: center;
    }

    .textos-header-bar {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-bottom: 20px;
        padding: 15px;
        background: #fff;
        border: 1px solid #e3e7ed;
        border-radius: 8px;
    }

    /* Layout mobile harmonizado */
    .textos-agencias-column {
        order: 2;
    }

    .agencias-lista-container {
        flex: 1;
        overflow-y: auto;
    }

    .agencias-lista {
        padding: 0;
        list-style: none;
        margin: 0;
    }

    /* Remove regras desnecessárias - deixa igual a Home */

    .textos-abas-left,
    .textos-abas-right {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .textos-abas-right>* {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
    }

    .lista-noticias li,
    .lista-mais-lidas li {
        flex-direction: column;
        gap: 8px;
        padding: 12px 0;
        border-bottom: 1px solid #e3e7ed;
    }

    .lista-noticias .data,
    .lista-mais-lidas .data {
        min-width: auto;
        font-size: 12px;
    }

    .abas-mais-lidas a,
    .textos-header-bar .aba {
        box-sizing: border-box;
        text-align: left;
        font-size: 15px;
        padding: 10px 0;
    }

    .busca-noticias-wrapper {
        width: 100%;
    }

    .abas-mais-lidas a.ativa::after {
        left: 0;
        right: 0;
        width: 100%;
        transform: none;
    }

    .aba-dropdown-wrapper .aba-label {
        padding: 0;
    }

    .pipe,
    .filtro-data-wrapper::before,
    .aba-dropdown-wrapper::before,
    .aba-dropdown-wrapper::after,
    .paginacao::before {
        display: none !important;
    }

    .abas-header-mobile {
        width: 100%;
        display: flex;
        gap: 20px;
        border-bottom: 1px solid #e3e7ed;
        background: #fff;
        padding: 0 15px;
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .abas-header-mobile .aba {
        flex: 1;
        min-width: 0;
        text-align: center;
        padding: 12px 8px;
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .aba-dropdown-wrapper,
    .filtro-data-wrapper,
    .paginacao {
        margin: 0 0 10px 0;
    }

    .textos-header-bar::before {
        height: 0;
    }

    .textos-content-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .textos-content-column {
        order: 1;
        width: 100%;
        min-width: auto;
        margin: 0;
    }

    .lista-noticias,
    .lista-mais-lidas {
        padding: 0;
    }

    .lista-noticias li,
    .lista-mais-lidas li {
        padding: 12px 20px;
    }

    /* Garantir que a barra de rolagem funcione no mobile */
    .textos-resultados .lista-noticias {
        max-height: 510px !important;
        overflow-y: auto;
    }

    .mais-lidas-header {
        margin: 16px 20px 0px 20px;
    }

    /* Reorganizar resultados-header no mobile */
    .resultados-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .resultados-header-content {
        justify-content: flex-start;
    }

    .busca-noticias-wrapper {
        width: 100%;
        margin: 0;
    }

    /* Barra de rolagem sutil para mobile */
    .textos-agencias-column::-webkit-scrollbar {
        width: 6px;
    }

    .textos-agencias-column::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }

    .textos-agencias-column::-webkit-scrollbar-thumb {
        background: #dde1e7;
        border-radius: 3px;
    }

    .textos-agencias-column::-webkit-scrollbar-thumb:hover {
        background: #c1c7d0;
    }
}

/* Destaque para termo pesquisado */
.search-highlight {
    background-color: #ffeb3b;
    border-radius: 2px;
    padding: 0;
}

/* Loading State */
.textos-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    width: 100%;
    min-height: 200px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Garante centralização quando dentro de containers específicos */
.textos-resultados .textos-loading,
.textos-resultados .lista-noticias .textos-loading {
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.textos-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #F15F56;
    border-radius: 50%;
    animation: textos-spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes textos-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.textos-loading p {
    color: #6c757d;
    font-size: 14px;
    margin: 0;
}