/* Base */
* { box-sizing: border-box; }

body {
    font-family: Arial, sans-serif;
    margin: 24px;
    background-color: #f7f7f7;
    color: #333;

}

h1 {
    color: #2c3e50;
    text-align: center;
    margin: 0 0 16px;
}

/* Menu */
.menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 16px;
}

a.botao, button {
    background-color: #2ecc71;
    color: white;
    padding: 10px 14px;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    margin: 0;
    cursor: pointer;
}

a.botao:hover, button:hover {
    background-color: #27ae60;
}

/* Forms */
form {
    background: white;
    padding: 16px;
    border-radius: 12px;
    max-width: 900px;
    margin: 0 auto 16px;
}

label { display: block; margin-bottom: 6px; }

input, select {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

form.teste {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: end;
}

form.teste input {
    flex: 1 1 220px;
    margin-bottom: 0;
}

form.teste button {
    flex: 0 0 auto;
}

/* Table */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: white;
    border-radius: 12px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 560px; /* evita esmagar colunas no celular */
}

th, td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
    white-space: nowrap;
}

th {
    background-color: #3498db;
    color: white;
}

/* Mobile */
@media (max-width: 600px) {
    body { margin: 12px; }

    .menu {
        gap: 8px;
    }

    .menu a.botao {
        flex: 1 1 calc(50% - 8px);
        text-align: center;
    }

    form { padding: 12px; }

    form.teste {
        flex-direction: column;
        align-items: stretch;
    }

    form.teste button {
        width: 100%;
    }

    th, td { padding: 8px; }
}

/* Itens vencidos */
tr.vencido {
    background-color: #c62828; /* vermelho forte */
    color: #ffffff;           /* texto branco */
    font-weight: bold;
}
tr.vencido td{
    color:#ffff;
}
