/* ==========================
   RESET
========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}
html,
body{


    height: 100%;
   

}
body{

    font-family:'Poppins',sans-serif;
    background:#f5f5f8;
    color:#333;

}
body{
    font-family:'Inter',sans-serif;
}
a{

    text-decoration:none;
    color:inherit;

}

img{

    max-width:100%;
    display:block;

}



.main{
    display: flex;
    flex:1;
}

/* ==========================
        MENU
========================== */

.main-menu {
    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    align-items: center;

    height: 50px;
    padding: 0 30px;

    background: #1139A8;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.main-menu .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
}

.main-menu nav {
    flex: 1;
    margin-left: 40px;
}

.main-menu nav ul {
    display: flex;
    justify-content: space-evenly;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu nav a {
    color: #fff;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 6px;
    transition: .2s;
}

.main-menu nav a:hover {
    background: rgba(255,255,255,.15);
}

.menu-toggle {
    display: none;
}
#menu {
    flex: 1;
    display: flex;
    justify-content: center; /* centraliza o menu */
}

#menu ul {
    display: flex;
    align-items: center;
    gap: 12px;              /* controla a distância entre os itens */
    margin: 0;
    padding: 0;
    list-style: none;
    background: #677db9;

    display: none;
}
#menu a {
    padding: 8px 10px;
}









/* ==========================
        DARKMODE
========================== */


body.dark-mode {
    background: #090b11;
    color: #f5f5f5;
}
body.dark-mode .card {
    background: #2b2b2b;
    color: #fff;
}

body.dark-mode .table-container {
    background: #252525;
}
body.dark-mode .tabela-diretoria {
    background: #252525;
}

body.dark-mode table {
    color: #fff;
}

body.dark-mode th {
    background: #1139A8;
}

body.dark-mode td {
    border-color: #444;
}
body.dark-mode .box {
    background: #0e111b;
   
}
body.dark-mode .termo {
   
    color: #a8a8a8;
}
body.dark-mode #portal {
   
   background: #131722;
}
body.dark-mode .content {
   
  background: #171e2c;
border: none;
}
body.dark-mode #explorer-body {
   
  background: #111724;
border: none;
}
body.dark-mode .sidebar{
   
  background: #171e2c;
border: none;
}

body.dark-mode .pdf-card {
   
  background: #171e2c;
border: none;
border: 1px solid #364c6e;
color: #818ea1;
}

body.dark-mode .panel-title{

  background: #101522;
  border-bottom:1px solid #141824;
  color: #9ca7bd;

}
body.dark-mode #explorer-header{
     background: #101522;
     border: none;
}
body.dark-mode .tree-item{

    color: #c5c5c5;

}
body.dark-mode .tree-item.active{

     background: #0c101a;
    border-left:4px solid #1976D2;
    border-radius:4px;
    font-weight:600;
     text-decoration:none;

}

body.dark-mode .tree-item:hover:not(.active){

    background:#2f3644;
     text-decoration: underline;

}

body.dark-mode .topbar{
 /*background: #080911;*/
background: #0f2775;
border-bottom: none;
}

body.dark-mode .topbar span {
 /*background: #080911;*/
color: #9ca7bd;
}
body.dark-mode .topbar i {
 /*background: #080911;*/
color: #9ca7bd;
}

body.dark-mode .toolbar button{
    color: #d3cfcf;

 background: #0f2775;
 transition:all .30s ease;
}
body.dark-mode .toolbar button:active{

background: #091735;
border: 1px solid #3e4352;
}
body.dark-mode .toolbar button:hover{

     background: #152f85;
    color:  #adb3c4;
    transform:translateY(-1px);
}


body.dark-mode .tree-item:active{
     background:#0e111b;
}


body.dark-mode .tabela-conselho tbody tr:nth-child(odd) {
    background: #101522;
    color: #7c8c9c;
}

body.dark-mode .tabela-conselho tbody tr:nth-child(even) {
     background: #1a2436;
    color: #95a7b9;
}

body.dark-mode .tabela-diretoria tbody tr:nth-child(odd) {
      background: #101522;
    color: #7c8c9c;
}


body.dark-mode .tabela-diretoria tbody tr:nth-child(even) {
     background: #1a2436;
    color: #95a7b9;
}



body.dark-mode .tabela-conselho tr td {
    border: 1px solid #323c5a;
}
body.dark-mode .tabela-conselho tbody tr:hover{
      background: #212d42;
      color: #b8c9d8;
}

body.dark-mode #institucional {
    background: #131722;
    color: #f5f5f5;
}
body.dark-mode #institucional h2 {
   
    color: #b6b4b4;
}

.paleta-dark {
    display: flex;
    gap: 20px;
    margin: 30px;
}

body.dark-mode .btn-pdf{
    background: #171e2c;
    border:none;
     color: #6f7585;
}
body.dark-mode .btn-pdf:hover{
    background: #364769;
    color: #fff;
  
}
body.dark-mode .card-info{
   
    color: #98a0af;
  
}
body.dark-mode .card-title{
   
    color: #cdd4e0;
  
}
body.dark-mode .btn-open{
   
    background: #192131;
      color: #98a0af;
    border: 1px solid #3d496d;
}
  body.dark-mode .btn-download{
   
    background: #192131;
      color: #98a0af;
    border: 1px solid #3d496d;
}
body.dark-mode .btn-open:hover{
   
    background: #192131;
      color: #cfd7e9;
    border: 1px solid #929dc0;
}
body.dark-mode .btn-d:hover{
   
    background: #192131;
      color: #cfd7e9;
    border: 1px solid #929dc0;
}


body.dark-mode .tree-item .icon{

    color:#0084ff;

}
body.dark-mode .tree-item .tree-pdf {

    color:#69504f;

}

/* ==========================
        CONTACT - MAIL
========================== */

/*

.contact-email {
    display: flex;
    align-items: center;
    gap: 8px;

    color: #fff;
    font-size: 0.95rem;
}

.contact-email a {
    color: #fff;
    text-decoration: none;
}

.contact-email a:hover {
    text-decoration: underline;
}

.contact-email i {
    font-size: 1rem;
}*/
/* ==========================
        TOPO
========================== */

.topo{

    background:#253f8b;
    color:#FFF;
    font-size:0.875em;

}

.topo-flex{

    display:flex;
    justify-content:space-between;
    align-items:center;

    height:42px;

}

.top-icons{

    display:flex;
    align-items:center;
    gap:12px;

}

.top-icons button{

    width:34px;
    height:28px;

    border:none;

    background:#FFF;

    color:#253f8b;

    cursor:pointer;

    border-radius:4px;

    font-weight:bold;

}
.icon i{

    font-size:1.7em;

}
.top-icons a{

    color:white;
    transition:.3s;

}

.top-icons a:hover{

    color:#9bd24b;

}


.tabela-container{
    overflow-x:auto;
  
    padding: 2%;
   
}
.tabela-container h2{
    font-size: 1.4em;
    color: #24262e;
}


.tabela-diretoria, .tabela-conselho{
    width:70%;
    margin: 0 auto;
    border-collapse:collapse;
    font-size:0.8em;
    color: #000000;
    background:#fff;
    line-height: 14px;
   
    
}
.tabela-conselho{
    width: 70%;
}

.table-container {
    max-height: 60vh;
    overflow: auto;
}
.tabela-container h2{
    text-align: center;
}


.tabela-diretoria th,
.tabela-diretoria td{
   font-weight: 400;
    border:1px solid #617db3;
    padding:9px;
    vertical-align:top;
    

}

.tabela-conselho th,
.tabela-conselho td{

   font-weight: 400;
    border:1px solid #617db3;
    padding:9px;
    vertical-align:top;


}


.tabela-diretoria th,
.tabela-conselho th{

    background:#1264b1;
    color: #fff;
    text-align:center;
    font-weight:bold;

}

.tabela-conselho th{
    font-size:14px;
}

.tabela-conselho, tbody tr:nth-child(even){
    background:#f7f9fc;
}
.tabela-diretoria, tbody tr:nth-child(even){
    background:#f7f9fc;
}
.tabela-conselho tbody tr:hover{
    background:#eef5ff;
}

.tabela-diretoria tbody tr:hover{
    background:#eef5ff;
}
table {
    width: 100%;
    min-width: 800px;
}

.preambulo{
    margin-left: 20px;
    color: #636466;
 display: none;
}





/* ==========================
     TRANSPARÊNCIA
========================== */

.transparencia{

    padding:70px 0;

}

.transparencia h2{


    color:#1d4f9f;

    margin-bottom:8px;

}

.linha{

    width:70px;

    height:5px;

    background:#79c143;

    margin-bottom:45px;

}

/* ==========================
          CARDS
========================== */


.card{

    background:white;

    overflow:hidden;

    box-shadow:0 6px 20px rgba(0,0,0,.12);

    transition:.35s;

}

.card:hover{

    transform:translateY(-8px);

    box-shadow:0 12px 30px rgba(0,0,0,.18);

}

.card img{

    height:270px;

    width:100%;

    object-fit:cover;

    transition:.5s;

}

.card:hover img{

    transform:scale(1.08);

}

.titulo{

    background:#0a5ca8;

    color:white;

    text-align:center;

    padding:16px;

   
    font-weight:500;

}

/* ==========================
   ÁREA PRINCIPAL
========================== */

.container{
   
width: 100s;
    display:flex;

    gap:0;

  

  
}



.sidebar{


    width:25%;
  
    min-height: 700px;
    
      
    background:#fff;

    border:1px solid #ddd;

    border-radius:12px;
    

    

    box-shadow:0 2px 8px rgba(0,0,0,.08);

    border-top-right-radius:0;

   border-bottom-right-radius:0;

       overflow:hidden;
   
   transition:width .25s ease;


}


.sidebar.colapsada{

    width:0;

    border:none;

}


.sidebar,
.content{

    background:#fff;

    border:1px solid #D9DEE7;   

    overflow:hidden;

}

/* ==========================
   CONTEÚDO
========================== */

.content{

    flex:1;

    background:#fff;

    border:1px solid #ddd;

    border-radius:12px;



    box-shadow:0 2px 8px rgba(0,0,0,.08);

    min-width:0;
     min-height: 700px;


    border-top-left-radius:0;
     border-top-right-radius:0;

    border-bottom-left-radius:0;

    border-left: 0;
    
}








/* ==========================
        RODAPÉ
========================== */

footer{

    background:#1139A8;

    color:white;

    text-align:center;

    padding:15px;
    font-size: 0.8em;
   

}



/* ==========================
        TREE-VIEW
========================== */

#tree-view{
 

    width: 100%;

    padding: 20px;
    

}
.hidden{

    display:none !important;

}

/*-----------------*/
.tree-node{
 
    user-select:none;

}
.tree-node .label {
    font-size:0.975em;
     font-family: "Segoe UI", sans-serif;
}
.span label{
     font-size:0.975em;
     font-family: "Segoe UI", sans-serif;
}

.tree-item{ 
     

    display:flex;

    align-items:center;

    gap:8px;

    padding:5px 5px;
    

    border-radius:8px;

    cursor:pointer;

    transition:.2s;

}
.tree-item.active{

    background:#edf7fc;

    border-left:4px solid #1976D2;

    border-radius:4px;

    font-weight:600;
     text-decoration:none;

}
.tree-item:hover{
    text-decoration: underline;
}


.tree-item:hover:not(.active){

    background:#EAF3FF;
     text-decoration: underline;

}

.tree-item.active:hover{

    

    border-radius:4px;

    text-decoration:none;

}


.tree-folder.active
 {

    background:#e2f3fc;

    border-left:4px solid #1976D2;

    border-radius:4px;

    font-weight:600;

    text-decoration:none;

}


.tree-item .icon{

    color:#1976D2;

}

.tree-item .bi-file-earmark-pdf-fill{

    color:#D32F2F;

}

.toggle{

    width:18px;

    text-align:center;

}

.tree-children{

    margin-top:2px;

}


/*======================================
=           TOOLBAR                  =
======================================*/

header.topbar{
   /* max-width: 1600px;*/
   width: 100%;

     border-radius:12px 12px 0 0;
     padding: 14px;
      box-shadow:0 2px 8px rgba(0,0,0,.08);
   
   background: #1139a8;
    display: flex;
    flex-direction: row;
    align-items: center;
   
}

.header{

    position:relative;

}


.toolbar{

   
    display: flex;
    flex-direction: row;
  
}

.topbar{

    display:flex;
    background: #fff;
    align-items:center;
    margin: 0;

}

.header-left{

    display:flex;

    align-items:center;

    flex:1;
     margin-left: 15px;

}




/*
.toolbar button{

    padding:8px 16px;

    border:none;

    border-radius:6px;

    cursor:pointer;

    background:#e5e7eb; 
    
    display:flex;

    align-items:center;

    justify-content:flex-start;

    margin-bottom:16px;

}
*/






/*=========================================
=              BOTÕES                     =
=========================================*/
.header-left span{
  
    color: #FFF;;
    margin-left: 10px;
  
    justify-content: right;  /* horizontal */
    align-items: center;      /* vertical */
  
}
.header-left i{
      color: #FFF;
      font-size: 2em;
      
  
}
.toolbar button{


    display:flex;
    flex-direction:row;
    align-items:center;
    gap:8px;
    padding:8px 18px;
    border-radius:8px;
    background:#eef2f7;
    color:#475569;
    font-size:0.875em;
    font-weight:600;
    cursor:pointer;
    transition:all .30s ease;
    margin-right: 15px;  
    border: none;
    width: 120px;
    


}





/* Hover */

.toolbar button:hover{

    background:#dbeafe;

    color:  #1139a8;

    transform:translateY(-1px);

}

/* Botão ativo */

.toolbar button.active{

    border:1px solid #fff;


    background: #1139a8;

    color:#fff;

    box-shadow:0 4px 10px rgba(37,99,235,.25);

}

/* Ícones */

.toolbar button i{

    font-size:1em;

}




/*======================================
=            EXPLORER                  =
======================================*/





#explorer-body{

font-size: 0.875rem;

   
     
   
    display: grid;  
    grid-template-columns: repeat(4, 1fr);
    padding: 5%;
    gap: 2%;
    background: #ffffff;
    align-content: start;

    opacity:1;
  height: 100%;
    transform:translateY(0);

    transition:
        opacity .35s ease,
        transform .35s ease;

}
#explorer{

    display:flex;
    flex-direction:column;
    height:100%;

}
#explorer{

    transition: all .3s ease;

}
/*
#explorer.hidden{

    opacity:0;

    transform:translateY(10px);

    pointer-events:none;

}
*/


/*

.explorer-hidden{

    opacity:0;

    transform:translateY(15px);

}*/



#explorer-header{ 

    margin:0;    
    background:#e2f3fc;
    border-left:4px solid #1976D2;
    font-size:1.25em;    
    text-decoration:none;
    padding:12px ;
    gap:0;
    font-weight:600;
    border-bottom:1px solid #E5E7EB;

}
.panel-title{

    background:#F5F7FA;
 font-size:1.25em;    
    padding:12px;
margin-left: 20px;
    font-weight:400;

    border-bottom:1px solid #E5E7EB;

}




.pdf-count{
 font-size: 0.875em;
  font-weight:normal;
}




.welcome{

    color:#888;

    font-size:15px;

}

.explorer-item{

    display:flex;

    align-items:center;

    gap:10px;

    padding:10px 12px;

    border-radius:6px;

    cursor:pointer;

    margin-bottom:4px;

}

.explorer-item:hover{

    background:#eef5ff;

}

.explorer-item i{

   

    color:#1b6ec2;

}

.header-left i{

  font-size: 1.5em;
   

}
.header-left span {
   text-align: left;
   font-size: 1.2em;
}

/*======================================
=           PDF CARDS                  =
======================================*/

.pdf-card{

   max-width: 95%;

    background:#fff;

    border:1px solid #dcdcdc;

    border-radius:10px;

    padding:15px;

    margin-bottom:15px;  

    box-shadow:0 2px 6px rgba(0,0,0,.08);

    opacity:0;

    transform:translateY(12px);

    transition:
        opacity .35s ease,
        transform .35s ease;

}


.pdf-card.show{

    opacity:1;

    transform:translateY(0);

}

.pdf-card:hover{

    box-shadow:0 4px 12px rgba(0,0,0,.15);

}

.card-title i{

    font-size: 4em;
    display:flex;

    align-items:center;

    gap:15px;

    margin-bottom:15px;

}


.card-title {

    font-size:1em;
    font-weight: bold;

   

}
.folder-icon
{

    flex-shrink:0;
     color:#dc3545;

}

.pdf-icon{

    font-size:2.8em !important;

   
     color: #dc3545;

}

.btn-tree i{

    font-size: 1em;
}

/*
.pdf-icon {
    color: red !important;
    font-size: 100px !important;
}*/
.card-title{

    display:flex;

    align-items:center;

    gap:20px;

    margin-bottom:5px;

}

.card-info{

    color:#666;

    font-size:12px;

    margin-top:5px;

    margin-bottom:18px;

}
.card-info div{

    margin:4px 0;

}

.card-actions{

    display:flex;

    justify-content:center;

    gap:8px;

    margin-top:15px;

}

.card-actions button{

    border:none;

    border-radius:6px;

    padding:5px 10px;

    font-size:12px;

    cursor:pointer;

    transition:.2s;

    display:flex;

    align-items:center;

    gap:5px;

}


.folder-icon{
    color: #1b6ec2;
}




.btn-open{

    background:#1b6ec2;

    color:#fff;
  
  

}

.btn-download{

  

    background:#6c757d;

    color:#fff;

}

.btn-download:hover{

    background:#5c636a;

}

.btn-open:hover{

    background:#0b5ed7;

}

footer{

    margin-top:50pxs;

}
.tree-item.selected{

    background:#e8f1ff;

    border-radius:6px;

    color:#0d6efd;

    font-weight:600;

}

/* ===========================
   MODO ÁRVORE
=========================== */

#portal.modo-arvore .sidebar {

    display: none;

}

#portal, #institucional{
    font-size: 0.875rem;
    width:78%;  
    margin: 0 auto;
   background: #fff;

    
}
#institucional h2{
    text-align: center;
    
}


.tree-item{

    display:flex;
    align-items:center;
   

}
.termo{

     width:78%;  
     margin: 0 auto;
    color: #485261;
    padding: 3%;
     
    
    line-height: 27px;
    font-size: 1.1em;
     box-shadow:
    -10px 0 15px -9px rgba(0,0,0,.08),
     10px 0 15px -9px rgba(0,0,0,.08);
}
.termo h2{
    font-size: 1.2em;
   
}

/* ===========================
   PORTAL HEADER
=========================== */

.portal-logo {
    width: 70px;
    height: auto;
}

.portal-header {
    display: flex;
    align-items: center;
    justify-content:space-between;
   width: 70%;
   margin: 0 auto;
    gap: 20px;

    padding: 10px 5px;
}

.portal-logo {
    width: 70px;
    height: auto;
}

.portal-title h1 {
    margin: 0;
    color: #1139A8;
    font-size: 2rem;
}

.portal-title p {
    margin: 6px 0 0;
    color: #3d8627;
    font-size: 1rem;
}

.portal-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ===========================
   MODO ACTIONS
=========================== */

.portal-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.portal-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}
.btn-documentos {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 10px 18px;

    background: #1139A8;
    color: #fff;

    border: none;
    border-radius: 8px;

    cursor: pointer;
    transition: .25s;
}


.btn-documentos:hover {
    background: #0d2f8a;

    transform: translateY(-2px);

    box-shadow: 0 8px 20px rgba(172, 171, 171, 0.15);
}
.btn-documentos:active {
    transform: scale(.98);
}
.btn-documentos i {
    font-size: 1.1rem;
}


.box { 
    font-size: 0.95em;
    background-color: #e3eef8;
    margin-bottom: 0;
    background: rgba(207, 225, 248, 0.18);


}


/* ===========================
   BTN-TOPO
=========================== */
.btn-topo {
    position: fixed;
    right: 25px;
    bottom: 25px;

    width: 52px;
    height: 52px;

    display: flex;
    justify-content: center;
    align-items: center;

    border: none;
    border-radius: 50%;

    background: #1139A8;
    color: #fff;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    transition: opacity .3s ease, transform .3s ease;
    
    box-shadow:
        0 6px 18px rgba(0,0,0,.20),
        0 0 0 4px rgba(255,255,255,.18);

}

.btn-topo.show {
    opacity: 1;
    visibility: visible;
}



.btn-topo:hover {
    transform: translateY(-2px);
    background: #0d2f8a;
}




/* background-color: #eff7fd;*/

/* ===========================
   BTN PDF
=========================== */

.label{

    flex:1;

}

.pdf-actions{

    display:flex;
    gap:6px;

}
.btn-pdf{

    display:flex;
    align-items:center;
    gap:6px;

    padding:4px 10px;

    border:1px solid #D7DDE5;
    border-radius:6px;

    background:#FFF;

    color:#2C3E50;

    transition:all .18s ease;

    cursor:pointer;

}


.btn-pdf:hover{

     background:#e9f2fd;
   
    border-color:#86b5f1;

}
.btn-pdf span{

    font-size:0.8em;
    border-color:#464c53;

}

.btn-pdf i{

    font-size:14px;

}
.btn-pdf,
.btn-pdf:link,
.btn-pdf:visited {
    text-decoration: none;
}


/* ==========================
      RESPONSIVO
========================== */

@media (max-width: 768px) {

    #btn-explorer,
    #btn-tree, .toolbar{
        display: none;
    }

    .header-left{
      margin: 0;
      padding: 0;


    }
.header-left span{
    display: none;
}

.header-left i{
    display: none;
}
#portal,#institucional,.termo{
    width: 95%;
}
.termo{
    text-align: center;
}

.portal-header {
        flex-direction: column;
        align-items: flex-start;
        width: 95%;
        gap: 20px;
    }

    .portal-brand {
        width: 100%;
    }

    .portal-actions {
        width: 100%;
        justify-content: center;
    }
    

   

   
 .tabela-conselho,.tabela-diretoria {
    border-collapse: collapse;
    width: 80%;
}

.tabela-conselho th,
.tabela-conselho td,
.tabela-diretoria th,
.tabela-diretoria td {
    padding: 6px 6px !important;
    height: 20px;
    line-height: 1;
    font-size: 0.75rem;
}
   .btn-pdf span {
        display: none;
    }

    .action {
        font-size: 1rem;
        padding: 2px;
    }

  #institucional h2{
    font-size: 1.3em;
  }

}




@media (max-width: 1440px) {
    #explorer-body {
        grid-template-columns: repeat(3, 1fr);
        
    }
}




@media (max-width: 1000px) {
    #explorer-body {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    #explorer-body {
        grid-template-columns: 1fr;
    }
}

@media(max-width:768px){




.cards{

grid-template-columns:1fr;

}




.transparencia h2{

font-size:32px;

}
.tree-pdf{

    display:flex;
    align-items:left;
    margin-left: -20px;
   

}
}

.estatuto{
    font-size:22px;
}
    
