  /* Container portal */


/* ==========================================
   PORTAIS DE INTERESSE
   Visual institucional moderno e responsivo
   ========================================== */

.containerportal {
    --portais-azul: #17658a;
    --portais-azul-escuro: #124b68;
    --portais-azul-claro: #eaf4f8;
    --portais-texto: #344654;
    --portais-borda: #e3ebf0;

    width: 100%;
    max-width: 1320px;
    margin: 32px auto 48px;
    padding: 38px 34px;
    box-sizing: border-box;

    background: #ffffff;
    color: var(--portais-texto);
    font-family: 'Lato', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;

    border: 1px solid #edf1f4;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(30, 65, 85, 0.06);
}

/* Cabeçalho da seção */

.portais-cabecalho {
    max-width: 850px;
    margin: 0 auto 34px;
    text-align: center;
}

.portais-etiqueta {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 13px;

    color: var(--portais-azul);
    background: var(--portais-azul-claro);
    border: 1px solid #d9eaf2;
    border-radius: 30px;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

.titulo-portais {
    margin: 0;
    color: var(--portais-azul-escuro);

    font-family: 'Lato', Arial, sans-serif;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.7px;

    text-align: center;
    text-shadow: none;
}

.linha-portais {
    display: block;
    width: 64px;
    height: 4px;
    margin: 18px auto 20px;

    background: linear-gradient(
        90deg,
        #17658a,
        #70bdca
    );

    border-radius: 10px;
}

.portais-intro {
    max-width: 800px;
    margin: 0 auto;

    color: #61717d;
    font-size: 16px;
    line-height: 1.85;
    text-align: center;
}

/* Área da tabela */

.tabela-portal-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--portais-borda);
    border-radius: 12px;

    background: #ffffff;
    -webkit-overflow-scrolling: touch;
}

/* Tabela */

.tabela-portal {
    width: 100%;
    min-width: 760px;

    margin: 0;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;

    font-family: 'Lato', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.65;
}

/* Cabeçalho */

.tabela-portal thead tr {
    background: #f0f6f9;
    color: var(--portais-azul-escuro);
}

.tabela-portal thead th {
    padding: 17px 18px;

    border: 0;
    border-bottom: 1px solid #dce8ee;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-align: left;
    text-transform: uppercase;
    vertical-align: middle;
}

/* Conteúdo */

.tabela-portal tbody td {
    padding: 17px 18px;

    color: #455663;
    background: #ffffff;

    border: 0;
    border-bottom: 1px solid #edf1f4;

    text-align: left;
    vertical-align: top;

    overflow-wrap: anywhere;
    transition: background-color 0.2s ease;
}

/* Largura equilibrada das colunas */

.tabela-portal th:nth-child(1),
.tabela-portal td:nth-child(1) {
    width: 28%;
}

.tabela-portal th:nth-child(2),
.tabela-portal td:nth-child(2) {
    width: 13%;
}

.tabela-portal th:nth-child(3),
.tabela-portal td:nth-child(3) {
    width: 21%;
}

.tabela-portal th:nth-child(4),
.tabela-portal td:nth-child(4) {
    width: 38%;
}

/* Linhas alternadas */

.tabela-portal tbody tr:nth-child(even) td {
    background: #f9fbfc;
}

/* Interação discreta */

.tabela-portal tbody tr:hover td {
    background: #edf6fa;
}

.tabela-portal tbody tr:last-child td {
    border-bottom: 0;
}

/* Links externos */

.tabela-portal a {
    display: inline;
    color: #17658a;

    font-size: 13px;
    font-weight: 700;
    text-decoration: none;

    overflow-wrap: anywhere;
    word-break: normal;

    transition: color 0.2s ease;
}

.tabela-portal a:hover {
    color: #0d405a;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tabela-portal a:focus-visible {
    outline: 2px solid #17658a;
    outline-offset: 4px;
    border-radius: 2px;
}

/* Telas médias */

@media (max-width: 900px) {
    .containerportal {
        margin: 24px auto 36px;
        padding: 28px 22px;
    }

    .portais-cabecalho {
        margin-bottom: 28px;
    }

    .tabela-portal thead th,
    .tabela-portal tbody td {
        padding: 14px;
    }
}

/* Celulares */

@media (max-width: 600px) {
    .containerportal {
        margin: 18px auto 28px;
        padding: 24px 14px;

        border-radius: 12px;
        box-shadow: 0 4px 18px rgba(30, 65, 85, 0.05);
    }

    .portais-cabecalho {
        margin-bottom: 24px;
    }

    .portais-etiqueta {
        font-size: 10px;
    }

    .titulo-portais {
        font-size: 28px;
        letter-spacing: -0.4px;
    }

    .linha-portais {
        margin: 15px auto 17px;
    }

    .portais-intro {
        font-size: 14px;
        line-height: 1.8;
        text-align: left;
    }

    .tabela-portal-wrapper {
        border-radius: 9px;
    }

    .tabela-portal {
        min-width: 720px;
        font-size: 13px;
    }

    .tabela-portal thead th {
        font-size: 10px;
    }

    .tabela-portal thead th,
    .tabela-portal tbody td {
        padding: 12px;
    }
}


/* Observação abaixo da tabela de portais */

.portais-observacao {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    margin: 20px 0 0;
    padding: 15px 18px;

    background: #f5f9fb;
    border: 1px solid #e3edf2;
    border-radius: 9px;

    color: #61717d;
    font-size: 13px;
    line-height: 1.7;
}

.portais-observacao-icone {
    flex: 0 0 auto;
    color: #17658a;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .portais-observacao {
        padding: 12px;
        font-size: 12px;
    }
}


/* Links de documentos PDF */

.tabela-portal .documento-link-icone {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 23px;
    height: 23px;
    margin-right: 5px;

    color: #17658a;
    background: #eaf4f8;
    border-radius: 6px;

    font-size: 15px;
    font-weight: 700;
    vertical-align: middle;
}

.tabela-portal a:hover .documento-link-icone {
    color: #ffffff;
    background: #17658a;
}

@media (max-width: 600px) {
    .tabela-portal .documento-link-icone {
        width: 21px;
        height: 21px;
    }
}

.subtitulo-h2 {
  text-align: left;
  color: #003366;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  font-family: Arial, sans-serif;
  margin-bottom: 10px;
  font-size: 25px;
}

/*TABELA LEGISLACAO*/
.tabela-legislacao {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-family: Arial, sans-serif;
}

.tabela-legislacao thead th {
    background-color: #003366;
    color: white;
    font-weight: bold;
    text-align: left;
    padding: 10px;
    border: 1px solid #ccc;
}

.tabela-legislacao tbody td {
    padding: 10px;
    border: 1px solid #ccc;
    vertical-align: top;
}

.tabela-legislacao a {
    font-size: 0.9em;
    color: #003366;
    text-decoration: underline;
}

.titulo-legislacao {
    text-align: center;
    color: #003366;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-family: Arial, sans-serif;
    margin-top: 40px;
    margin-bottom: 20px;
}

/*tab requerimento*/
.titulo-requerimentos {
    text-align: center;
    color: #003366; /* Azul escuro */
    text-shadow: 1px 1px 2px #999;
    margin-bottom: 20px;
  }
  
  .tabela-requerimentos {
    width: 100%;
    border-collapse: collapse;
    margin: 20px auto;
    font-family: Arial, sans-serif;
  }
  
  .tabela-requerimentos th,
  .tabela-requerimentos td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
  }
  
  .tabela-requerimentos th {
    background-color: #f4f4f4;
    color: #003366;
  }
  
  .tabela-requerimentos a {
    color: #007BFF;
    text-decoration: none;
  }
  
  .tabela-requerimentos a:hover {
    text-decoration: underline;
  }
  
  /*inspeção*/

  .link-autoinspecao {
    display: block;
    background-color: #f0f8ff;
    color: #003366;
    padding: 12px 16px;
    margin-bottom: 12px;
    text-decoration: none;
    border: 1px solid #d0e4f7;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .link-autoinspecao:hover {
    background-color: #e6f0ff;
    color: #001f4d;
  }
/*   
  h3 {
    color: #003366;
    font-weight: bold;
    margin-top: 40px;
    text-align: center;
  } */
  
  .containerportal h3 {
    color: #003366;
    font-weight: bold;
    margin-top: 40px;
    text-align: center;
}
  
/* =========================================
   ROTEIROS DE AUTOINSPEÇÃO
   Estilos compartilhados da área de portais
========================================= */

.containerportal .portais-grupo {
    margin-top: 34px;
    min-width: 0;
}

.containerportal .portais-grupo + .portais-grupo {
    padding-top: 28px;
    border-top: 1px solid #e6edf1;
}

.containerportal .portais-subtitulo {
    position: relative;
    margin: 0 0 18px;
    padding: 0 0 12px 16px;
    color: #17658a;
    font-family: inherit;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    border-bottom: 1px solid #e6edf1;
}

.containerportal .portais-subtitulo::before {
    content: "";
    position: absolute;
    top: 2px;
    bottom: 14px;
    left: 0;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, #17658a, #65b9c9);
}

.containerportal .tabela-portal-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e1e9ee;
    border-radius: 10px;
    background: #ffffff;
}

.containerportal .tabela-portal-wrapper:focus-visible {
    outline: 3px solid rgba(23, 101, 138, 0.25);
    outline-offset: 3px;
}

.containerportal .tabela-portal {
    width: 100%;
    min-width: 620px;
    margin: 0;
    border-collapse: collapse;
    background: #ffffff;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
}

.containerportal .tabela-portal thead tr {
    background: #17658a;
    color: #ffffff;
}

.containerportal .tabela-portal th {
    padding: 14px 16px;
    border: 1px solid #17658a;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.35px;
}

.containerportal .tabela-portal td {
    padding: 13px 16px;
    border: 1px solid #e5ebef;
    color: #344653;
    text-align: left;
    vertical-align: middle;
    overflow-wrap: anywhere;
}

.containerportal .tabela-portal tbody tr:nth-child(even) {
    background: #f5f9fb;
}

.containerportal .tabela-portal tbody tr:hover {
    background: #edf6fa;
}

.containerportal .tabela-portal tbody tr:last-child td {
    border-bottom: 0;
}

.containerportal .tabela-portal a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #17658a;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.containerportal .tabela-portal a:hover {
    color: #0d435e;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.containerportal .tabela-portal a:focus-visible {
    outline: 2px solid #17658a;
    outline-offset: 4px;
    border-radius: 3px;
}

.containerportal .documento-link-icone {
    display: inline-flex;
    flex: 0 0 23px;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    color: #17658a;
    background: #e5f1f6;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

.containerportal .tabela-portal a:hover .documento-link-icone {
    color: #ffffff;
    background: #17658a;
}

.containerportal .documento-indisponivel {
    display: inline-block;
    color: #6b7780;
    font-size: 12px;
    font-style: italic;
    line-height: 1.5;
}

.containerportal .portais-observacao {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 26px 0 0;
    padding: 15px 17px;
    border: 1px solid #dceaf0;
    border-radius: 9px;
    background: #f5fafc;
    color: #4c606c;
    font-size: 13px;
    line-height: 1.7;
}

.containerportal .portais-observacao-icone {
    flex: 0 0 auto;
    color: #17658a;
    font-size: 17px;
    font-weight: 700;
}

/* Responsividade */
@media (max-width: 768px) {
    .containerportal .portais-grupo {
        margin-top: 27px;
    }

    .containerportal .portais-grupo + .portais-grupo {
        padding-top: 23px;
    }

    .containerportal .portais-subtitulo {
        margin-bottom: 14px;
        font-size: 19px;
    }

    .containerportal .tabela-portal th,
    .containerportal .tabela-portal td {
        padding: 11px 12px;
    }
}

@media (max-width: 480px) {
    .containerportal .portais-subtitulo {
        font-size: 17px;
    }

    .containerportal .portais-observacao {
        gap: 8px;
        padding: 12px;
        font-size: 12px;
    }
}
