body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

header {
    background-color: #004d61;
    padding: 20px 0;
    text-align: center;
}

#logo {
    height: 80px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    text-align: center;
    background-color: #ffffff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

h2 {
    color: #004d61;
}

.input-group {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.input-group > div {
    flex: 1;
    margin-right: 10px;
    min-width: 250px;
}

.input-group > div:last-child {
    margin-right: 0;
}

input[type="text"], input[type="date"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: calc(100% - 22px);
    box-sizing: border-box;
}

button {
    background-color: #4CAF50; /* Verde */
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
    padding: 8px;
    border: none;
    border-radius: 5px;
    width: 30%;
    margin: auto;
    display: block;
    margin-top: 15px;
}

.qr-footer {
    margin-top: 10px;
}

#qrcodeTable {
    border-collapse: collapse;
    width: 100%;
    margin-top: 20px;
}

#qrcodeTable th {
    background-color: #004D61;
    color: white;
    padding: 10px;
    text-align: center;
    vertical-align: middle;
}

#qrcodeTable td {
    border: 1px solid #ddd;
    text-align: center;
    vertical-align: middle;
}

.qrContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
}

.qrContainer > * {
    text-align: center;
}

.qrContainer div, .qrContainer canvas {
    margin: auto;
    display: block;
}

@media (max-width: 768px) {
    .input-group {
        flex-direction: column;
    }

    .input-group > div {
        margin-right: 0;
        margin-bottom: 10px;
    }

    input[type="text"], input[type="date"] {
        width: 100%;
    }

    button {
        width: 50%; /* Ajuste para garantir consistência no layout responsivo */
    }

    #qrcodeTable, #qrcodeTable thead, #qrcodeTable tbody, #qrcodeTable th, #qrcodeTable td, #qrcodeTable tr {
        display: block;
    }

    #qrcodeTable thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    #qrcodeTable td {
        display: block;
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-top: 20px;
        padding-bottom: 20px;
        text-align: center;
        vertical-align: middle;
    }

    #qrcodeTable td:before {
        content: attr(data-title);
        position: static;
        display: block;
        background-color: #004D61;
        color: white;
        text-align: center;
        font-weight: bold;
        margin-bottom: 15px;
    }
}