/* ----------------------------------------------------------------------------------------------
Arquivo CSS de estilo padrao da framework.
Fabiano Cunha - 28/05/2015.
------------------------------------------------------------------------------------------------ */

@media (min-width: 768px) {
    #main-menu {
        position: relative;
        z-index: 9999;
    }
    #main-menu ul {
        width: 12em; /* fixed width only please */
    }
}

@media (max-width: 768px) {
    /* Submenu (filhos) em fundo branco e texto preto */
    #main-menu ul ul {
        background-color: #ffffff !important;
    }

    #main-menu ul ul li a {
        color: #000000 !important;
        padding-left: 20px; /* Indentação para diferenciar do pai */
    }

    /* Opcional: separador visual entre itens filhos */
    #main-menu ul ul li {
        border-bottom: 1px solid #ddd;
    }

    /* Sombra opcional */
    #main-menu ul ul {
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }
}
@media (max-width: 768px) {
  /* Submenus visíveis no modo colapsado (mobile) */
  #main-menu.sm-collapsible ul.sm-nowrap,
  #main-menu.sm-collapsible ul {
    background-color: #ffffff !important;
  }

  #main-menu.sm-collapsible ul.sm-nowrap li a,
  #main-menu.sm-collapsible ul li a {
    background-color: #ffffff !important;
    color: #000000 !important;
    padding-left: 20px;
    border-bottom: 1px solid #ccc;
  }

  #main-menu.sm-collapsible ul li a:hover {
    background-color: #f0f0f0 !important;
    color: #000000 !important;
  }
}


/************************* Estilo do menu ************************************/

/* Remove cantos arredondados do menu e submenus */
.sm-clean,
.sm-clean ul,
.sm-clean li,
.sm-clean a {
  border-radius: 0 !important;
}

/* ====== COR GERAL DO MENU (Nível 1) ====== */
.sm-clean {
  background-color: #0056b3 !important; /* azul 3A */
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
}

.sm-clean a {
  color: #fff !important;
  padding: 10px 18px;
}

.sm-clean a:hover,
.sm-clean li:hover > a {
  background-color: #003f80 !important;
  color: #fff !important;
}

/* ====== SUBMENUS (Níveis filhos) ====== */
.sm-clean ul {
  background-color: #fff !important;
  border: 1px solid #ccc;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 1000;
}

.sm-clean ul a {
  color: #000 !important;
  background-color: #fff !important;
}

.sm-clean ul a:hover {
  background-color: #e6f0ff !important;
  color: #003f80 !important;
}

/* ====== MOBILE ====== */
@media (max-width: 768px) {
  .sm-clean {
    width: 100%;
  }
  .sm-clean ul {
    background-color: #fff !important;
  }
  .sm-clean ul a {
    color: #000 !important;
  }
}



      
/************************* TEla de login *************************************/        
/* Caixa de login */
#divLogin.box {
  width: 100%;
  max-width: 420px;
  margin: 8% auto;
  padding: 25px 30px;
  background-color: #f2f4f8;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.15);
  font-family: 'Segoe UI', Tahoma, sans-serif;
  box-sizing: border-box;
}

/* Título */
#divLogin .txt {
  font-size: 16px;
  color: #333;
  margin-bottom: 10px;
  text-align: center;
}

/* Campos */
.tblogin td {
  padding: 8px 4px;
  vertical-align: middle;
}

.tblogin input[type="text"],
.tblogin input[type="password"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #bbb;
  border-radius: 6px;
  font-size: 15px;
  box-sizing: border-box;
}

/* Botões */
.tblogin input[type="submit"],
.tblogin input[type="reset"],
input[name="butEnviar"],
input[name="butCancel"] {
  width: 100%;
  background-color: #f57c00;
  color: white;
  border: none;
  padding: 10px;
  margin: 10px 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s;
  font-size: 15px;
}


/* Erros */
.diverror p {
  color: red;
  font-size: 14px;
  margin-top: 10px;
  text-align: center;
}


.login-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.login-buttons input[type="submit"],
.login-buttons input[type="reset"] {
  background-color: #f57c00;
  color: white;
  border: none;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  min-width: 100px;
  text-align: center;
  transition: background-color 0.2s;
}

.login-buttons input:hover {
  background-color: #ef6c00;
}

@media (max-width: 480px) {
  .login-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .login-buttons input {
    width: 100%;
  }
}

#butEnviar {
  background-color: #f57c00; /* Laranja */
  color: white;
}

#butEnviar:hover {
  background-color: #ef6c00;
}

/* Azul 3A para o botão Limpar */
#butCancel {
  background-color: #0056b3;
  color: white;
}

#butCancel:hover {
  background-color: #003f80;
}


/******************************************************************************/

.StatusBar{        
        height: 35px;
	width: 100%;
	margin-left: 5px;        
        font-family: Arial, Helvetica, sans-serif;
	font-size: 10px;        
        text-align: left;        
}

/************************* Novos ajustes na conversao **********************/

@media (min-width: 769px) {
  .tbdados th,
  .tbdados td {
    white-space: normal; /* Permite quebra de linha no desktop */
  }
}

#butConsultar {
    margin-top: 5px;
    margin-bottom: 5px;
}

input[type="submit"] {
    background-color: #FFA500; /* laranja */
    color: rgb(0, 0, 0);
    border: none;
    padding: 8px 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
}

input[type="submit"]:hover {
    background-color: #e68a00;
}


#gridDados {    
    width: 100%;
}


/* Em telas menores, permite rolagem horizontal */
@media (max-width: 768px) {
  .painel_Grid {
    overflow-x: auto;
    width: 100%;
    display: block;
  }

  .painel_Grid .tbdados {
    width: max-content; /* permite rolar a tabela */
  }
}

/* Em telas maiores, remove rolagem horizontal e ajusta ao espaço */
@media (min-width: 769px) {
  .painel_Grid {
    overflow-x: hidden; /* evita barra horizontal */
    width: 100%;
    display: block;
  }

  .painel_Grid .tbdados {
    width: 100% !important;
    table-layout: auto;
  }
}

.painel_Grid::-webkit-scrollbar {
    height: 8px;
}
.painel_Grid::-webkit-scrollbar-thumb {
    background-color: #aaa;
    border-radius: 4px;
}

.painel_Grid .tbdados {
    width: 100%;
    table-layout: auto;
    border-collapse: collapse;
}

/* Remova min-width fixo geral, use responsivo */
.tbdados {
    width: 100%;
    table-layout: auto;
    border-collapse: collapse;
}


/* Opcional: ajuste das células */
.tbdados th, .tbdados td {
    padding: 6px;
    white-space: nowrap; /* opcional: impede quebra excessiva */
    word-break: break-word;
    font-size: 12px;
}

.tbdados td ul,
.tbdados td li {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-block;
}

.tbdados, .tbdados th, .tbdados td {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
}


/************************** Posição do grid de consulta **********************/
.info-card {
    display: flex;
    flex-wrap: wrap;
    background: #ffffff;
    border: 1px solid #ccc;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 4px;
}

.info-header {
    flex: 1 1 100%;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #003366;
    border-bottom: 2px solid #003366;
    padding-bottom: 5px;
}

.info-item {
    flex: 1 1 30%;
    min-width: 220px;
    box-sizing: border-box;
    margin-bottom: 15px;
    padding-right: 20px;
}

.info-label {    
    color: #0056b3;
    font-weight: bold;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px 4px 0 0;
    display: block;
}

.info-value {
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 6px 10px;
    border-radius: 3px;
    color: #000;
    font-size: 14px;
    word-break: break-word;
}

/************************* Estilo do grid de consulta ************************/


/************************* Posição das competições e etpas **********************/
/*posicionamento do TAB geral*/
.tabgeral{    
    margin-top: 80px;
    width: 100%; 
}

.divposicao{
   border: 1px solid black;  
   display: table; /*faz a div contornar todos os objetos */
}

.cenario{        
    //border: 1px solid black;  
    margin-left: 5px;
    margin-top: 15px;   
    float: left;       
    width: 250px;
}




.tbdados th{    
    border: 1px solid #F8F8F8;
    border-spacing: 0em; 
    /*background-color: #999999;*/
    background-color: #56a2f3; /* azul */
    color: white;              /* letras brancas */
    padding: 8px;              /* espaçamento opcional */
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;        
    text-align: center;
    font-weight: bold;
  }
  
.tbdados td{
    border: 1px solid #d3d3d3;
    border-spacing: 0em;   
  }
/*****************************************************************************/ 
  
/*questoes a serem respondidas */
.questionario{
   //border: 1px solid black;
   margin-left: 10px;
   margin-top: 5px;        
  }

.texto_questao{
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;           
}
/*****************************************************************************/

/*Codigo para o titulo da tabela  */  
.LinhaLitulo{
    /*border: 1px solid #c80000;*/  
    display: table;
    width:100%;
    height:100%;
    padding: 0px;
    margin: 0px;
}

/*Formatcao do titulo */
.TextoTitulo{
      /*border: 1px solid #8db863;*/
      display:table-cell; 
      text-align: center;
      vertical-align: middle;      
      padding: 0px;
      margin: 0px;    
      width: 80%;
      display: -moz-inline-stack;      
      zoom: 1; 
      *display: inline 
    }  

/*Codigo para posicionamento da barra de botoes no titulo da tabela */
 .statusBarTable{
      /*border: 1px solid #8db863 */;      
      display:table-cell;  
      padding: 0px;
      margin: 0px; 
      top: 0px;      
      float: right;
      position: relative;
      display: -moz-inline-stack;
      zoom: 1; 
      *display: inline
    }  



/* Div do relatório de DRE */
.relatorioDRE {
  width: 400px;   
}


.tbDRE {
   border: 1px solid black;
   border-spacing: 0em;
   witdh:100%;
}

.tbDRE th{    
    border: 1px solid #F8F8F8;
    border-spacing: 0em; 
    background-color: #999999;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;        
    text-align: center;
    font-weight: bold;
  }
  
 .tbDRE td{
    border: 1px solid #d3d3d3;
    border-spacing: 0em; 
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;   
 }
 
 /*Texto com tamanho e negrito */
.tbDRE .texto{
    font-family: Arial, Helvetica, sans-serif;  
    font-size: 14px;   
    font-weight: bold;   
  }
/*Texto com tamanho e negrito */
.tbDRE span{
    font-family: Arial, Helvetica, sans-serif;  
    font-size: 14px;   
    font-weight: bold;   
  }  
  
 .tbDRE .valor{
    background-color: #ebe3d9;
    font-family: Arial, Helvetica, sans-serif;  
    font-size: 14px;   
    font-weight: bold;
    width: 50px
  }

#gridConsulta .tbdados,
#gridConsulta table {
    width: 100% !important;
    table-layout: auto !important;
    min-width: unset !important;
}

  
.painel_consulta {
    width: 100%;
    overflow-x: auto;
    display: block;
}

.painel_consulta .tbdados {
    width: 100%;
    table-layout: auto;
}

  
.painel_Grid .tbdados{     
       width: 100%;   
 }

  
/* Barra dos botões */  
  .CButtom {      
     float:left;     
  }
  
  .CButtomR{
    position: absolute;    
  }
  
/*Combo BOX*/
  .combo60 {
    width: 60px;   
  }

  .combo100 {
    width: 100px;   
  }

/* Text BOX Leitura*/
.txtboxRead{
    background-color: #CCC;   
  }
  
/*Definição do Label */  
 .label{
    font-size: 13px;
    font-weight: bold;
  }

  /* === RESPONSIVO PAINEL_GRID: Mobile com rolagem, Desktop sem === */

/* MOBILE: mantém rolagem horizontal */
@media (max-width: 768px) {
  .painel_Grid {
    overflow-x: auto;
    width: 100%;
    display: block;
  }

  .painel_Grid .tbdados {
    width: max-content; /* permite rolar */
    table-layout: auto;
  }

  .tbdados th,
  .tbdados td {
    white-space: nowrap;
  }
}

/* DESKTOP: remove rolagem horizontal */
@media (min-width: 769px) {
  .painel_Grid {
    overflow-x: hidden !important;
    width: 100%;
    display: block;
  }

  .painel_Grid .tbdados {
    width: 100% !important;
    table-layout: auto !important;
  }

  .tbdados th,
  .tbdados td {
    white-space: normal !important; /* quebra texto */
    word-break: break-word;
  }
}

/************************** Estilo do dashboard *******************************/
.kpi-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 12px 0 16px;
}
.kpi-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
  padding: 14px 16px;
}
.kpi-head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6b7280;
  font-size: .92rem;
  margin-bottom: 6px;
  letter-spacing: .2px;
}
.kpi-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f3f4f6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.kpi-value {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.1;
  color: #111827;
}

.kpi-foot {
  margin-top: 8px;
  font-size: .8rem;
  color: #6b7280;
  border-top: 1px solid #e5e7eb;
  padding-top: 6px;
}

.kpi--primary   .kpi-icon { background:#dbeafe; color:#1d4ed8; }   /* azul */
.kpi--success   .kpi-icon { background:#dcfce7; color:#15803d; }   /* verde */
.kpi--warning   .kpi-icon { background:#fef3c7; color:#b45309; }   /* amarelo */
.kpi--muted     .kpi-icon { background:#f3f4f6; color:#374151; }   /* cinza */
/************************** Estilo do dashboard - Fim ***************************/

/* Botão voltar */
.btn-voltar {
  display: inline-block;
  padding: 8px 14px;
  font-size: .95rem;
  font-weight: 600;
  color: #fff;
  background-color: #f97316;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease;
}
.btn-voltar:hover { background-color: #ea580c; color:#fff; text-decoration:none; }
.btn-voltar:active { background-color: #c2410c; }


.btn-voltar:hover {
  background-color: #ea580c; /* laranja mais escuro */
  text-decoration: none;
  color: #fff;
}

.btn-voltar:active {
  background-color: #c2410c; /* ainda mais escuro no clique */
}
