* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background-color: #f7f9fa;
    color: #333;
}

.site-wrapper {
    width: 95%;
    max-width: 1250px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

/* HEADER */
.main-header {
    background: #fff;
    padding: 10px 15px 0 15px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 6px 0;
    margin: 0;
}

.img-logo-topo {
    max-height: 80px;
    width: auto;
    display: block;
}

/* MENU BAR AZUL PETRÓLEO */
.nav-bar {
    background-color: #005a78;
}
.nav-bar ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}
.nav-bar ul li a {
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    font-weight: bold;
    padding: 9px 12px;
    border-right: 1px solid rgba(255,255,255,0.15);
}
.nav-bar ul li a:hover {
    background-color: #00445a;
}

/* ACESSIBILIDADE */
.accessibility-bar {
    background-color: #178fa8;
    padding: 4px 10px;
}
.acc-links {
    display: flex;
    gap: 12px;
}
.acc-links a {
    color: #fff;
    text-decoration: none;
    font-size: 10px;
    font-weight: bold;
}

.issn-banner {
    text-align: center;
    font-size: 11px;
    font-weight: bold;
    color: #333;
    padding: 6px 0;
    border-bottom: 1px solid #ddd;
}

/* CONTEÚDO */
.content-body {
    padding: 20px;
}

.section-title {
    color: #0288a8;
    font-size: 16px;
    font-weight: bold;
    border-bottom: 2px solid #0288a8;
    padding-bottom: 4px;
    margin-bottom: 12px;
}

/* 2 COLUNAS */
.two-cols-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}
.col-box p {
    font-size: 10px;
    line-height: 1.45;
    color: #444;
    margin-bottom: 8px;
    text-align: justify;
}
.expediente-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 9.5px;
    line-height: 1.35;
    margin-top: 8px;
}

/* TABELAS */
.section-container {
    margin-bottom: 30px;
}
.tabela-legado {
    width: 100%;
    border-collapse: collapse;
    margin-top: 6px;
}
.tabela-legado th {
    background-color: #5bb2c7;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 7px 10px;
    text-align: left;
    border: 1px solid #fff;
}
.tabela-legado td {
    border: 1px solid #e1e7eb;
    padding: 6px 10px;
    font-size: 10.5px;
    color: #444;
}
.tabela-legado tr:nth-child(even) {
    background-color: #f7fafb;
}

.center-col { text-align: center; }
.ico-folder { color: #f0ad4e; font-size: 14px; text-decoration: none; margin-right: 6px; }
.ico-msg { color: #333; font-size: 13px; cursor: pointer; }
.ico-download-action { color: #333; font-size: 14px; text-decoration: none; }
.ico-download-action:hover { color: #0288a8; }

/* 3 BOXES DE PESQUISA */
.search-three-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin: 25px 0;
}
.search-box {
    background: #fff;
}
.box-title {
    color: #0288a8;
    font-size: 14px;
    font-weight: bold;
    border-bottom: 2px solid #0288a8;
    padding-bottom: 4px;
    margin-bottom: 12px;
}
.search-box label {
    display: block;
    font-size: 10.5px;
    color: #333;
    margin-bottom: 4px;
    margin-top: 8px;
}
.search-box select, .search-box input {
    width: 100%;
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 11px;
}
.btn-search-gray {
    background-color: #5c6f84;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 3px;
    font-size: 11px;
    cursor: pointer;
    margin-top: 12px;
    float: right;
}
.btn-search-teal {
    background-color: #007a99;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 3px;
    font-size: 11px;
    cursor: pointer;
    margin-top: 12px;
    float: right;
}

/* BOTÕES DE AÇÕES */
.actions-col {
    display: flex;
    gap: 6px;
    align-items: center;
}
.btn-download {
    background-color: #00994d;
    color: #fff;
    text-decoration: none;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 10.5px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.btn-download:hover { background-color: #008040; }
.btn-report {
    background-color: #cc0000;
    color: #fff;
    border: none;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 10.5px;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.btn-report:hover { background-color: #b30000; }

/* PAGINAÇÃO SCRIPTCASE IDÊNTICA */
.sc-pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding: 0 4px;
}

.sc-page-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1px solid #dcdcdc;
    background-color: #fcfcfc;
    color: #888;
    font-size: 11px;
    border-radius: 3px;
    user-select: none;
}

.sc-page-numbers {
    display: flex;
    gap: 12px;
    align-items: center;
}

.sc-page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #667;
    text-decoration: none;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
}

.sc-page-num.active {
    background-color: #557cd4;
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
}

.sc-page-num:not(.active):hover {
    color: #0288a8;
}

/* FALE CONOSCO */
.fale-conosco-box {
    background-color: #e9ecef;
    padding: 16px 20px;
    border-radius: 3px;
    margin-top: 8px;
}

.fc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.fc-field {
    margin-bottom: 10px;
}

.fc-field label, .fc-col-right label {
    display: block;
    font-size: 11px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

.fc-input-group {
    display: flex;
    width: 100%;
}

.fc-addon {
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-right: none;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #495057;
    font-size: 12px;
}

.fc-input-group input, .fc-input-group select {
    flex: 1;
    border: 1px solid #ced4da;
    padding: 6px 8px;
    font-size: 11px;
    background-color: #fff;
    outline: none;
}

.fc-col-right textarea {
    width: 100%;
    height: 105px;
    border: 1px solid #ced4da;
    padding: 8px;
    font-size: 11px;
    resize: none;
    outline: none;
    background-color: #fff;
}

.fc-char-counter {
    font-size: 10px;
    color: #555;
    margin-top: 4px;
}

.fc-btn-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
}

.btn-enviar-fc {
    background-color: #007a99;
    color: #fff;
    border: none;
    padding: 6px 20px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
}
.btn-enviar-fc:hover {
    background-color: #005a78;
}

.email-info-strip {
    background-color: #e9ecef;
    border: 1px solid #dee2e6;
    padding: 8px 14px;
    margin-top: 15px;
    font-size: 11px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* RODAPÉ PMT */
.footer-pmt {
    background-color: #005a78;
    color: #fff;
    padding: 16px 20px;
    margin-top: 25px;
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-crest-mockup {
    font-size: 32px;
    color: #fff;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
}

.fl-prefeitura {
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.fl-timon {
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
}

.footer-details {
    text-align: right;
    font-size: 9.5px;
    line-height: 1.5;
    opacity: 0.95;
}
/* Correção da Barra de Acessibilidade */
.accessibility-bar {
    background-color: #0b5a75; /* Tom azul escuro de contraste */
    color: #ffffff;
}

.accessibility-bar a,
.acc-links a {
    color: #ffffff !important;
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    margin-right: 15px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.accessibility-bar a:hover,
.acc-links a:hover {
    color: #e0f2fe !important;
    text-decoration: underline;
}

.accessibility-bar i,
.acc-links i {
    color: #ffffff !important;
}

/* --- REPRODUÇÃO FIEL DO MODELO ANTIGO --- */

/* 1. Barra de Acessibilidade com fundo azul-turquesa claro e texto preto */
.accessibility-bar {
    background-color: #6ba6b8 !important; /* Mesmo tom azul da tabela antiga */
    border-bottom: 1px solid #5a94a6;
    padding: 4px 15px !important;
}

.accessibility-bar a,
.acc-links a {
    color: #111111 !important; /* Letras pretas conforme a 1ª imagem */
    font-size: 11px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    margin-right: 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.accessibility-bar a:hover,
.acc-links a:hover {
    color: #000000 !important;
    text-decoration: underline !important;
}

.accessibility-bar i,
.acc-links i {
    color: #111111 !important;
}

/* 2. Destaque Vermelho no botão Início/Home do Menu */
.navbar-nav .nav-item:first-child .nav-link,
.main-menu li:first-child a,
.nav-home-btn {
    background-color: #c93b2b !important; /* Vermelho clássico do DOEM */
    color: #ffffff !important;
    padding: 8px 14px !important;
}

/* 3. Ajuste de espaçamento da Apresentação e Expediente */
.intro-text, .expediente-box {
    font-size: 12px !important;
    line-height: 1.5 !important;
    color: #333333 !important;
}

/* Ícone Home com círculo vermelho suave */
.main-nav a.nav-home,
.navbar-nav li:first-child a,
.nav-link.home-icon,
.nav-home-btn {
    background: transparent !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.main-nav a.nav-home i,
.navbar-nav li:first-child a i,
.nav-link.home-icon i,
.nav-home-btn i,
.main-menu li:first-child a i {
    background-color: #d94336 !important; /* Tom vermelho suave do modelo original */
    color: #ffffff !important;
    border-radius: 50% !important; /* Formato de círculo */
    width: 22px !important;
    height: 22px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25) !important;
}

/* Alinhamento do Home.png na barra de menu */
.nav-bar ul li a.nav-home-img {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 12px !important;
    background: transparent !important;
}

.nav-bar ul li a.nav-home-img img {
    display: inline-block;
    transition: transform 0.15s ease-in-out;
}

.nav-bar ul li a.nav-home-img:hover img {
    transform: scale(1.1);
}

/* ========================================================
   REFINAMENTO DE INTERFACE: PADRÃO LEGADO DOEM / SCRIPTCASE
   ======================================================== */

/* 1. Largura Máxima e Centralização */
.container,
.main-container,
.content-wrapper,
body > div:first-child {
    max-width: 1100px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 2. Cabeçalhos de Tabela e Tipografia Condensada */
table {
    border-collapse: collapse !important;
    width: 100% !important;
    font-family: Arial, Helvetica, sans-serif !important;
}

table th,
.table thead th {
    background-color: #6ba6b8 !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: bold !important;
    text-transform: none !important;
    padding: 7px 10px !important;
    border: 1px solid #5a94a6 !important;
    text-align: center !important;
    letter-spacing: 0.2px;
}

/* Linhas Zebradas e Efeito Hover */
table td,
.table tbody td {
    font-size: 11px !important;
    padding: 6px 8px !important;
    color: #333333 !important;
    border: 1px solid #e0e0e0 !important;
    vertical-align: middle !important;
}

table tbody tr:nth-child(even) td {
    background-color: #f9f9f9 !important;
}

table tbody tr:hover td {
    background-color: #edf5f8 !important;
}

/* 3. Caixas de Busca e Formulários Compactos */
.search-box,
.search-card,
.panel-busca {
    background: #ffffff !important;
}

label {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #333333 !important;
    margin-bottom: 3px !important;
    display: inline-block !important;
}

input[type="text"],
input[type="date"],
select,
.form-control {
    font-size: 11px !important;
    height: 28px !important;
    padding: 3px 6px !important;
    border: 1px solid #b8c3c7 !important;
    border-radius: 3px !important;
    color: #333333 !important;
    background-color: #ffffff !important;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075) !important;
}

input[type="text"]:focus,
input[type="date"]:focus,
select:focus,
.form-control:focus {
    border-color: #0b6682 !important;
    outline: none !important;
    box-shadow: 0 0 4px rgba(11, 102, 130, 0.3) !important;
}

/* 4. Botões de Ação Padronizados */
.btn-pesquisar,
button[type="submit"],
.btn-search {
    height: 28px !important;
    line-height: 26px !important;
    padding: 0 14px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    border-radius: 3px !important;
    border: none !important;
    cursor: pointer !important;
    transition: background-color 0.15s ease-in-out !important;
}

/* Botões da Tabela de Ações Inferior */
.btn-download,
a.btn-success,
.btn-baixar {
    background-color: #28a745 !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: bold !important;
    padding: 3px 8px !important;
    border-radius: 3px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.btn-reportar,
a.btn-danger,
.btn-erro {
    background-color: #dc3545 !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: bold !important;
    padding: 3px 8px !important;
    border-radius: 3px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.btn-download:hover { background-color: #218838 !important; }
.btn-reportar:hover { background-color: #c82333 !important; }

/* Correção do botão Nova Publicação no Painel Admin */
.admin-nav .btn-action {
    background-color: #005a70 !important;
    color: #ffffff !important;
    padding: 7px 14px !important;
    border-radius: 3px !important;
    text-decoration: none !important;
    font-size: 12px !important;
    font-weight: bold !important;
    display: inline-block !important;
    line-height: normal !important;
}

.admin-nav .btn-action:hover {
    background-color: #004557 !important;
    color: #ffffff !important;
}

/* Paginação Estilo Scriptcase */
.sc-paginacao-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding: 8px 4px;
    font-family: Arial, sans-serif;
}

.sc-pag-esquerda {
    display: flex;
    align-items: center;
    background: #eef2f5;
    border: 1px solid #d0dbe2;
    border-radius: 4px;
    overflow: hidden;
}

.sc-irpara-label {
    font-size: 11px;
    color: #4b6572;
    padding: 5px 8px;
    background: #eef2f5;
    font-weight: 500;
}

.sc-irpara-input {
    width: 44px;
    height: 26px;
    border: none;
    border-left: 1px solid #d0dbe2;
    background: #fff;
    text-align: center;
    font-size: 12px;
    color: #333;
    outline: none;
}

.sc-irpara-input:focus {
    background-color: #fffde7;
}

.sc-pag-centro {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sc-nav-btn {
    color: #8da4b4;
    text-decoration: none;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: color 0.2s;
}

.sc-nav-btn:hover:not(.disabled) {
    color: #005a70;
}

.sc-nav-btn.disabled {
    color: #cbd5e1;
    cursor: default;
}

.sc-num-btn {
    text-decoration: none;
    font-size: 12px;
    color: #556877;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 500;
    transition: background 0.2s;
}

.sc-num-btn:hover:not(.active) {
    background-color: #e2e8f0;
    color: #000;
}

.sc-num-btn.active {
    background-color: #5472d2;
    color: #ffffff;
    font-weight: bold;
}

.sc-pag-direita {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

/* ==========================================================================
   AJUSTES DE PARIDADE VISUAL COM O SISTEMA LEGADO (FONTES, CORES E ESPAÇOS)
   ========================================================================== */

body, html {
    font-family: Arial, Helvetica, sans-serif !important;
    color: #333333;
}

/* 1. Títulos de Seção com Linha Ciano Fina */
.section-title {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 21px !important;
    font-weight: 500 !important;
    color: #007a99 !important;
    margin: 20px 0 6px 0 !important;
    padding-bottom: 5px !important;
    border-bottom: 3px solid #0097b2 !important;
}

/* 2. Textos de Apresentação e Expediente */
.secao-apresentacao p, .secao-expediente p, .texto-informativo {
    font-size: 11.5px !important;
    line-height: 1.45 !important;
    color: #333333 !important;
    margin-bottom: 8px !important;
    text-align: justify;
}

.secao-expediente strong, .secao-expediente b {
    font-size: 11px !important;
    color: #222222;
}

/* 3. Destaque Centralizado do ISSN */
.issn-bar {
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: #000000;
    margin: 10px 0 16px 0;
}

/* 4. Barra de Acessibilidade */
.barra-acessibilidade {
    background-color: #8bbecb !important;
    padding: 3px 10px !important;
    font-size: 11px !important;
    color: #1e3d48 !important;
}

.barra-acessibilidade a {
    color: #1e3d48 !important;
    font-size: 11px !important;
    font-weight: bold;
    text-decoration: none;
    margin-right: 12px;
}

/* 5. Tabelas: Dimensões e Cabeçalhos Compactos */
.tabela-legado {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 12px;
}

.tabela-legado thead th {
    background-color: #6aa4b5 !important;
    color: #ffffff !important;
    font-size: 11.5px !important;
    font-weight: bold !important;
    padding: 6px 8px !important;
    height: 30px !important;
    border-right: 1px solid rgba(255, 255, 255, 0.4) !important;
    text-align: center;
}

.tabela-legado thead th:last-child {
    border-right: none !important;
}

.tabela-legado tbody td {
    font-size: 11px !important;
    padding: 5px 8px !important;
    height: 28px !important;
    border-bottom: 1px solid #e1e8ed !important;
    color: #333333;
}

/* 6. Formulários de Pesquisa (3 Colunas) */
.form-pesquisa-box label {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #333333 !important;
    margin-bottom: 3px !important;
    display: block;
}

.form-pesquisa-box input, 
.form-pesquisa-box select {
    height: 27px !important;
    font-size: 11.5px !important;
    border: 1px solid #bcc9d2 !important;
    border-radius: 2px !important;
    padding: 2px 6px !important;
    box-sizing: border-box;
}

.form-pesquisa-box .btn-pesquisar {
    background-color: #005a70 !important;
    height: 27px !important;
    font-size: 11px !important;
    font-weight: bold !important;
    padding: 0 14px !important;
    border-radius: 2px !important;
}

/* ==========================================================================
   AJUSTES DE PARIDADE VISUAL COM O SISTEMA LEGADO (FONTES, CORES E ESPAÇOS)
   ========================================================================== */

body, html {
    font-family: Arial, Helvetica, sans-serif !important;
    color: #333333;
}

/* 1. Títulos de Seção com Linha Ciano Fina */
.section-title {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 21px !important;
    font-weight: 500 !important;
    color: #007a99 !important;
    margin: 20px 0 6px 0 !important;
    padding-bottom: 5px !important;
    border-bottom: 3px solid #0097b2 !important;
}

/* 2. Textos de Apresentação e Expediente */
.secao-apresentacao p, .secao-expediente p, .texto-informativo {
    font-size: 11.5px !important;
    line-height: 1.45 !important;
    color: #333333 !important;
    margin-bottom: 8px !important;
    text-align: justify;
}

.secao-expediente strong, .secao-expediente b {
    font-size: 11px !important;
    color: #222222;
}

/* 3. Destaque Centralizado do ISSN */
.issn-bar {
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: #000000;
    margin: 10px 0 16px 0;
}

/* 4. Barra de Acessibilidade */
.barra-acessibilidade {
    background-color: #8bbecb !important;
    padding: 3px 10px !important;
    font-size: 11px !important;
    color: #1e3d48 !important;
}

.barra-acessibilidade a {
    color: #1e3d48 !important;
    font-size: 11px !important;
    font-weight: bold;
    text-decoration: none;
    margin-right: 12px;
}

/* 5. Tabelas: Dimensões e Cabeçalhos Compactos */
.tabela-legado {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 12px;
}

.tabela-legado thead th {
    background-color: #6aa4b5 !important;
    color: #ffffff !important;
    font-size: 11.5px !important;
    font-weight: bold !important;
    padding: 6px 8px !important;
    height: 30px !important;
    border-right: 1px solid rgba(255, 255, 255, 0.4) !important;
    text-align: center;
}

.tabela-legado thead th:last-child {
    border-right: none !important;
}

.tabela-legado tbody td {
    font-size: 11px !important;
    padding: 5px 8px !important;
    height: 28px !important;
    border-bottom: 1px solid #e1e8ed !important;
    color: #333333;
}

/* 6. Formulários de Pesquisa (3 Colunas) */
.form-pesquisa-box label {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #333333 !important;
    margin-bottom: 3px !important;
    display: block;
}

.form-pesquisa-box input, 
.form-pesquisa-box select {
    height: 27px !important;
    font-size: 11.5px !important;
    border: 1px solid #bcc9d2 !important;
    border-radius: 2px !important;
    padding: 2px 6px !important;
    box-sizing: border-box;
}

.form-pesquisa-box .btn-pesquisar {
    background-color: #005a70 !important;
    height: 27px !important;
    font-size: 11px !important;
    font-weight: bold !important;
    padding: 0 14px !important;
    border-radius: 2px !important;
}

/* ==========================================================================
   AJUSTES DE PARIDADE VISUAL COM O SISTEMA LEGADO (FONTES, CORES E ESPAÇOS)
   ========================================================================== */

body, html {
    font-family: Arial, Helvetica, sans-serif !important;
    color: #333333;
}

/* 1. Títulos de Seção com Linha Ciano Fina */
.section-title {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 21px !important;
    font-weight: 500 !important;
    color: #007a99 !important;
    margin: 20px 0 6px 0 !important;
    padding-bottom: 5px !important;
    border-bottom: 3px solid #0097b2 !important;
}

/* 2. Textos de Apresentação e Expediente */
.secao-apresentacao p, .secao-expediente p, .texto-informativo {
    font-size: 11.5px !important;
    line-height: 1.45 !important;
    color: #333333 !important;
    margin-bottom: 8px !important;
    text-align: justify;
}

.secao-expediente strong, .secao-expediente b {
    font-size: 11px !important;
    color: #222222;
}

/* 3. Destaque Centralizado do ISSN */
.issn-bar {
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: #000000;
    margin: 10px 0 16px 0;
}

/* 4. Barra de Acessibilidade */
.barra-acessibilidade {
    background-color: #8bbecb !important;
    padding: 3px 10px !important;
    font-size: 11px !important;
    color: #1e3d48 !important;
}

.barra-acessibilidade a {
    color: #1e3d48 !important;
    font-size: 11px !important;
    font-weight: bold;
    text-decoration: none;
    margin-right: 12px;
}

/* 5. Tabelas: Dimensões e Cabeçalhos Compactos */
.tabela-legado {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 12px;
}

.tabela-legado thead th {
    background-color: #6aa4b5 !important;
    color: #ffffff !important;
    font-size: 11.5px !important;
    font-weight: bold !important;
    padding: 6px 8px !important;
    height: 30px !important;
    border-right: 1px solid rgba(255, 255, 255, 0.4) !important;
    text-align: center;
}

.tabela-legado thead th:last-child {
    border-right: none !important;
}

.tabela-legado tbody td {
    font-size: 11px !important;
    padding: 5px 8px !important;
    height: 28px !important;
    border-bottom: 1px solid #e1e8ed !important;
    color: #333333;
}

/* 6. Formulários de Pesquisa (3 Colunas) */
.form-pesquisa-box label {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #333333 !important;
    margin-bottom: 3px !important;
    display: block;
}

.form-pesquisa-box input, 
.form-pesquisa-box select {
    height: 27px !important;
    font-size: 11.5px !important;
    border: 1px solid #bcc9d2 !important;
    border-radius: 2px !important;
    padding: 2px 6px !important;
    box-sizing: border-box;
}

.form-pesquisa-box .btn-pesquisar {
    background-color: #005a70 !important;
    height: 27px !important;
    font-size: 11px !important;
    font-weight: bold !important;
    padding: 0 14px !important;
    border-radius: 2px !important;
}

/* Rodapé Apenas com o Logótipo */
.rodape-institucional {
    background-color: #00657f;
    width: 100%;
    padding: 18px 0;
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rodape-conteudo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-rodape {
    height: 52px;
    width: auto;
    display: block;
}

/* Rodapé Institucional Completo */
.rodape-institucional {
    background-color: #00657f;
    width: 100%;
    padding: 16px 0;
    margin-top: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rodape-conteudo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    width: 95%;
}

.logo-rodape {
    height: 48px;
    width: auto;
    display: block;
}

.rodape-divisor {
    width: 1px;
    height: 46px;
    background-color: rgba(255, 255, 255, 0.4);
}

.rodape-textos {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}

.rodape-textos p {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    color: #ffffff;
    line-height: 1.35;
}

/* ==========================================================================
   TIPOGRAFIA E ESCALA OFICIAL EXTRAÍDA DO SCRIPTCASE ORIGINAL
   ========================================================================== */

/* Fonte Base Global do Portal */
body, html, table, td, th, input, select, textarea, button {
    font-family: Tahoma, Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased;
}

/* Títulos das Seções (Apresentação, Expediente, Edições Atuais) */
.section-title {
    font-family: Tahoma, Arial, sans-serif !important;
    font-size: 18px !important;
    font-weight: bold !important;
    color: #00657f !important;
    letter-spacing: -0.2px;
}

/* Menu Superior Institucional */
.main-nav ul li a {
    font-family: Tahoma, Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: bold !important;
    letter-spacing: 0px;
}

/* Barra de Acessibilidade */
.barra-acessibilidade, .barra-acessibilidade a, .barra-acessibilidade span {
    font-family: Tahoma, Arial, sans-serif !important;
    font-size: 10px !important;
    font-weight: bold !important;
    color: #1e3d48 !important;
}

/* Textos Corridos de Apresentação e Expediente */
.secao-apresentacao p, .secao-expediente p, .texto-informativo {
    font-family: Tahoma, Arial, sans-serif !important;
    font-size: 11px !important;
    line-height: 1.5 !important;
    color: #222222 !important;
}

.secao-expediente b, .secao-expediente strong {
    font-family: Tahoma, Arial, sans-serif !important;
    font-size: 11px !important;
    color: #111111 !important;
}

/* Cabeçalho das Tabelas do Scriptcase */
.tabela-legado thead th {
    font-family: Tahoma, Arial, sans-serif !important;
    font-size: 11px !important;
    font-weight: bold !important;
    height: 28px !important;
}

/* Células e Registros da Tabela */
.tabela-legado tbody td {
    font-family: Tahoma, Arial, sans-serif !important;
    font-size: 10.5px !important;
    color: #264c66 !important;
    padding: 4px 6px !important;
    height: 26px !important;
}

/* Formulários de Pesquisa */
.form-pesquisa-box label {
    font-family: Tahoma, Arial, sans-serif !important;
    font-size: 11px !important;
    font-weight: bold !important;
    color: #333333 !important;
}

.form-pesquisa-box input, 
.form-pesquisa-box select {
    font-family: Tahoma, Arial, sans-serif !important;
    font-size: 11px !important;
    color: #222222 !important;
}

/* Barra de Paginação Scriptcase */
.sc-paginacao-container,
.sc-irpara-label,
.sc-irpara-input,
.sc-num-btn,
.sc-contador-registros {
    font-family: Tahoma, Arial, sans-serif !important;
    font-size: 10.5px !important;
}



/* ==========================================================================
   FOLHA DEFINITIVA: LARGURA 100%, CONTENTOR 980px E TIPOGRAFIA ENCORPADA (14px)
   ========================================================================== */

/* 1. Base Global */
body, html {
    font-family: Arial, Tahoma, sans-serif !important;
    font-size: 14px !important;
    color: #333333 !important;
    margin: 0;
    padding: 0;
}

/* 2. Barras Superiores e Rodapé a 100% de Largura */
.main-header,
.nav-bar,
.main-nav-wrapper {
    width: 100% !important;
    background-color: #00657f !important;
    display: block !important;
    border-top: 1px solid #005266 !important;
}

.barra-acessibilidade-wrapper,
.faixa-acessibilidade {
    width: 100% !important;
    background-color: #8bbecb !important;
    display: block !important;
    border-bottom: 1px solid #72a6b3 !important;
}

/* 3. Contentores Internos Centralizados (980px) */
.header-content,
.main-nav,
.barra-acessibilidade,
.site-wrapper {
    max-width: 980px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

.site-wrapper {
    padding: 0 10px 40px 10px !important;
}

/* 4. Menu Superior com Separadores */
.main-nav ul {
    display: flex !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.main-nav ul li {
    border-right: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.main-nav ul li:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.main-nav ul li a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 14px !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: bold !important;
    text-decoration: none !important;
}

/* 5. Títulos de Secção */
.section-title {
    font-size: 22px !important;
    font-weight: bold !important;
    color: #00657f !important;
    margin-top: 25px !important;
    margin-bottom: 12px !important;
    padding-bottom: 6px !important;
    border-bottom: 3px solid #0097b2 !important;
}

/* 6. Textos de Apresentação e Expediente */
.secao-apresentacao p,
.secao-expediente p,
.texto-informativo,
p {
    font-size: 13.5px !important;
    line-height: 1.65 !important;
    color: #2b2b2b !important;
    margin-bottom: 12px !important;
    text-align: justify;
}

.secao-expediente strong,
.secao-expediente b {
    font-size: 13.5px !important;
    color: #000000 !important;
}

/* 7. Tabelas */
.tabela-legado {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-bottom: 20px !important;
}

.tabela-legado thead th {
    background-color: #6aa4b5 !important;
    color: #ffffff !important;
    font-size: 13.5px !important;
    font-weight: bold !important;
    padding: 8px 10px !important;
    height: 36px !important;
    border-right: 1px solid rgba(255, 255, 255, 0.4) !important;
    text-align: center !important;
}

.tabela-legado tbody td {
    font-size: 13px !important;
    padding: 8px 10px !important;
    height: 32px !important;
    color: #264c66 !important;
    border-bottom: 1px solid #e1e8ed !important;
}

.tabela-legado tbody td strong {
    font-size: 13px !important;
}

/* 8. Formulários de Pesquisa */
.form-pesquisa-box label {
    font-size: 13px !important;
    font-weight: bold !important;
    margin-bottom: 5px !important;
    display: block !important;
}

.form-pesquisa-box input,
.form-pesquisa-box select {
    font-size: 13px !important;
    height: 32px !important;
    border: 1px solid #bcc9d2 !important;
    border-radius: 2px !important;
    padding: 4px 8px !important;
    box-sizing: border-box !important;
}

.form-pesquisa-box .btn-pesquisar {
    background-color: #005a70 !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: bold !important;
    height: 32px !important;
    padding: 0 16px !important;
    border: none !important;
    border-radius: 2px !important;
    cursor: pointer !important;
}

/* 9. Rodapé Institucional */
.rodape-institucional {
    background-color: #00657f !important;
    width: 100% !important;
    padding: 18px 0 !important;
    margin-top: 40px !important;
}

.rodape-conteudo {
    max-width: 980px !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 20px !important;
}

.logo-rodape {
    height: 48px !important;
    width: auto !important;
}

.rodape-divisor {
    width: 1px !important;
    height: 46px !important;
    background-color: rgba(255, 255, 255, 0.4) !important;
}

.rodape-textos p {
    margin: 0 !important;
    font-size: 12px !important;
    color: #ffffff !important;
    line-height: 1.4 !important;
    text-align: left !important;
}

/* Alinhamento do Topo e Logotipo a Esquerda */
.header-content, .topo-container {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
}

/* Espaçamento do ISSN */
.issn-bar {
    text-align: center !important;
    font-size: 13px !important;
    font-weight: bold !important;
    color: #000000 !important;
    margin: 14px 0 22px 0 !important;
}

/* Alinhamento do Topo e Logotipo a Esquerda */
.header-content, .topo-container {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
}

/* Espaçamento do ISSN */
.issn-bar {
    text-align: center !important;
    font-size: 13px !important;
    font-weight: bold !important;
    color: #000000 !important;
    margin: 14px 0 22px 0 !important;
}

/* ==========================================================================
   ESTRUTURA DEFINITIVA DO TOPO E MENU LEGADO
   ========================================================================== */

/* 1. Área Superior do Logótipo (Fundo Branco) */
.topo-institucional-bg {
    width: 100% !important;
    background-color: #ffffff !important;
    padding: 12px 0 10px 0 !important;
    display: block !important;
}

.topo-container {
    max-width: 980px !important;
    width: 100% !important;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
}

.logo-box {
    display: block !important;
}

.img-logo-topo {
    max-height: 85px !important;
    width: auto !important;
    display: block !important;
}

/* 2. Faixa 100% do Menu Principal */
.faixa-menu-full {
    width: 100% !important;
    background-color: #00657f !important;
    border-top: 1px solid #00556b !important;
    display: block !important;
}

.menu-container {
    max-width: 980px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
}

.menu-lista-legada {
    display: flex !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: stretch !important;
}

.menu-lista-legada li {
    margin: 0 !important;
    padding: 0 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.menu-lista-legada li:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.menu-lista-legada li a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 12px !important;
    color: #ffffff !important;
    font-family: Arial, Tahoma, sans-serif !important;
    font-size: 13px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: background 0.15s !important;
}

.menu-lista-legada li a:hover {
    background-color: rgba(0, 0, 0, 0.2) !important;
}

.menu-lista-legada li a.btn-home {
    padding: 8px 14px !important;
    background-color: #8b0000 !important;
    color: #ffffff !important;
}

/* 3. Faixa 100% de Acessibilidade */
.faixa-acessibilidade-full {
    width: 100% !important;
    background-color: #8bbecb !important;
    border-bottom: 1px solid #72a6b3 !important;
    display: block !important;
}

.acessibilidade-container {
    max-width: 980px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 4px 10px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
}

.acessibilidade-container a {
    font-family: Arial, Tahoma, sans-serif !important;
    font-size: 11.5px !important;
    font-weight: bold !important;
    color: #1e3d48 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

/* 4. Linha do ISSN */
.issn-bar {
    text-align: center !important;
    font-family: Arial, Tahoma, sans-serif !important;
    font-size: 13px !important;
    font-weight: bold !important;
    color: #000000 !important;
    margin: 14px 0 22px 0 !important;
}

/* Correção de Fundo Branco no Topo do Logótipo */
body {
    background-color: #ffffff !important;
}

.topo-institucional-bg,
header.main-header,
.main-header {
    background-color: #ffffff !important;
    background: #ffffff !important;
    width: 100% !important;
    padding: 10px 0 !important;
    display: block !important;
}

.topo-container,
.header-content {
    max-width: 980px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 10px !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    background: transparent !important;
}

.img-logo-topo,
.logo-box img {
    max-height: 85px !important;
    height: auto !important;
    display: block !important;
}

/* ==========================================================================
   GRELHA DE EDIÇÕES ANTERIORES E BOTÕES DE AÇÃO (LEGADO)
   ========================================================================== */

/* Título com traço ciano/turquesa */
.edicoes-anteriores-title {
    font-family: Arial, Tahoma, sans-serif !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    color: #176f87 !important;
    margin: 30px 0 15px 0 !important;
    padding-bottom: 6px !important;
    border-bottom: 2.5px solid #1ba5b8 !important;
}

/* Estrutura da Tabela */
.tabela-edicoes-anteriores {
    width: 100% !important;
    border-collapse: collapse !important;
    background-color: #ffffff !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
    margin-bottom: 25px !important;
}

/* Cabeçalho da Tabela */
.tabela-edicoes-anteriores thead th {
    background-color: #78aab6 !important;
    color: #000000 !important;
    font-family: Arial, Tahoma, sans-serif !important;
    font-size: 13px !important;
    font-weight: bold !important;
    text-align: center !important;
    padding: 10px 8px !important;
    border-right: 1px solid rgba(255, 255, 255, 0.6) !important;
}

.tabela-edicoes-anteriores thead th:last-child {
    border-right: none !important;
}

/* Células e Linhas */
.tabela-edicoes-anteriores tbody tr {
    border-bottom: 1px solid #f0f4f7 !important;
    transition: background 0.15s !important;
}

.tabela-edicoes-anteriores tbody tr:hover {
    background-color: #f9fbfd !important;
}

.tabela-edicoes-anteriores tbody td {
    font-family: Arial, Tahoma, sans-serif !important;
    font-size: 12.5px !important;
    color: #555555 !important;
    padding: 9px 12px !important;
    text-align: center !important;
    vertical-align: middle !important;
}

.tabela-edicoes-anteriores tbody td:first-child {
    text-align: left !important;
    padding-left: 18px !important;
}

/* Coluna de Ações */
.coluna-acoes {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

/* Botão Verde de Download */
.btn-acao-download {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background-color: #28a745 !important;
    color: #ffffff !important;
    font-family: Arial, Tahoma, sans-serif !important;
    font-size: 12px !important;
    font-weight: bold !important;
    padding: 5px 12px !important;
    border-radius: 3px !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
}

.btn-acao-download:hover {
    background-color: #218838 !important;
    color: #ffffff !important;
}

/* Botão Vermelho de Reportar Erro */
.btn-acao-reportar {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background-color: #dc3545 !important;
    color: #ffffff !important;
    font-family: Arial, Tahoma, sans-serif !important;
    font-size: 12px !important;
    font-weight: bold !important;
    padding: 5px 12px !important;
    border-radius: 3px !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
}

.btn-acao-reportar:hover {
    background-color: #c82333 !important;
    color: #ffffff !important;
}

/* Régua de Paginação Legada */
.sc-paginacao-legada {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
    margin: 25px 0 35px 0 !important;
    font-family: Arial, Tahoma, sans-serif !important;
    font-size: 13px !important;
    color: #666666 !important;
    position: relative !important;
}

.sc-paginacao-legada .btn-ponta-esquerda {
    position: absolute !important;
    left: 0 !important;
    border: 1px solid #dcdcdc !important;
    background-color: #ffffff !important;
    padding: 2px 8px !important;
    border-radius: 3px !important;
    color: #777777 !important;
    font-size: 11px !important;
}

.sc-paginacao-legada .btn-ponta-direita {
    position: absolute !important;
    right: 0 !important;
    color: #777777 !important;
    font-size: 13px !important;
}

.sc-paginacao-legada .pag-numero {
    color: #555555 !important;
    text-decoration: none !important;
    font-weight: bold !important;
    padding: 4px 6px !important;
    cursor: pointer !important;
}

.sc-paginacao-legada .pag-numero.ativa {
    background-color: #5d78ff !important;
    color: #ffffff !important;
    width: 26px !important;
    height: 26px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
}

/* ==========================================================================
   ESTILOS EXATOS: TABELA DE EDIÇÕES ANTERIORES E AÇÕES
   ========================================================================== */

/* Cabeçalho da Tabela das Edições */
.tabela-legado thead th {
    background-color: #78aab6 !important;
    color: #000000 !important;
    font-family: Arial, Tahoma, sans-serif !important;
    font-size: 13px !important;
    font-weight: bold !important;
    text-align: center !important;
    padding: 10px 8px !important;
    border-right: 1px solid rgba(255, 255, 255, 0.6) !important;
}

.tabela-legado thead th:last-child {
    border-right: none !important;
}

/* Alinhamento das Células */
.tabela-legado tbody td {
    font-family: Arial, Tahoma, sans-serif !important;
    font-size: 12.5px !important;
    color: #444444 !important;
    padding: 8px 10px !important;
    text-align: center !important;
    vertical-align: middle !important;
}

.tabela-legado tbody td:first-child {
    text-align: left !important;
    padding-left: 16px !important;
    color: #2b2b2b !important;
}

/* Coluna de Ações */
.actions-col {
    text-align: center !important;
    white-space: nowrap !important;
}

/* Botão Verde de Download */
.btn-download {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background-color: #28a745 !important;
    color: #ffffff !important;
    font-family: Arial, Tahoma, sans-serif !important;
    font-size: 12px !important;
    font-weight: bold !important;
    padding: 5px 12px !important;
    border-radius: 3px !important;
    text-decoration: none !important;
    border: none !important;
    margin-right: 4px !important;
    cursor: pointer !important;
    transition: background-color 0.15s ease !important;
}

.btn-download:hover {
    background-color: #218838 !important;
    color: #ffffff !important;
}

.btn-download i {
    font-size: 11px !important;
}

/* Botão Vermelho de Reportar Erro */
.btn-report {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background-color: #dc3545 !important;
    color: #ffffff !important;
    font-family: Arial, Tahoma, sans-serif !important;
    font-size: 12px !important;
    font-weight: bold !important;
    padding: 5px 12px !important;
    border-radius: 3px !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer !important;
    transition: background-color 0.15s ease !important;
}

.btn-report:hover {
    background-color: #c82333 !important;
    color: #ffffff !important;
}

.btn-report i {
    font-size: 11px !important;
}

/* Paginação - Bolinha Azul para o Item Ativo */
.sc-paginacao-container,
.paginacao {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    margin: 25px 0 35px 0 !important;
}

.sc-num-btn.ativo,
.pag-link.active,
.paginacao .active {
    background-color: #5d78ff !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    width: 28px !important;
    height: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: bold !important;
    border: none !important;
}

.sc-num-btn,
.pag-link {
    color: #555555 !important;
    text-decoration: none !important;
    font-weight: bold !important;
    padding: 2px 6px !important;
}

/* ==========================================================================
   CENTRALIZAÇÃO EXATA DOS BOTÕES NA COLUNA AÇÕES
   ========================================================================== */

/* Garante alinhamento centralizado em todas as variações de classe da célula de Ações */
.tabela-legado tbody td.actions-col,
.tabela-edicoes-anteriores tbody td.actions-col,
.tabela-legado tbody td:last-child,
.tabela-edicoes-anteriores tbody td:last-child {
    text-align: center !important;
    vertical-align: middle !important;
    padding: 6px 8px !important;
}

/* Flexbox centralizado para o conjunto dos dois botões */
.tabela-legado tbody td.actions-col,
.tabela-legado tbody td:last-child {
    display: table-cell !important;
}

.tabela-legado tbody td.actions-col > *,
.tabela-edicoes-anteriores tbody td.actions-col > * {
    vertical-align: middle !important;
}

.btn-download,
.btn-report {
    margin: 2px 3px !important;
}

/* ==========================================================================
   ADAPTAÇÃO RESPONSIVA PARA DISPOSITIVOS MÓVEIS (MOBILE & TABLET)
   ========================================================================== */

/* 1. Contêiner de Tabelas com Rolagem Lateral Suave no Mobile */
.table-responsive,
.tabela-container-scroll {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    margin-bottom: 20px !important;
}

@media (max-width: 768px) {
    /* Ajuste da largura geral */
    .site-wrapper,
    .topo-container,
    .menu-container,
    .acessibilidade-container,
    .rodape-conteudo {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* Topo e Logotipo */
    .topo-container {
        justify-content: center !important;
    }

    .img-logo-topo {
        max-height: 65px !important;
        width: auto !important;
    }

    /* Menu Superior com Rolagem Horizontal Touch */
    .menu-container {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 0 !important;
    }

    .menu-lista-legada {
        flex-wrap: nowrap !important;
        width: max-content !important;
    }

    .menu-lista-legada li a {
        padding: 9px 12px !important;
        font-size: 12px !important;
    }

    /* Barra de Acessibilidade com Rolagem Horizontal */
    .acessibilidade-container {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        white-space: nowrap !important;
        gap: 12px !important;
    }

    /* Seções Apresentação e Expediente empilhadas verticalmente */
    .secao-apresentacao,
    .secao-expediente {
        width: 100% !important;
        float: none !important;
        margin-bottom: 20px !important;
    }

    /* Blocos de Pesquisa: 1 coluna vertical por linha */
    .secao-pesquisa-container,
    .pesquisa-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }

    .form-pesquisa-box {
        width: 100% !important;
    }

    .form-pesquisa-box input,
    .form-pesquisa-box select,
    .form-pesquisa-box .btn-pesquisar {
        width: 100% !important;
    }

    /* Tabelas Legadas no Celular: rolagem protegida sem quebrar layout */
    .tabela-legado,
    .tabela-edicoes-anteriores {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        white-space: nowrap !important;
    }

    /* Botões da Coluna Ações no Celular */
    .btn-download,
    .btn-report {
        font-size: 11px !important;
        padding: 6px 10px !important;
    }

    /* Rodapé Institucional */
    .rodape-conteudo {
        flex-direction: column !important;
        text-align: center !important;
        gap: 12px !important;
    }

    .rodape-divisor {
        display: none !important;
    }

    .rodape-textos p {
        text-align: center !important;
        font-size: 11px !important;
    }
}

/* ==========================================================================
   CORREÇÃO RESPONSIVA PARA MOBILE (ATÉ 768px)
   ========================================================================== */
@media (max-width: 768px) {
    /* Ocupar 100% da tela do aparelho */
    html, body {
        width: 100% !important;
        overflow-x: hidden !important;
        font-size: 13px !important;
    }

    .site-wrapper,
    .container,
    .main-content,
    .header-content,
    .topo-container,
    .menu-container,
    .acessibilidade-container,
    .rodape-conteudo {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        margin: 0 !important;
    }

    /* Topo e Logotipo */
    .topo-container {
        justify-content: center !important;
        padding: 8px 10px !important;
    }

    .img-logo-topo {
        max-height: 52px !important;
        width: auto !important;
    }

    /* Menu com rolagem horizontal suave */
    .menu-container {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 0 !important;
    }

    .menu-lista-legada {
        display: flex !important;
        flex-wrap: nowrap !important;
        width: max-content !important;
    }

    .menu-lista-legada li a {
        padding: 8px 10px !important;
        font-size: 11.5px !important;
    }

    /* Barra de Acessibilidade com rolagem touch */
    .acessibilidade-container {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        white-space: nowrap !important;
        gap: 10px !important;
    }

    .acessibilidade-container a {
        font-size: 10.5px !important;
    }

    /* Apresentação e Expediente em coluna única vertical */
    .row,
    .apresentacao-expediente-wrapper,
    .secao-apresentacao-expediente {
        display: block !important;
        width: 100% !important;
    }

    .secao-apresentacao,
    .secao-expediente,
    .col-md-6,
    .col-lg-6 {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 20px !important;
        box-sizing: border-box !important;
    }

    .secao-apresentacao p,
    .secao-expediente p {
        font-size: 13px !important;
        line-height: 1.55 !important;
    }

    /* Blocos de pesquisa empilhados em 1 coluna vertical */
    .pesquisa-grid,
    .secao-pesquisas,
    .row-pesquisas {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        width: 100% !important;
    }

    .form-pesquisa-box,
    .col-md-4,
    .col-lg-4 {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .form-pesquisa-box input,
    .form-pesquisa-box select,
    .form-pesquisa-box .btn-pesquisar {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Tabelas com rolagem horizontal sem deformar o layout */
    .tabela-legado,
    .tabela-edicoes-anteriores {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        white-space: nowrap !important;
    }

    /* Botões da coluna ações */
    .actions-col {
        display: flex !important;
        justify-content: center !important;
        gap: 4px !important;
    }

    .btn-download,
    .btn-report {
        font-size: 11px !important;
        padding: 5px 8px !important;
    }
}