body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
}

.background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("fundo.PNG");
    background-size: cover;
    background-repeat: no-repeat;
    z-index: -2;
}

.background-wrapper::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.0);
    z-index: -1;
}

.form-container {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 1400px;
    position: relative;
    margin: 20px auto;
}

.logo-left, .logo-right {
    position: absolute;
}

.logo-left {
    top: 10px;
    left: 10px;
    width: 80px;
    height: auto;
}

.logo-right {
    top: 15px;
    right: 15px;
    width: 80px;
    height: 30px;
}

h1, h2, h3, h4 {
    text-align: center;
    color: #343a40;
    margin-bottom: 15px;
}

form {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 10px 15px;
}

.form-group {
    display: contents;
}

label {
    font-weight: 600;
    color: #495057;
    text-align: right;
    padding-right: 10px;
}

input, textarea {
    padding: 8px 10px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

button {
    background-color: #004080;
    color: #ffffff;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    grid-column: 2;
    justify-self: start;
}

button:hover {
    background-color: #ff8c00;
    color: #000000;
}

p {
    text-align: center;
    margin-top: 15px;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

nav {
    display: flex;
    justify-content: center;
}

.menu-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.menu-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 100px;
    margin: 5px;
    border: none;
    border-radius: 10px;
    background-color: rgba(220, 220, 220, 0.8);
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

.menu-button img {
    width: 40px;
    height: 40px;
    margin-bottom: 5px;
}

.menu-button:hover {
    background-color: rgba(200, 200, 200, 0.8);
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.checkbox-group label {
    margin-left: 5px;
    margin-bottom: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.9em;
}

th, td {
    border: 1px solid #dee2e6;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
    font-weight: bold;
    position: relative; /* Necessário para posicionar os filtros absolutamente dentro do th */    
    padding-bottom: 30px; /* Aumenta o padding inferior para dar espaço ao filtro */
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

.modal-body {
    padding: 20px;
}

@media print {
    body * {
        visibility: hidden;
    }
    .modal.show {
        visibility: visible;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
    }
    .modal.show * {
        visibility: visible;
    }
    .modal.show .logo-left,
    .modal.show .logo-right {
        width: 30px;
    }
    .modal.show .modal-dialog {
        max-width: 100%;
        margin: 0;
    }
    .modal.show .modal-content {
        border: none;
        border-radius: 0;
    }

    .modal.show .row {
        display: flex;
        flex-wrap: wrap;
    }

    .modal.show .col-md-6 {
        width: 50%;
        box-sizing: border-box;
    }

    .modal.show p {
        margin-bottom: 5px;
        font-size: 12pt;
    }
}

.logo-modal {
    width: 50px;
    height: auto;
}

.modal-dialog {
    max-width: 90%;
    margin: 1.75rem auto;
}

.text-left.nao-emitido, .text-left.nao {
    color: red;
}

.text-left.sim {
    color: green;
}

#dataHoraEmissao {
    text-align: center;
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

@media print {
    #dataHoraEmissao {
        display: block;
        font-size: 12pt;
    }
}
.header-filter-select {
    position: absolute;
    left: 5px; /* Ajuste conforme necessário para o alinhamento horizontal */
    right: 5px; /* Ajuste conforme necessário para o alinhamento horizontal */
    bottom: 5px; /* Alinha o select na parte inferior */
    width: calc(100% - 10px); /* Ajusta a largura considerando o espaçamento lateral */
    padding: 5px;
    font-size: 0.8em;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Garante que o padding e a borda não aumentem a largura */
}