/* === Block from line 288-294 === */
/** select2 error hightight **/
.select2.error .select2-selection--single{
  border-color:#dc3545 !important;
  color:#dc3545 !important;
}

/* === Block from line 306-485 === */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
}

.bg-svg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* atrás do conteúdo */
}

.bg-svg svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Conteúdo acima do background */
.content {
  position: relative;
  z-index: 1;
  //color: white;
  //padding: 2rem;
}

buttonnumber {
  padding-top: 50px;
  padding-right: 30px;
  padding-bottom: 50px;
  padding-left: 80px;
}

.topo {
  padding-top: 30px;
}

  body.center-form {
    min-height: 100vh;
  }

  div.center-form {
    position: relative;
    min-height: 100vh;
  }

  div.center-form > form {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
  }

   .modal-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.8);
      backdrop-filter: blur(8px);
    }

 .carousel-container {
      width: 100%;
      height: 100%;
      position: fixed;
      overflow: hidden;
	  background-color: rgba(0, 0, 0, 0.5);
      display: block;
	  z-index: 999999;         /* muito acima de todo o conteúdo */
      align-items: center;
      justify-content: center;
      transition: opacity 1.5s ease;
    }

    .carousel-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
      transition: transform 0.5s ease-in-out;
    }

    .carousel-image {
  width: 100%;
  height: auto;
    }


    .install-button {
      display: none;
    }

/* z-index dynamicModal sobre EmiteGuia-modal */
#dynamicModal {
  z-index: 1070 !important;
}
#dynamicModal + .modal-backdrop {
  z-index: 1059 !important;
}


.vertical-center { /*alinhamento vertical*/
  min-height: 100%;
  min-height: 100vh;

  display: flex;
  align-items: center;
}

.horizontal-center {
    margin: 0 auto;
    width: 80%;

}



/* Overlay bloqueante */
#overlayBlock {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000; /* Fundo sólido preto */
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: sans-serif;
  text-align: center;
  padding: 20px;
}

/* Conteúdo da mensagem no overlay */
#overlayContent {
  background: #444;
  border-radius: 5px;
  padding: 30px;
  max-width: 400px;
  width: 100%;
  text-align: center;
}

/* Classe para ocultar o overlay */
.hidden {
  display: none !important;
}

/* Botões dentro do overlay */
button {
  padding: 10px 20px;
  cursor: pointer;
}

/* Ocultar tudo atrás do overlay */
body.overlay-active {
  overflow: hidden; /* Impede rolagem */
}


/* Fundo escuro para modais filhos*/
#WHATSAPP-modal,
#EMAIL-modal {
    background: rgba(0, 0, 0, 0.7) !important;
}

/* Fallback via atributo  */
.modal[id$="-modal"] {
    background: rgba(0, 0, 0, 0.7) !important;
}

/* === Block from line 535-553 === */
.skyline-outline {
  fill: none;
  stroke: #2C8FB8;
  stroke-width: 1.8;
  opacity: 0.16;
}
.skyline-fill {
  fill: #144563;
  opacity: 0.09;
}
.window-line {
  stroke: #2C8FB8;
  stroke-width: 0.8;
  opacity: 0.08;
}

/* === Block from line 805-838 === */

  .header-card {
    border-radius: 0 0 25px 25px !important;
    background-color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease-in-out;
	margin-top: 0px;
	margin-right: 3rem !important;
	margin-left: 3rem !important;
  }

  .header-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
  }

  .header-card h1 {
    color: #fff !important;
    font-weight: 600;
    letter-spacing: 0.5px;
  }

  .header-card img {
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 4px;
  }

  .header-card .small {
    opacity: 0.9;
  }

/* === Block from line 988-1169 === */
/* ============================================
   ANIMAÇÃO DE CLIQUE PARA BOXES
   ============================================ */

/* Layout centralizado para boxes redondos */
.small-box_redondo {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 30px 20px !important;
    min-height: 200px !important;
    text-align: center !important;
    border-radius: 25px !important;
}

/* Ícone centralizado */
.small-box_redondo .icon-centered {
    margin-bottom: 15px;
}

.small-box_redondo .icon-centered i {
    font-size: 60px;
    color: #6c757d;
    transition: all 0.3s ease;
}

/* Texto centralizado abaixo do ícone */
.small-box_redondo .inner-centered {
    width: 100%;
}

.small-box_redondo .inner-centered h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #495057;
}

.small-box_redondo .inner-centered p {
    font-size: 14px;
    margin: 0;
    color: #6c757d;
}

/* Efeito hover no ícone */
.box-clickable:hover .small-box_redondo .icon-centered i {
    transform: scale(1.1);
    color: #495057;
}

/* Efeito ao clicar no ícone */
.box-clickable:active .small-box_redondo .icon-centered i,
.box-clickable.clicking .small-box_redondo .icon-centered i {
    transform: scale(0.9);
}

.box-clickable {
    display: block;
    position: relative;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    border-radius: 25px !important;
}

.box-clickable .small-box {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform: scale(1);
    border-radius: 25px !important;
}

/* Efeito hover */
.box-clickable:hover .small-box {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
}

/* Efeito ao clicar/tocar */
.box-clickable:active .small-box,
.box-clickable.clicking .small-box {
    transform: scale(0.90) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    filter: brightness(0.7);
}

/* Ripple effect - ESCURO */
.box-clickable .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    transform: scale(0);
    animation: ripple-animation-dark 0.8s ease-out;
    pointer-events: none;
    z-index: 999;
}

@keyframes ripple-animation-dark {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        transform: scale(6);
        opacity: 0;
    }
}

/* Overlay escuro ao clicar */
.box-clickable .dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    z-index: 998;
    border-radius: 25px !important;
    animation: dark-flash 0.4s ease-out;
}

@keyframes dark-flash {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Responsivo */
@media (max-width: 768px) {
    .small-box_redondo {
        min-height: 180px !important;
        padding: 25px 15px !important;
    }

    .small-box_redondo .icon-centered i {
        font-size: 50px;
    }

    .small-box_redondo .inner-centered h3 {
        font-size: 20px;
    }

    .small-box_redondo .inner-centered p {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .small-box_redondo {
        min-height: 160px !important;
        padding: 20px 10px !important;
    }

    .small-box_redondo .icon-centered i {
        font-size: 45px;
    }

    .small-box_redondo .inner-centered h3 {
        font-size: 18px;
    }

    .small-box_redondo .inner-centered p {
        font-size: 12px;
    }
}

/* === Block from line 1323-1368 === */
/* Teclado Numérico Compacto */
.keyboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 280px;
  margin: 0 auto;
}

.btn-keyboard {
  width: 100%;
  height: 55px;
  font-size: 20px;
  font-weight: 600;
  padding: 0;
  border-radius: 4px;
}

/* Botão Limpar ocupa 2 colunas */
.btn-keyboard-clear {
  grid-column: span 2;
}

/* Ajustes do modal */
#EmiteGuia-modal .modal-body {
  padding: 20px;
}

#EmiteGuia-modal .modal-footer {
  padding: 10px 15px;
}

/* Responsivo */
@media (max-width: 576px) {
  .keyboard-grid {
    max-width: 100%;
    gap: 6px;
  }

  .btn-keyboard {
    height: 50px;
    font-size: 18px;
  }
}

/* === Block from line 1568-1724 === */
/* Container do QR Code */
.qrcode-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.qrcode-wrapper {
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

#qrcode-display {
  width: 300px;
  height: 300px;
  background: #f8f9fa;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #e9ecef;
  position: relative;
  overflow: hidden;
}

/* Placeholder do QR Code (quando não há código carregado) */
#qrcode-display:empty::before {
  content: '';
  width: 280px;
  height: 280px;
  background-image:
    linear-gradient(45deg, #dee2e6 25%, transparent 25%),
    linear-gradient(-45deg, #dee2e6 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #dee2e6 75%),
    linear-gradient(-45deg, transparent 75%, #dee2e6 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  opacity: 0.3;
}

/* Estilo para QR Code gerado */
#qrcode-display img,
#qrcode-display canvas {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
}

/* Informações do QR Code */
.qrcode-info {
  max-width: 500px;
  margin: 0 auto;
}

.qrcode-info p {
  font-size: 16px;
  line-height: 1.6;
}

/* Botão de Ação */
.btn-action-qr {
  padding: 14px 40px !important;
  font-weight: 700;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-size: 16px;
  min-width: 200px;
}

.btn-action-qr:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.btn-action-qr:active {
  transform: translateY(0px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-danger.btn-action-qr {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
}

.btn-danger.btn-action-qr:hover {
  background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
}

/* Modal Body */
#QRCODE-modal .modal-body {
  background: #f8f9fa;
}

/* Responsivo */
@media (max-width: 768px) {
  .qrcode-wrapper {
    padding: 20px;
  }

  #qrcode-display {
    width: 250px;
    height: 250px;
  }

  .qrcode-info p {
    font-size: 14px;
  }

  .btn-action-qr {
    padding: 12px 30px !important;
    font-size: 14px;
    min-width: 160px;
  }
}

@media (max-width: 576px) {
  .qrcode-wrapper {
    padding: 15px;
  }

  #qrcode-display {
    width: 200px;
    height: 200px;
  }

  #QRCODE-modal .modal-body {
    padding: 30px 15px !important;
  }
}

/* Animação de Loading */
.qrcode-loading {
  display: inline-block;
  width: 50px;
  height: 50px;
  border: 5px solid #e9ecef;
  border-top-color: #6c757d;
  border-radius: 50%;
  animation: qrcode-spin 1s linear infinite;
}

@keyframes qrcode-spin {
  to {
    transform: rotate(360deg);
  }
}

/* === Block from line 1795-1840 === */
/* Estilos para garantir scroll e rodapé fixo */
#birthdate-modal .modal-content {
    max-height: 90vh; /* Altura máxima do modal */
    display: flex;
    flex-direction: column;
}

#birthdate-modal .modal-header {
    flex-shrink: 0; /* Header não diminui */
}

#birthdate-modal .modal-body-wrapper {
    flex: 1 1 auto; /* Área flexível que cresce */
    overflow-y: auto; /* Scroll vertical quando necessário */
    overflow-x: hidden; /* Sem scroll horizontal */
    max-height: calc(90vh - 180px); /* Altura máxima menos header e footer */
}

#birthdate-modal .modal-footer {
    flex-shrink: 0; /* Footer não diminui */
    position: sticky;
    bottom: 0;
    background-color: #ffffff; /* bg-Secondary */
    z-index: 1;
}

/* Scroll personalizado para melhor visual */
#birthdate-modal .modal-body-wrapper::-webkit-scrollbar {
    width: 8px;
}

#birthdate-modal .modal-body-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#birthdate-modal .modal-body-wrapper::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

#birthdate-modal .modal-body-wrapper::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* === Block from line 2147-2207 === */
/* ============================================================================ */
/* ESTILOS OTIMIZADOS - MÁXIMO USO DO ADMINLTE NATIVO */
/* ============================================================================ */

/* Botão laranja (não existe no AdminLTE) */
.btn-orange {
    background-color: #fd7e14;
    border-color: #fd7e14;
    color: #fff;
}

.btn-orange:hover {
    background-color: #e8681c;
    border-color: #dc5f00;
    color: #fff;
}

.btn-orange:focus, .btn-orange.focus {
    box-shadow: 0 0 0 0.2rem rgba(253, 126, 20, 0.25);
}

/* Modais empilhados (z-index) */
#comando-confirm-modal,
#troca-papel-modal {
    z-index: 1070 !important;
}

#dynamicModal {
    z-index: 1080 !important;
}

/* Teclado numérico compacto */
.keyboard-grid-admin {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-width: 240px;
    margin: 0 auto;
}

.btn-keyboard-admin {
    height: 45px;
    font-size: 16px;
    font-weight: 600;
}

/* Campo senha com espaçamento */
#admin-password {
    font-family: 'Courier New', monospace;
    letter-spacing: 4px;
    font-size: 18px !important;
}

/* Efeito toque longo no rodapé */
#totem-footer.long-press-active {
    background: rgba(253, 126, 20, 0.8) !important;
    transform: scale(1.01);
    transition: all 0.3s ease;
}

/* === Block from line 3465-3513 === */
#totem-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1999999;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(6, 30, 55, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.3px;
  user-select: none;
}

#totem-footer .footer-copy {
  font-weight: 400;
}

#totem-footer .footer-sep {
  opacity: 0.3;
}

#totem-footer .footer-device strong {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}

#totem-footer .footer-id {
  font-family: 'Courier New', monospace;
  font-size: 10px;
  opacity: 0.6;
  margin-left: 4px;
}

#totem-footer .footer-ambiente {
  font-family: 'Courier New', monospace;
  font-size: 10px;
  opacity: 0.6;
  margin-left: 4px;
}

/* === Block from line 3732-3741 === */
/* ============================================
   FORÇA MODAL-XL EM QUALQUER RESOLUÇÃO
   ============================================ */
.modal-xl {
    max-width: 1140px !important;
    width: 95vw !important;
    margin: 10px auto !important;
}
