h2 {
            text-align: center;
            color: #FFF;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        h2 .icon {
            width: 50px;
            height: 50px;
        }

        body {
            background-color: #dc143c;
            font-family: Arial, sans-serif;
            text-align: center;
            margin: 0;
            padding: 0;
            height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        h2 {
            margin-top: 60px; 
        }

        @media (max-width: 768px) {
            body {
                justify-content: flex-start;
                padding-top: 20px;
                height: auto;
            }

            #camera {
                width: 100%;
                max-width: 350px;
                height: auto;
                display: none;
                border-radius: 15px;
                overflow: hidden;
                position: relative;
            }

            #scannerOverlay {
                position: absolute;
                top: 50%;
                left: 50%;
                width: 200px;
                height: 100px;
                transform: translate(-50%, -50%);
                border: 3px dashed red;
                border-radius: 10px;
                pointer-events: none;
            }

            table {
                width: 90%;
            }
        }

        table {
            width: 80%;
            max-width: 600px;
            margin: 20px auto;
            border-collapse: collapse;
        }

        table th, table td {
            border: 1px solid #ccc;
            padding: 5px;
            text-align: center;
        }

        table th {
            background-color: #f2f2f2;
            color: black;
        }

        #downloadBtn {
            margin-top: 10px;
            display: none;
            background-color: #4CAF50;
            color: white;
            padding: 12px 24px;
            font-size: 16px;
            font-weight: bold;
            border: none;
            border-radius: 25px;
            cursor: pointer;
            box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
        }

        #downloadBtn:hover {
            background-color: #45a049;
            transform: translateY(-3px);
            box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
        }

        #downloadBtn:active {
            transform: translateY(1px);
            box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
        }

        #manualCodeButton {
            position: absolute;
            bottom: 10px;
            left: 50%;
            transform: translateX(-50%);
            box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            z-index: 10;
            background-color: #FFD700;
            color: #333;;
            border: none;
            padding: 10px 20px;
            font-size: 16px;
            border-radius: 25px;
            cursor: pointer;
        }
        #manualCodeButton:hover {
            background-color: #9c0720;
        }
        #cameraContainer {
            position: relative;
            display: inline-block;
        }

        /* === HEADER SUPERIOR === */
#header-info {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 8px 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 100;
}

#funcionario-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: bold;
    color: #222;
    font-size: 0.95rem;
}

#funcionario-name i {
    color: #cf292e;
    font-size: 1rem;
}

#signal-meter {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 18px;
    transform: translateX(-5px); 
    padding: 3px 5px;
    border-radius: 6px;
}

.bar {
    width: 4px;
    background: #ccc;
    border-radius: 2px;
    transition: background 0.2s ease;
}

.bar.active {
    background: #09b649;
}

#left-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

#btnHistorialFunc {
  font-size: 1.5rem;
  color: #cf292e;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.2s ease;
}

#btnHistorialFunc:hover {
  color: #09b649;
  transform: scale(1.1);
}


#header-info {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  padding: 8px 15px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 100;
}


#funcionario-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

#funcionario-name {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: bold;
  color: #222;
  font-size: 0.95rem;
}

#funcionario-name i {
  color: #cf292e;
  font-size: 1rem;
}


.bar {
  width: 4px;
  background: #ccc;
  border-radius: 2px;
  transition: background 0.2s ease;
}

.bar.active {
  background: #09b649;
}

#right-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

#logoutBtn {
  background: #cf292e;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  font-weight: bold;
  margin-right: 20px;
  transition: background 0.3s ease, transform 0.2s ease;
}

#logoutBtn:hover {
  background: #a40f1d;
  transform: scale(1.05);
}

.swal2-container.swal2-backdrop-show {
  background: rgba(0, 0, 0, 0.42) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
