/* ================== */
/* Imports e Reset  */
/* ================== */
@import url("https://fonts.googleapis.com/css2?family=PT+Mono&display=swap");

/* Reset básico */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
b,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

body {
  line-height: 1;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

@media screen and (max-width: 1920px) {
  
/* ================== */
/* Estilos Gerais */
/* ================== */
#body {
  background-color: #1d1bcc;
  margin: 10px;
  padding: 10px;
}

.content {
  padding: 20px;
  margin-top: 80px;
  padding-left: 10px;
  padding-right: 10px;
}

/* ================== */
/* Sidebar */
/* ================== */
.sidebar {
  position: fixed;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: auto;
  min-width: 250px;
  padding: 20px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
  z-index: 998;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sidebar.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%);
}

.sidebar button {
  margin-bottom: 14px;
  background-color: #1e1bcc;
  border-radius: 2rem;
  padding: 10px 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  border: none;
  color: white;
  font-weight: bold;
  transition: transform 0.3s ease;
  margin: 12px;
}

.sidebar button:hover {
  transform: scale(1.05);
}

/* ================== */
/* Títulos */
/* ================== */
.titulo {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  font-weight: 300;
  color: white;
  font-family: "PT Mono", monospace;
}

h2 {
  color: #fff;
  z-index: 1002;
  background: none;
  position: fixed;
  top: -40px;
  font-size: 35px;
}

/* ================== */
/* Cards */
/* ================== */
.cool-md-4 {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 0 10px;
  box-sizing: border-box;
  margin: 0 auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.card {
  background-color: #2c2c2c;
  border-radius: 0.5rem;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  padding: 10px;
}

.card:hover {
  transform: translateY(-5px);
}

.card-header {
  font-weight: bold;
  font-size: 1.2rem;
}

.card-body {
  color: #fff;
  display: flex;
  flex-direction: column;
}

.card-body .espera-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.card-body .espera-container h5,
.card-body .espera-container p {
  position: relative;
  margin: 0;
  font-size: 1rem;
}

.card-body .espera-container p {
  position: relative;
  top: 7px;
}

.card-title {
  font-size: 1rem;
}

.card-text {
  font-size: 1.4rem;
  font-weight: bold;
}

.card .btn {
  width: 100%;
  font-weight: bold;
  margin-top: 10px;
}

/* ================== */
/* Mensagens */
/* ================== */
#senha-chamada-secretaria,
#senha-chamada-tesouraria {
  font-weight: bold;
  font-size: 1.2rem;
  text-align: center;
  color: #fff;
  margin-top: 20px;
}

/* ================== */
/* Setores */
/* ================== */
.setor {
  display: none;
}

.setor.ativo {
  display: block;
}

/* ================== */
/* Overlay */
/* ================== */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.801);
  z-index: 997;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.overlay.visible {
  opacity: 1;
  visibility: visible;
  backdrop-filter: blur(6px);
}

/* ================== */
/* Loading Overlay */
/* ================== */
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.911);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#loading-overlay.visible {
  opacity: 1;
  visibility: visible;
}

#loading-overlay .spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #fff;
  border-top: 6px solid #ff5d12;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ================== */
/* Menu Toggle */
/* ================== */

#menu-toggle {
  margin: 10px;
  padding: 10px;
  position: fixed;
  top: 20px;
  left: 20px;
  width: 40px;
  height: 40px;
  background-color: #ff5d12;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(255, 93, 18, 0.6);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;

  transition: transform 0.2s ease, background-color 0.3s ease;
  opacity: 1;
  transform: translateX(0);
  z-index: 1001;
}

#menu-toggle:hover {
  background-color: #e14e00;
}

#menu-toggle.hide {
  opacity: 0;
  transform: translateX(-20px);
  pointer-events: none;
}

#menu-toggle span,
#menu-toggle span::before,
#menu-toggle span::after {
  display: block;
  background-color: #fff;
  border-radius: 2px;
  position: absolute;
  width: 20px;
  height: 2.5px;
  transition: all 0.3s ease;
}

#menu-toggle span {
  position: relative;
}

#menu-toggle span::before,
#menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

#menu-toggle span::before {
  top: -7px;
}

#menu-toggle span::after {
  top: 7px;
}

/* Quando o menu estiver aberto, transforma o hamburguer em X */

#menu-toggle.open span {
  background-color: transparent; /* a linha do meio desaparece */
}

#menu-toggle.open span::before {
  transform: rotate(45deg);
  top: 0;
}

#menu-toggle.open span::after {
  transform: rotate(-45deg);
  top: 0;
}
/* ================== */
/* Dropdowns */
/* ================== */
.dropdown-toggle {
  background-color: #007bff;
  color: white;
  border-radius: 4px;
  padding: 10px 10px;
  width: 200px; /* Ajuste a largura conforme necessário */
  text-align: center;
  font-size: 18px;
}

.dropdown-menu {
  display: none; /* Inicialmente oculto */
  position: absolute;
  background-color: none;
  padding: 10px;
  z-index: 1000;
  border-radius: 4px;
}

.dropdown-menu .dropdown-item {
  padding: 10px 10px;
  color: black;
  text-align: left;
  background-color: #1e1bcc;
  border: none;

  color: #fff;
  text-align: center;
  width: 200px;
  font-size: 18px;
}

.dropdown-menu .dropdown-item:hover {
  background-color: #066ecf; /* Cor de fundo ao passar o mouse */
}

/* Exibir o submenu ao passar o mouse sobre o botão do menu */
#dropdownSetoresWrapper:hover .dropdown-menu,
#dropdownAdminWrapper:hover .dropdown-menu,
#dropdownTelasWrapper:hover .dropdown-menu {
  display: block; /* Exibe o submenu */
  margin-top: 0;
  position: fixed;
  top: 9px;
  left: 247px; /* Ajuste a margem se necessário */
}

/* Posição e aparência dos wrappers */
#dropdownSetoresWrapper,
#dropdownAdminWrapper {
  position: relative; /* Necessário para o posicionamento absoluto do submenu */
}

/* ================== */
/* Responsividade */
/* ================== */
@media (max-width: 768px) {
  .row {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 90%;
    max-width: 100%;
    margin-bottom: 20px;
  }

  .titulo {
    font-size: 1.2rem;
    text-align: center;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
  }

  #menu-toggle {
    top: 10px;
    left: 10px;
    width: 36px;
    height: 36px;
  }

  .sidebar {
    width: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .sidebar button {
    width: 100%;
  }

  #senha-chamada-secretaria,
  #senha-chamada-tesouraria {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .card-body .espera-container {
    flex-direction: column;
    gap: 4px;
  }

  .card-body .espera-container h5,
  .card-body .espera-container p {
    font-size: 0.9rem;
    text-align: center;
  }

  .card .btn {
    font-size: 0.9rem;
  }

  .titulo {
    font-size: 1rem;
  }
}

/* ================== */
/* Configuração da Impressora */
/* ================== */
#config-impressora {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}

#config-impressora h2 {
  font-size: 1.7rem;
  display: flex;
  top: 85px;
  margin: 0;
  padding: 0;
}

#config-impressora input,
label,
button {
  width: 250px;
}

/* ================== */
/* Estilos de Botões */
/* ================== */
.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background-color: #007bff;
  color: white;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #0056b3;
}

.btn-light {
  background-color: #f8f9fa;
  color: #000;
}

.btn-light:hover {
  background-color: #e2e6ea;
}

.btn-primary {
  background-color: #007bff;
  color: white;
}

.btn-primary:hover {
  background-color: #0056b3;
}

.btn.disabled {
  pointer-events: none;
  opacity: 0.6;
}

/* ================== */
/* Estilos de Cores de Fundo */
/* ================== */
.bg-primary {
  background-color: #007bff;
}

.bg-success {
  background-color: #28a745;
}

.bg-warning {
  background-color: #ffc107;
}

.bg-danger {
  background-color: #dc3545;
}

.bg-info {
  background-color: #17a2b8;
}

.bg-dark {
  background-color: #343a40;
}

/* ================== */
/* Estilos de Colunas */
/* ================== */
.col-md-4 {
  flex: 0 0 32%;
  max-width: 32%;
}

.mb-3 {
  margin-bottom: 1rem;
}

.text-white {
  color: white;
}

}

