/* CSS
*/
/* header da pagina publica do sistema */
#header-public .container-fluid .header-top .header-logo .logogovbr {
  background-image: url("/imagens/govbr-logo-large.png");
  background-size: 111px 40px;
  height: 40px;
  min-width: 111px;
  width: 111px;
  background-color: transparent;
  background-position: left center;
  background-repeat: no-repeat;
  display: inline-block;
}

/* header pagina interna do sistema */
#header-inside .container-fluid .header-top .header-logo .logogovbr {
  background-image: url("/imagens/govbr-logo-large.png");
  background-size: 111px 40px;
  height: 40px;
  min-width: 111px;
  width: 111px;
  background-color: transparent;
  background-position: left center;
  background-repeat: no-repeat;
  display: inline-block;
}

/* Style the tab */
.tab {
  overflow: hidden;
  border: 1px solid #ccc;
  background-color: #f1f1f1;
}

/* Style the buttons that are used to open the tab content */
.tab button {
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: #ddd;
}

/* Create an active/current tablink class */
.tab button.active {
  background-color: #ccc;
}

/* Style the tab content */
.tabcontent {
  display: none;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-top: none;
}

/* stylos do card criado para ptd */
.card {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  transition: 0.3s;
}

.card:hover {
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}

.container {
  padding: 2px 16px;
}

/* stylos do card criado para ptd */

.titulo1 {
  color: #0C326F;
  font-size: 22px;
  background: #fff;
  padding: 5px 0px 5px 10px;
  border-top: 2px solid #0C326F;
  border-bottom: 2px solid #0C326F;
  border-left: 10px solid #0C326F;
  border-right: 2px solid #0C326F;
  width: 100%;
  font-weight: bold;
}

.titulo2 {
  font-family: Verdana, Arial, Sans-serif;
  font-size: 18px;
  color: #0C326F;
  margin-bottom: 0;
  padding-left: 2px;
  border-bottom: 2px solid #0C326F;
}

body {
  font-family: Verdana, Arial, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  /* Faz o main ocupar o espaço restante */
  padding: 20px;
}

footer {
  color: white;
  text-align: center;
  padding: 10px 0;
}

.br-select {
  max-width: 772px;
}

.borda-arredondada {
  border: 2px solid #0C326F;
  border-radius: 20px;
}



/* Modal scrim */
.modal-scrim {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal {
  background: white;
  padding: 20px;
  border-radius: 10px;
  min-width: 300px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close-btn {
  margin-top: 10px;
  padding: 5px 10px;
  background: #d33;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.close-btn:hover {
  background: #b22;
}

/* Fim - Modal scrim */

.tabela-titulo {
  border: 1px solid #ccc;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  width: 100%;
  margin-top: 20px;   
  font-family: Arial, sans-serif;
  overflow: clip;
  background-color: #EDF5FF;
  padding: 12px;
  font-size: 18px;
  font-weight: bold;
  text-align: left;
  /* border-bottom: 1px solid #ccc; */
  overflow: hidden;
}

.tabela-titulo-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #EDF5FF;
  padding: 12px;
  font-size: 18px;
  font-weight: bold;
  border-bottom: 1px solid #ccc;
}

.tabela-titulo-button a {
  font-size: 18px;
  border-radius: 4px;
  cursor: pointer;
}

.tabela-container {
  border: 1px solid #ccc;
  /* border-top-left-radius: 8px; */
  /* border-top-right-radius: 8px; */
  width: 100%;
  /* margin: 20px auto; */
  font-family: Arial, sans-serif;
  overflow: visible;
}

.formulario-titulo {
  border: 1px solid #ccc;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  width: 100%;
  margin-top: 20px;
  background-color: #EDF5FF;
  padding: 12px;
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: bold;
  text-align: left;  
  overflow: clip;
}

.formulario-container {
  border: 1px solid #ccc;
  /* border-top-left-radius: 8px; */
  /* border-top-right-radius: 8px; */
  width: 100%;
  /* margin: 20px auto; */
  font-family: Arial, sans-serif;  
  overflow: visible;
}


/* aplicar padding somente em telas grandes */
.padding-responsivo {
  padding-left: 0.5rem;
}

@media (min-width: 992px) {
  .padding-responsivo {
    padding-left: 1.5rem;
  }
}

.row-resumo {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

.row-resumo > .col-md-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
  padding-left: 15px;
  padding-right: 15px;
}

@media (max-width: 768px) {
  .row-resumo > .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 767.98px) {
  .user-greeting,
  .caret-icon {
    display: none !important;
  }
}


.header-actions {
  max-width: 100%;
  position: relative;
}

/* Prevenir estouro do menu em telas pequenas */
#avatar-menu.br-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: auto;
  max-width: 95vw;
  overflow-x: auto;
  white-space: normal;
  z-index: 1000;
  box-sizing: border-box;
  background: white;
  border-radius: 4px;
}

@media (max-width: 576px) {
  #avatar-menu.br-list {
    left: auto;
    right: 5px;
    min-width: 200px;
  }
}

/* Garante que o botão não cause quebra ou overflow em mobile */
.br-sign-in {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Em telas pequenas, esconde saudação e só mostra o avatar */
@media (max-width: 576px) {
  .br-sign-in .user-greeting,
  .br-sign-in .caret-icon {
    display: none;
  }

  .br-sign-in {
    padding: 0;
  }
}

.resumo-carga-horaria {
  display: flex;
  flex-direction: column;
  gap: 0.75rem; /* aumento do espaçamento vertical entre linhas */
}

.resumo-header,
.resumo-linha {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  column-gap: 1rem; /* espaçamento entre colunas */
  padding: 0.75rem;
  background-color: #f8f8f8;
  border-radius: 0.375rem;
  
}

.resumo-header span {
  font-weight: 600;
  color: #333; /* cinza bem escuro */
}


/* Responsividade */
@media (max-width: 600px) {
  .resumo-header {
    display: none; /* Oculta cabeçalho no mobile */
  }

  .resumo-linha {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border: 1px solid #ddd;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #fafafa;
  }

  .resumo-linha span {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    line-height: 1.3;
    padding: 0.25rem 0;
  }

  .resumo-linha span::before {
    content: attr(data-label);
    font-weight: 600;
    color: #333;
    margin-right: 0.5rem;
  }
}

@media (min-width: 601px) {
  .resumo-linha span:first-child {
    font-weight: 600;
    color: #333;
  }
}

.br-button-group.no-wrap-buttons {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.5rem; 
  overflow-x: auto; 
}

.br-button-group.no-wrap-buttons .br-button {
  flex-shrink: 0; 
}

.br-textarea textarea {
  resize: vertical !important;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

.usuario-inativo {
    background-color: #f5f5f5; /* cinza claro */
    color: #6c757d;
    opacity: 0.85;
}

.usuario-inativo td {
    text-decoration: line-through;
}

.br-switch input[disabled] + label {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

#mensagem-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    width: 300px;
}
