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

header {
  position: fixed;
  width: 100%;
  background-color: whitesmoke;
  color: white;
  padding-bottom: 30px;
  padding-left: 80px;
  text-align: left;
  top: 0;

}

footer {
  background-color: black;
  width: 100%;
  color: white;
  padding: 1em;
  text-align: center;
  font-size: 11px;
}

.wrapper {
  display: flex;
  flex: 1;
  margin-top: 10px;
  /* Ajuste para header */
  transition: margin-left 0.3s;
}

.content-wrapper {
  flex: 1;
  margin-left: 90px;
  /* Largura inicial do menu */
  margin-top: 40px;
  /* Ajuste para header */
}

.content-wrapper.expanded {
  margin-left: 210px;
  /* Largura do menu expandido */
}




/* ================================================= */
/* == CSS UNIFICADO PARA O MENU - SUBSTITUA O SEU == */
/* ================================================= */

.menu {
  width: 80px;
  background-color: #505050;
  padding: 1em;
  box-sizing: border-box;
  height: calc(100vh - 4em);
  position: fixed;
  top: 4em;
  left: 0;
  overflow: visible;
  transition: width 0.3s;
  z-index: 100;
}

.menu.expanded {
  width: 260px;
  overflow: hidden;
}

.menu ul {
  padding: 0;
  list-style: none;
}

.menu ul>li {
  padding: 10px 0;
  position: relative;
}

.menu ul li a {
  text-decoration: none;
  color: whitesmoke;
  display: flex;
  align-items: center;
  transition: background-color 0.3s, color 0.3s;
  padding: 5px;
  padding-left: 15px;
  border-radius: 15px;
  position: relative;
}

.menu ul li a i {
  margin-right: 10px;
  font-size: 1.2em;
  width: 20px;
  text-align: center;
  transition: color 0.3s;
}

.menu ul li a:hover {
  background-color: #6d6d6d;
}

.menu ul li a span {
  display: none;
}

.menu.expanded ul li a span {
  display: inline;
}

.menu .footer {
  position: absolute;
  bottom: 0;
  width: 60%;
}

/* --- Ícone de Seta para Submenu --- */
.arrow-icon {
  font-size: 0.8em !important;
  margin-left: auto !important;
  margin-right: 10px !important;
  transition: transform 0.3s ease;
}

.menu:not(.expanded) .arrow-icon {
  display: none !important;
}

.menu.expanded .has-submenu:hover .arrow-icon,
.menu.expanded .has-submenu:has(.submenu a.active) .arrow-icon {
  transform: rotate(90deg);
}

/* --- Lógica do Submenu --- */
.submenu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu.expanded .submenu {
  max-height: 0;
  overflow: hidden;
  background-color: #414141;
  transition: max-height 0.4s ease-in-out;
}

.menu.expanded .has-submenu:hover>.submenu,
.menu.expanded .has-submenu:has(.submenu a.active)>.submenu {
  max-height: 500px;
}

.menu.expanded .submenu a {
  padding-left: 30px !important;
}

.menu:not(.expanded) .has-submenu .submenu {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 75px;
  width: 240px;
  background-color: #505050;
  border-radius: 8px;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
  padding: 5px;
  transition: opacity 0.2s ease-in-out, visibility 0.2s;
  overflow: hidden;
}

.menu:not(.expanded) .has-submenu:hover>.submenu {
  visibility: visible;
  opacity: 1;
}

.menu:not(.expanded) .submenu li {
  padding: 0 !important;
}

.menu:not(.expanded) .submenu li a {
  border-radius: 6px !important;
  padding: 10px !important;
}

.menu:not(.expanded) .submenu li a i {
  margin-right: 15px !important;
}

.menu:not(.expanded) .submenu a span {
  display: inline;
}

/* --- Lógica dos Tooltips --- */
.menu:not(.expanded)>ul>li:not(.has-submenu) a.menu-item:hover>span {
  display: inline-block;
  position: fixed;
  left: 90px;
  background-color: #3e3e3e;
  color: whitesmoke;
  padding: 8px 12px;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 200;
  font-size: 1rem;
}

/* ============================================= */
/* == REGRAS PARA O ITEM ATIVO (VERSÃO FINAL) == */
/* ============================================= */

.menu ul li a.active {
  background-color: whitesmoke;
  color: #3e3e3e;
}

.menu ul li a.active i {
  color: #3e3e3e;
}

.menu.expanded>ul>li>a.active {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.menu:not(.expanded)>ul>li>a.active {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  width: calc(100% + 17px);
}

.menu.expanded .has-submenu:has(.submenu a.active)>a {
  background-color: #5a5a5a;
  color: whitesmoke;
}

.menu.expanded .has-submenu:has(.submenu a.active)>a i {
  color: whitesmoke;
}

/* ============================================= */
/* == NOVAS REGRAS PARA O TÍTULO DO SUBMENU   == */
/* ============================================= */
.submenu-title {
  padding: 10px 15px 8px 15px;
  color: #b0b0b0;
  /* Cor mais clara para o título */
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
  border-bottom: 1px solid #666;
  margin-bottom: 5px;
  pointer-events: none;
  /* Não é clicável */
}

/* Esconde o título no menu expandido */
.menu.expanded .submenu-title {
  display: none;
}

/* Estilo do título no menu recolhido */
.menu:not(.expanded) .submenu .submenu-title {
  padding: 10px !important;
  /* Padding uniforme */
  text-align: center;
}





.toggle-button {
  position: fixed;
  top: 1.5em;
  /* Ajuste conforme a altura do header */
  left: 0.5em;
  cursor: pointer;
  font-size: 1.5em;
  background-color: #f4f4f4;
  border: none;
  outline: none;
  box-shadow: none;
  /* Remove a borda preta */
  z-index: 101;
  transition: left 0.3s;
  border-radius: 20px;
}

.toggle-button::before {
  content: "☰";
}

.toggle-button.expanded::before {
  content: "✕";
}



/* Estilos para a tela de carregamento */
#loading-screen {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2em;
  color: #000;
}

/* Novo logo de carregamento */
/* Estilo principal da tela de carregamento */
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  /* Fundo branco semi-transparente */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  flex-direction: column;
  font-family: 'Inter', sans-serif;
  transition: opacity 0.3s ease-in-out;
}

/* Container para o conteúdo de carregamento */
.loading-content {
  text-align: center;
}

/* Container para posicionar as engrenagens */
.gear-container {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto;
}

/* Estilo base para todas as engrenagens */
.gear {
  position: absolute;
  color: #0d6efd;
  /* Cor azul primária */
  text-shadow: 0 0 10px rgba(13, 110, 253, 0.2);
}

/* Engrenagem principal (grande) */
#gear1 {
  font-size: 6rem;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: spin-clockwise 4s linear infinite;
}

/* Engrenagem secundária (média) */
#gear2 {
  font-size: 3.5rem;
  top: 10px;
  left: 0px;
  animation: spin-counter-clockwise 3s linear infinite;
}

/* Engrenagem pequena */
#gear3 {
  font-size: 2rem;
  bottom: 15px;
  right: 5px;
  animation: spin-counter-clockwise 2s linear infinite;
}

/* Estilo para o texto "Carregando..." */
.loading-text {
  margin-top: 2.5rem;
  font-size: 1.25rem;
  font-weight: 500;
  color: #495057;
}

/* Animação de rotação no sentido horário */
@keyframes spin-clockwise {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Animação de rotação no sentido anti-horário */
@keyframes spin-counter-clockwise {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(-360deg);
  }
}

/* Classe para esconder a tela de carregamento */
.hidden {
  opacity: 0;
  pointer-events: none;
}

/* FIM LOGO DE CARREGAMENTO */





/* Esconder a tela de carregamento quando o conteúdo estiver carregado */
/*
#content {
    display: none;
}
*/

/* Cores Charts Google Table */
.bold-green-font {
  font-weight: bold;
  color: green;
}

.bold-white-font {
  font-weight: bold;
  color: white;
}

.bold-font {
  font-weight: bold;
}

.right-text {
  text-align: right;
}

.center-text {
  text-align: center;
}

.large-font {
  font-size: 15px;
}

.medio-font {
  font-size: 12px;
}

.small-font {
  font-size: 8px;
}

.default-font {
  font-size: 10px;
}


.white-font {
  color: white;
}

.italic-darkblue-font {
  font-style: italic;
  color: darkblue;
}

.italic-purple-font {
  font-style: italic;
  color: purple;
}

.underline-blue-font {
  text-decoration: underline;
  color: blue;
}

.gold-border {
  border: 3px solid gold;
}

.deeppink-border {
  border: 3px solid deeppink;
}

.orange-background {
  background-color: orange;
}

.blue-background {
  background-color: #99d3f5cb;
}

.orchid-background {
  background-color: orchid;
}

.beige-background {
  background-color: beige;
}

.fundo-table-background-padrao {
  background-color: #dfefff
}

.fundo-table-background-black {
  background-color: black
}

.fundo-table-background-azul-forte {
  background-color: #8fc7ff
}

.fundo-table-background-azul-fraco {
  background-color: #8fc7ffbb
}

.fundo-laranja-30 {
  background-color: rgba(255, 166, 0, 0.30)
}

.fundo-laranja-60 {
  background-color: rgba(255, 166, 0, 0.60)
}

.fundo-amarelo {
  background-color: yellow
}

.fundo-amarelo-30 {
  background-color: rgba(255, 255, 0, 0.30)
}

.fundo-amarelo-60 {
  background-color: rgba(255, 255, 0, 0.60)
}

.fundo-table-background-branco {
  background-color: #ffffff
}

.blue-table-background {
  background-color: rgb(198, 226, 253)
}




.border-left-primary {
  border-left: 0.25rem solid #4e73df !important;
}

.border-right-primary {
  border-right: 0.25rem solid #4e73df !important;
}

.border-bottom-primary {
  border-bottom: 0.25rem solid #4e73df !important;
}

.border-left-secondary {
  border-left: 0.25rem solid #858796 !important;
}

.border-bottom-secondary {
  border-bottom: 0.25rem solid #858796 !important;
}

.border-left-success {
  border-left: 0.25rem solid #1cc88a !important;
}

.border-bottom-success {
  border-bottom: 0.25rem solid #1cc88a !important;
}

.border-left-info {
  border-left: 0.25rem solid #36b9cc !important;
}

.border-bottom-info {
  border-bottom: 0.25rem solid #36b9cc !important;
}

.border-left-warning {
  border-left: 0.25rem solid #f6c23e !important;
}

.border-bottom-warning {
  border-bottom: 0.25rem solid #f6c23e !important;
}

.border-left-danger {
  border-left: 0.25rem solid #e74a3b !important;
}

.border-bottom-danger {
  border-bottom: 0.25rem solid #e74a3b !important;
}

.border-left-light {
  border-left: 0.25rem solid #f8f9fc !important;
}

.border-bottom-light {
  border-bottom: 0.25rem solid #f8f9fc !important;
}

.border-left-dark {
  border-left: 0.25rem solid #5a5c69 !important;
}

.border-bottom-dark {
  border-bottom: 0.25rem solid #5a5c69 !important;
}



/* Cores de fundos */

.correto {
  background-color: rgba(51, 255, 0, 0.20)
}

.alerta {
  background-color: hsla(54, 100%, 50%, 0.20)
}

.atencao {
  background-color: rgba(255, 0, 0, 0.20)
}

.comunicacao {
  background-color: rgba(153, 153, 153, 0.2)
}

.comunicacao2 {
  background-color: rgb(153, 153, 153)
}

.parado {
  background-color: rgba(253, 80, 0, 0.2)
}

.FIM {
  background-color: rgba(0, 4, 255, 0.20)
}

.empresa {
  background-color: rgba(220, 53, 69, 0.40)
}

.empresa-fundo {
  background-color: rgba(133, 40, 49, 0.05)
}

.empresa-fundo_1 {
  background-color: rgb(247, 247, 247)
}

.card-menu {
  font-size: 16px;
  font-weight: bold;
  padding: 0 18px;
}


#DropA .btn-dark {
  color: red;
  font-weight: bold;
  font-size: 12px;
}

#DropB .btn-dark {
  color: green;
  font-weight: bold;
  font-size: 12px;
}

#DropC .btn-dark {
  color: orange;
  font-weight: bold;
  font-size: 12px;
}

#DropD .btn-dark {
  color: blue;
  font-weight: bold;
  font-size: 12px;
}

#DropE .btn-dark {
  color: rgb(111, 0, 255);
  font-weight: bold;
  font-size: 12px;
}

#DropE_EMP .btn-dark {
  color: rgb(111, 0, 255);
  font-weight: bold;
  font-size: 12px;
}

#DropE_CC .btn-dark {
  color: rgb(111, 0, 255);
  font-weight: bold;
  font-size: 12px;
}

#DropE_MAQ .btn-dark {
  color: rgb(111, 0, 255);
  font-weight: bold;
  font-size: 12px;
}

#DropE_EQP .btn-dark {
  color: rgb(111, 0, 255);
  font-weight: bold;
  font-size: 12px;
}

#DropE_PE .btn-dark {
  color: rgb(111, 0, 255);
  font-weight: bold;
  font-size: 12px;
}

#DropE_MAQ .btn-dark {
  color: rgb(111, 0, 255);
  font-weight: bold;
  font-size: 12px;
}


.strong {
  font-size: 80%
}



/* CSS JGROW*/
div.jGrowl div.success {
  background-color: rgb(184, 250, 167);
  color: navy;
}

div.jGrowl div.warning {
  background-color: rgb(250, 231, 167);
  color: navy;
}

div.jGrowl div.danger {
  background-color: rgb(250, 167, 167);
  color: navy;
}


.circulo {
  border-radius: 50%;
  behavior: url(PIE.htc);
  /* remove if you don't care about IE8 */
}

/* STATUS PEDIDOS */

._P {
  width: 10px;
  height: 10px;
  background: whitesmoke;
  color: whitesmoke;
  border: 1px solid black;
}

.AP {
  width: 10px;
  height: 10px;
  background: #855228;
  color: #855228;
  border: 3px solid #855228;
}

.BP {
  width: 10px;
  height: 10px;
  background: yellow;
  color: yellow;
  border: 3px solid yellow;
}

.CP {
  width: 10px;
  height: 10px;
  background: yellow;
  color: yellow;
  border: 3px solid yellow;
}

.DP {
  width: 10px;
  height: 10px;
  background: yellow;
  color: yellow;
  border: 3px solid yellow;
}

.EP {
  width: 10px;
  height: 10px;
  background: red;
  color: red;
  border: 3px solid red;
}

.FP {
  width: 10px;
  height: 10px;
  background: blue;
  color: blue;
  border: 3px solid blue;
}

.GP {
  width: 10px;
  height: 10px;
  background: black;
  color: black;
  border: 3px solid black;
}

.HP {
  width: 10px;
  height: 10px;
  background: blue;
  color: blue;
  border: 3px solid blue;
}

.IP {
  width: 10px;
  height: 10px;
  background: yellow;
  color: yellow;
  border: 3px solid yellow;
}

.JP {
  width: 10px;
  height: 10px;
  background: blue;
  color: blue;
  border: 3px solid blue;
}

.KP {
  width: 10px;
  height: 10px;
  background: yellow;
  color: yellow;
  border: 3px solid yellow;
}

.LP {
  width: 10px;
  height: 10px;
  background: #03eb03;
  color: #03eb03;
  border: 3px solid #03eb03;
}

.MP {
  width: 10px;
  height: 10px;
  background: black;
  color: black;
  border: 3px solid black;
}

.NP {
  width: 10px;
  height: 10px;
  background: black;
  color: black;
  border: 3px solid black;
}

.OP {
  width: 10px;
  height: 10px;
  background: blue;
  color: blue;
  border: 3px solid blue;
}

.PP {
  width: 10px;
  height: 10px;
  background: orange;
  color: orange;
  border: 3px solid orange;
}

.QP {
  width: 10px;
  height: 10px;
  background: blue;
  color: blue;
  border: 3px solid blue;
}

.RP {
  width: 10px;
  height: 10px;
  background: blue;
  color: blue;
  border: 3px solid blue;
}

.SP {
  width: 10px;
  height: 10px;
  background: green;
  color: green;
  border: 3px solid green;
}

.TP {
  width: 10px;
  height: 10px;
  background: gray;
  color: gray;
  border: 3px solid gray;
}

.UP {
  width: 10px;
  height: 10px;
  background: yellow;
  color: yellow;
  border: 3px solid yellow;
}

.VP {
  width: 10px;
  height: 10px;
  background: #019101;
  color: #019101;
  border: 3px solid #019101;
}

.WP {
  width: 10px;
  height: 10px;
  background: #019101;
  color: #019101;
  border: 3px solid #019101;
}

.YP {
  width: 10px;
  height: 10px;
  background: pink;
  color: pink;
  border: 3px solid pink;
}

/* STATUS ROMANEIOS */
.A {
  width: 10px;
  height: 10px;
  background: #03eb03;
  color: #03eb03;
  border: 3px solid #03eb03;
}

.L {
  width: 10px;
  height: 10px;
  background: #FFFF00;
  color: #FFFF00;
  border: 3px solid #FFFF00;
}

.B {
  width: 10px;
  height: 10px;
  background: #0000FF;
  color: #0000FF;
  border: 3px solid #0000FF;
}

.T {
  width: 10px;
  height: 10px;
  background: #FF9933;
  color: #FF9933;
  border: 3px solid #FF9933;
}

.D {
  width: 10px;
  height: 10px;
  background: #E5E5E5;
  color: #E5E5E5;
  border: 3px solid #E5E5E5;
}

.Q {
  width: 10px;
  height: 10px;
  background: #FF00FF;
  color: #FF00FF;
  border: 3px solid #FF00FF;
}

.E {
  width: 10px;
  height: 10px;
  background: #008000;
  color: #008000;
  border: 3px solid #008000;
}

.C {
  width: 10px;
  height: 10px;
  background: #000000;
  color: #000000;
  border: 3px solid #000000;
}

.F {
  width: 10px;
  height: 10px;
  background: #CC0000;
  color: #CC0000;
  border: 3px solid #CC0000;
}

.S {
  width: 10px;
  height: 10px;
  background: #5C4033;
  color: #5C4033;
  border: 3px solid #5C4033;
}

/* Colores Relatorio Orçamento*/

.fundo-orc-mes {
  background-color: #CCFFFF
}

.fundo-cart-mes {
  background-color: #CCFFCC
}

.fundo-fat-mes {
  background-color: #CCFF99
}

.fundo-rel-mes {
  background-color: rgb(255, 72, 0)
}

.google-visualization-table-table .black-border {
  border: solid black;
  border-width: 0px 0px 1px 1px;
}

.div-body {
  height: calc(100vh - 190px);
  overflow-y: scroll;
}

.border-central {
  border: 0.1rem solid black !important;
  background-color: rgb(236, 223, 223);
  color: rgb(133, 133, 133);
}



/* Estilo fontes e tamanho padroes*/
.fonteNor {
  font-weight: normal;
}

.fonteBold {
  font-weight: bold;
}

.fonte8 {
  font-size: 8px;
}

.fonte9 {
  font-size: 9px;
}

.fonte10 {
  font-size: 10px;
}

.fonte11 {
  font-size: 11px;
}

.fonte12 {
  font-size: 12px;
}

.fonte13 {
  font-size: 13px;
}

.fonte14 {
  font-size: 14px;
}

.fonte15 {
  font-size: 15px;
}

.fonte16 {
  font-size: 16px;
}

.fonte17 {
  font-size: 17px;
}

.fonte18 {
  font-size: 18px;
}

.publico {
  padding-right: 80px;
}