input[type="text"],
textarea {
  spellcheck: true;
}

/* Layout Fix - Colar no Topo de forma absoluta */
html,
body,
.content-wrapper {
  margin-top: 0 !important;
  padding-top: 0 !important;
  top: 0 !important;
}

.content-wrapper {
  min-height: 100vh !important;
  background-color: #f4f6f9;
}

.main-sidebar {
  top: 0 !important;
}

/* Remove espelhamento de navbar fantasma */
.main-header {
  display: none !important;
}

.content-header {
  padding-top: 10px !important;
}

body:not(.sidebar-mini-md) .content-wrapper,
body:not(.sidebar-mini-md) .main-footer {
  transition: margin-left .3s ease-in-out;
  margin-left: 250px;
}

/* Informativos */
.lista-anos-informativos {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

iframe {
  position: relative;
  width: 100%;
  height: 100vh;
  border: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.card-primary:not(.card-outline)>.card-header {
  background-color: #348fcf !important;
}

.nav-tabs {
  border: none;
}

.nav-tabs .nav-link {
  margin-bottom: 0 !important;
  font-size: 14px;
}

.nav-tabs .nav-link:focus,
.nav-tabs .nav-link:hover {
  border-color: #2d7cb3 #2d7cb3 transparent !important;
}

.nav-tabs .nav-link:focus,
.nav-tabs .nav-link {
  transition: .3s;
  border: 2px solid transparent;
}

.nav-informativos .card-footer a {
  color: var(--dark);
  font-size: 14px;
  font-weight: 600;
  padding: 0.25rem;
}

.nav-informativos .card-footer span {
  font-size: 14px;
  margin-right: .3rem;
}

.nav-informativos .card-footer a.active {
  color: var(--gray);
  text-decoration: line-through;
}

.nav-informativos a.active {
  font-weight: 600;
}

.lista-informativos {
  padding: 0 !important;
  margin: 0;
}

.lista-informativos li {
  list-style: none;
  background-repeat: no-repeat;
  background-image: url('./../../assets/imgs/informativos.png');
  padding: .5rem 0 .5rem 2.5rem;
  vertical-align: middle;
  margin: 0;
  display: flex;
}

.lista-informativos a:hover {
  font-weight: 600;
}

.nav-informativos .card-header.mobile {
  display: none;
}

@media (max-width: 768px) {

  .nav-informativos .card-header.desktop {
    display: none !important;
  }

  .nav-informativos .card-header.mobile {
    display: block;
  }

}

/* Grocery CRUD */
.gc-container.gc-theme-bootstrap-v5 .btn-group>.dropdown-menu {
  margin-top: 5px !important;
}

.gc-datagrid-table-container {
  padding-bottom: 70px !important;
}

.select2-selection__choice {
  color: var(--dark) !important;
}

/* AdminLTE */
.nav-sidebar>.nav-item>.active {
  background-color: #0a82c5 !important;
}

#toast-message {
  visibility: hidden;
  position: fixed;
  z-index: 1;
  right: 10px;
  bottom: 20px;
}

#toast-message.show {
  visibility: visible;
  -webkit-animation: fadein 0.5s, fadeout 0.5s 3.5s;
  animation: fadein 0.5s, fadeout 0.5s 3.5s;
}

.tabulador {
  margin-left: 1rem;
}

@-webkit-keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }

  to {
    bottom: 20px;
    opacity: 1;
  }
}

@keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }

  to {
    bottom: 20px;
    opacity: 1;
  }
}

@-webkit-keyframes fadeout {
  from {
    bottom: 20px;
    opacity: 1;
  }

  to {
    bottom: 0;
    opacity: 0;
  }
}

@keyframes fadeout {
  from {
    bottom: 20px;
    opacity: 1;
  }

  to {
    bottom: 0;
    opacity: 0;
  }
}

.jstree-default .jstree-anchor {
  height: fit-content !important;
  white-space: normal;
}

/* Zoe Side Panel */
#side_panel_zoe {
  position: fixed;
  top: 0;
  right: -750px;
  width: 750px;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
  transition: right 0.3s ease;
  z-index: 9999;
  display: flex;
  flex-direction: column;
}

#side_panel_zoe.open {
  right: 0;
}

#side_panel_zoe .panel-header {
  padding: 10px;
  background: #343a40;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#side_panel_zoe .panel-header h5 {
  margin: 0;
}

#side_panel_zoe .panel-body {
  flex-grow: 1;
}

#side_panel_zoe iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Floating Zoe Button Expandable Style */
#floating_btn_zoe {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #007bff;
  height: 60px;
  min-width: 60px;
  border-radius: 50px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 9998;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid #fff;
  overflow: hidden;
}

#floating_btn_zoe img {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  object-fit: contain;
}

#floating_btn_zoe span {
  display: block;
  max-width: 0;
  opacity: 0;
  white-space: nowrap;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  transition: all 0.4s ease;
  overflow: hidden;
}

#floating_btn_zoe:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  background: #0069d9;
  padding: 10px 20px;
}

#floating_btn_zoe:hover span {
  max-width: 200px;
  opacity: 1;
  margin-right: 12px;
}

@media (max-width: 768px) {
  #side_panel_zoe {
    width: 100%;
    right: -100%;
  }
}

/* Mural / Dashboard Desktop Icons */
.mural-container {
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1.5rem;
  justify-items: center;
}

.mural-icon-item {
  width: 130px;
  height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  text-decoration: none !important;
  color: #344767 !important;
  border: 1px solid #eee;
  padding: 10px;
  text-align: center;
}

.mural-icon-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
  background: #fcfcfc;
  border-color: #007bff;
}

.mural-icon-item i {
  font-size: 40px;
  margin-bottom: 15px;
  color: #007bff;
}

.mural-icon-item .mural-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.mural-icon-item.folder-style:hover {
  border-color: #ffc107;
}

.mural-icon-item.folder-style i {
  color: #ffc107;
}

@media (max-width: 576px) {
  .mural-container {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    padding: 1rem;
    gap: 1rem;
  }

  .mural-icon-item {
    width: 100px;
    height: 100px;
  }

  .mural-icon-item i {
    font-size: 30px;
    margin-bottom: 8px;
  }

  .mural-icon-item .mural-title {
    font-size: 11px;
  }
}

/* Mural Horizontal (Leis) */
.mural-horizontal {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  padding: 1rem 0;
}

.mural-icon-horizontal {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-decoration: none !important;
  color: #344767 !important;
  border: 1px solid #eee;
  padding: 1.2rem;
  height: 80px;
}

.mural-icon-horizontal:hover {
  transform: translateX(10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-color: #007bff;
  background: #f8f9fa;
}

.mural-icon-horizontal i {
  font-size: 24px;
  margin-right: 15px;
  color: #007bff;
  flex-shrink: 0;
}

.mural-icon-horizontal .mural-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1200px) {
  .mural-horizontal {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .mural-horizontal {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .mural-icon-horizontal {
    height: 70px;
    padding: 1rem;
  }
}