/* These styles are generated from project.scss. */

.alert-debug {
  color: black;
  background-color: white;
  border-color: #d6e9c6;
}

.alert-error {
  color: #b94a48;
  background-color: #f2dede;
  border-color: #eed3d7;
}

.display-inline {
  display: inline;
}

/* unvisited link */
 a:link {
  color: inherit;
  text-decoration: none;
}

/* visited link */
a:visited {
  color: inherit;
  text-decoration: none;
}

/* mouse over link */
a:hover {
  color: #006656 !important;
  text-decoration: none;
}

/* selected link */
a:active {
  color: inherit;
  text-decoration: none;
}


/* pagination */
.pagination > li > a
{
    background-color: white;
    color: #006656;
}

.pagination > li > a:focus,
.pagination > li > a:hover,
.pagination > li > span:focus,
.pagination > li > span:hover
{
    color: #006656;
    background-color: #eee;
    border-color: #ddd;
}
.pagination > .active > a
{
    color: white;
    background-color: #006656;
    border: solid 1px #006656;
}
.pagination > .active > a:hover
{
    background-color: #004c4c;
    border: solid 1px #004c4c;
    color: white;
}


/* select2 */
.select2-results__option--highlighted {
  color: white !important;
  background-color: #006656 !important;
}

.select2-search-choice {
  background-color: #006656 !important;
}

.table-scrollable {
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}


table.table thead th.orderable {
  background: ►;
}

table.table thead th.asc.orderable {
  background: ▲;
}

table.table thead th.desc.orderable {
  background: ▼;
}

.select2-selection{
  min-height: 38px !important;
}


.btn-primary {
  background-color: #006656;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #004c4c;
}

.btn-primary, .btn-primary:active, .btn-primary:focus {
  background-color: #006656;
  color: #ffffff;
}

.btn-outline-primary {
  background-color: #ffffff;
  color: #006656;
}

.btn-primary:hover {
    background-color: #004c4c;
}

.btn-outline-primary:hover {
  background-color: #006656;
}

.ThemeGrid_Width1 {
  margin-left: 1px;
  border-color: rgb(190, 185, 185);
  border-radius: 0px;
  border-style: none none solid;
  border-width: 0px 0px 5px;
  height: 1.7em;
  margin-right: 1px;
  margin-top: 0px
}

.ThemeGrid_Width2 {
  margin-left: 1px;
  border-color: rgb(0, 98, 82);
  border-radius: 0px;
  border-style: none none solid;
  border-width: 0px 0px 5px;
  height: 1.7em;
  margin-right: 1px;
  margin-top: 0px
}

.track_trace_text1 {
  font-size: 1em;
  font-weight: bold;
  color: rgb(190, 185, 185)
}

.track_trace_text2 {
  font-size: 1em;
  font-weight: bold;
  color: rgb(0, 98, 82)
}

.track_trace_pic{
  max-width:95%
}

.track_trace_row_label {
  margin-top: 4px;
}

.track_trace_row_label_result {
  margin-top: 10px;
}

.track_trace_align_center {
  text-align: center
}

.track_trace_data_icon {
  margin-right: 10px
}

.track_trace_span {
  font-weight: bold;
}

.track_trace_error_message {
  margin-top: 50px;
}

.track_trace_form {
  height:45%;
}

.qrcode-version {
  width: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 15%)
}

.qrcodeicon{
  top:30%;
  transform: translate(0%, 14%);
  max-width: 60%;
  max-height: 60%;
}

.mysv-qrcode {
  margin-left: 0.7%;
  transform: translate(0%, 30%)
}

.mysv-button {
  margin-left: 1%;
  margin-bottom: 3%;
  color: #ddd;

}

.userinfo-card{
  margin-top: 5%;
}

.app-button-mysv {
  width: 100px;
}

.qrcodeicon_menu {
  width: 55px;
  transform: translate(0%, 15%);
}

.vertical-ind-card{
  transform: translate(-1.5%, 15%);
  margin-right: -1.5%;
}

ul.nav a:hover { color: #006656 !important; }
.hidden-column {
  display: none;
}

form.htmx-request {
  opacity: .5;
  transition: opacity 500ms linear;
}

#loading{
  display: none;
}

.htmx-indicator{
  opacity:0;
  transition: opacity 200ms ease-in;
}

.htmx-request .htmx-indicator{
  opacity:1;
}

.htmx-request.htmx-indicator{
  opacity:1;
}

.truckgif{
  position: absolute;
  margin: auto;
  display: block;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #f7f7f7;
  color: #494242;
  display: flex;
  flex-direction: column;
  margin: 0;
}

header {
  height: 60px;  /* Altura da navbar */
  background-color: #fff;  /* Cor de fundo branca */
  color: #333; /* Cor do texto */
  display: flex;
  align-items: center;
  padding: 0 20px;
  justify-content: space-between;
  z-index: 10;

  /* Efeito 3D */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 1px 6px rgba(0, 0, 0, 0.1);
  border-bottom: 2px solid #ddd; /* Borda inferior leve */
  border-radius: 5px; /* Bordas arredondadas */
}

header h1 {
  margin: 0;
  font-size: 24px;
}

/* Sidebar */
.sidebar {
  width: 250px;
  background-color: #fff;
  position: fixed;
  top: 0px;
  left: 0;
  transition: left 0.3s ease;
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.2), -5px -5px 10px rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  z-index: 5;
  font-family: 'Roboto', sans-serif;
  height: 100vh;  /* Garante que a sidebar tenha 100% da altura da janela */
  display: flex;
  flex-direction: column; /* Permite que os itens dentro da sidebar se alinhem em coluna */
}

/* Cabeçalho da Sidebar */
.sidebar-header {
  background-color: #ffffff;
  padding: 15px;
  text-align: center;
}

.sidebar-header h2 {
  color: #333333;
  font-size: 25px;
}

.wiki-sidebar-create-btn,
.wiki-sidebar-create-btn:hover,
.wiki-sidebar-create-btn:focus,
.wiki-sidebar-create-btn:active {
  background: linear-gradient(135deg, #006657, #0d443c) !important;
  border-color: #006657 !important;
  box-shadow: none !important;
  color: #fff !important;
}

/* Menu da Sidebar */
.sidebar-menu {
  list-style-type: none;
  padding: 0;
  margin: 0;
  flex-grow: 1; /* Faz a sidebar expandir para preencher a altura disponível */
  overflow-y: scroll; /* Permite rolar a sidebar se os itens excederem a altura */
}

.sidebar-menu li {
  padding: 8px 15px;
  text-align: left;
}

.sidebar-menu li a {
  text-decoration: none;
  color: #333;
  display: block;
  font-size: 14px;
  padding: 7px 15px;
}

.sidebar-menu li a:hover {
  background-color: #f0f0f0;
}

/* Botão de toggle fixo ao lado da sidebar */
.toggle-btn {
  background-color: #ffffff;
  border: none;
  padding: 10px;
  font-size: 20px;
  cursor: pointer;
  position: absolute;
  top: 58px;
  right: -38px;
  z-index: 200;
  transition: right 0.3s ease;
}

.toggle-btn:focus {
  outline: none;
}

/* Checkbox escondido */
.toggle-sidebar {
  display: none;
}

/* Quando o checkbox é marcado, a sidebar sai da tela */
.toggle-sidebar:checked + .sidebar {
  left: -250px;
}

/* Quando o checkbox é marcado, o conteúdo se ajusta para a direita */
.toggle-sidebar:checked + .sidebar + #wiki_page_content {
  margin-left: 0;
}

/* Quando a sidebar está visível, o conteúdo desliza para a direita */
.toggle-sidebar:not(:checked) + .sidebar + #wiki_page_content {
  margin-left: 250px;
}

/* Quando a sidebar está visível, o botão desliza para dentro */
.toggle-sidebar:not(:checked) + .sidebar + .toggle-btn {
  right: -40px;
}

/* Quando a sidebar é recolhida, o botão volta para fora */
.toggle-sidebar:checked + .sidebar + .toggle-btn {
  right: -40px;
}

#wiki_page_content {
  margin-left: 0px;  /* Inicialmente, sem deslocamento */
  transition: margin-left 0.5s ease;  /* Transição suave */
  padding: 30px;
  flex-grow: 1;
}

/* Estilo para os subitens */
.submenu {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: block;  /* Inicialmente escondido */
  padding-left: 20px;  /* Deixa um espaço à esquerda para os subitens */
}

.submenu li {
  padding: 5px 0;  /* Diminuir o padding nos subitens para manter consistência */
}

.submenu li a {
  font-size: 12px;
}

/* Exibe o submenu quando o item pai estiver em hover */
.sidebar-menu li:hover > .submenu {
  display: block;
}

.sidebar-menu li a:hover {
  background-color: #f0f0f0;
}


.wikisearch-container {
  position: relative;
}

.wikisearch-input {
  height: 50px;
  border-radius: 30px;
  padding-left: 35px;
  border: none;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.wikisearch-icon {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  color: #888;
}

.wiki-body {
  font-family: 'Roboto', sans-serif;
      margin: 0; padding: 0;
      background-color: #f7f7f7;
      color: #333;
}

.wiki-header {
  background-color: #006656;
      color: white;
      padding: 2rem;
      text-align: center;
}

.wiki-section {
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
}

.wiki-h2 {
  color: #2c3e50;
}

.imagens-wiki {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.imagens-wiki img {
  width: 32%;
  border-radius: 10px;
}

.secao {
  background: white;
  margin-top: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  padding: 1.5rem;
}

.child-cards-wiki {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.child-card-wiki {
  display: block;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  text-decoration: none;
  background-color: #f9f9f9;
  color: #333;
  transition: box-shadow 0.3s, transform 0.2s;
}

.child-card-wiki:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.child-card-wiki h3 {
  margin: 0;
  font-size: 1.2em;
  color: #2c3e50;
}

.child-card-wiki p {
  margin: 5px 0 0;
  font-size: 0.9em;
  color: #888;
}

#spinnertruck {
  pointer-events: none;
}

.card.tile-hover {
  background-color: #f5f5f6;
  color: #3e4448;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}

.card.tile-hover .card-body i,
.card.tile-hover .card-body h6 {
  color: #006657;
  transition: color 0.3s ease;
}

.card.tile-hover:hover {
  background-color: #006657;
  transform: scale(1.02);
}

.card.tile-hover:hover .card-body i,
.card.tile-hover:hover .card-body h6 {
  color: #fff !important;
}

.card-title,
.card h6,
.navbar .nav-link,
a  {
  font-family: 'Poppins', sans-serif;
  font-weight: 400 !important;
}

/* ===========================
   Navbar: Tipografia e Layout
   =========================== */

   .navbar,
   .navbar .nav-link,
   .navbar .dropdown-item,
   .navbar-brand {
     font-family: 'Montserrat', sans-serif;
     text-transform: uppercase;
     font-weight: 400;          /* mais fino que 500 */
     font-size: 0.72rem;        /* ~12px */
     letter-spacing: 0.01em;    /* um pouco mais compacto */
     padding-left: 0.2rem;
     padding-right: 0.2rem;
     line-height: 1.6;
   }

   /* ===========================
      Dropdown Menu: Padding Interno
      =========================== */

   .navbar .dropdown-item {
     padding: 0.5rem 0.5rem;      /* espaço interno vertical e horizontal */
     line-height: 1.4;
   }

   /* ===========================
      Ícones e Espaçamento
      =========================== */

   .navbar .nav-link i,
   .navbar .dropdown-item i {
     margin-right: 0.5rem;      /* mais espaço entre ícone e texto */
     font-size: 1rem;
   }


/* Hover e ativos */
.navbar .nav-link:hover,
.navbar .nav-link.active,
.navbar .dropdown-item:hover,
.navbar .dropdown-item.active {
  color: #006657 !important;
  font-weight: 600;
}

/* Dropdown */
.navbar .dropdown-menu {
  font-size: 0.8125rem; /* ~13px */
  border-radius: 0;
  border: 1px solid #eee;
}

.navbar,
.navbar .nav-link,
.navbar .navbar-brand {
  line-height: 1.6;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.navbar .navbar-brand {
  font-size: 1rem;
  display: flex;
  align-items: center;
}

.navbar .navbar-brand img {
  margin-right: 0.4rem;
}

.wiki-parent-header {
  display: flex;
  align-items: center;
  justify-content: space-between; /* opcional */
}

.accordion-toggle {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 0 8px;
  line-height: 1;
}

.accordion-item {
  border: none;
  background-color: transparent;
}

.accordion-toggle::after {
  content: "▽";
  display: inline-block;
  transition: transform 0.2s ease;
}

.accordion-toggle[aria-expanded="true"]::after {
  content: "△";
}


.card-header-mysv {
  background: linear-gradient(rgba(0, 102, 86, 0.70), rgba(0, 102, 86, 0.70)),
              url("/static/images/PortoAlto.ba7dba179a43.jpg") center center / cover no-repeat;
  color: white;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 0.375rem 0.375rem 0 0;
  gap: 0.6rem;
}
.card-header-mysv i {
  font-size: 1.25rem;
}

.a-button{
  color: white;
}

.table tbody tr:hover {
  background-color: #e6f4f1;
  transition: background-color 0.3s ease;
}
