body {
    margin: 0;
    font-family: 'Verdana', 'Segoe UI', sans-serif;
    background: linear-gradient(180deg, #f2f9ee, #f8fff4);
    color: #213124;
}

.container {
    max-width: 840px;
    margin: 0 auto;
    padding: 32px 20px 48px;
}

h1,
h2 {
    margin-top: 0;
}

.intro {
    margin-bottom: 24px;
}

.painel {
    background: #ffffff;
    border: 2px solid #c4dbbf;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 18px;
    box-shadow: 0 10px 30px rgba(33, 49, 36, 0.08);
}

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

input,
select,
button {
    font: inherit;
}

input,
select {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    margin-bottom: 14px;
    border-radius: 10px;
    border: 1px solid #9db790;
}

.linha-notas {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.linha-botoes {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

button {
    padding: 12px 16px;
    border: 0;
    border-radius: 10px;
    background: #2f7a4f;
    color: #ffffff;
    cursor: pointer;
}

button.secundario {
    background: #7b5d34;
}

.mensagem {
    min-height: 24px;
    margin-bottom: 0;
    color: #2f7a4f;
    font-weight: 700;
}

.resumo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.resumo > div {
    background: #f8fff3;
    border: 1px solid #d5e5d0;
    border-radius: 12px;
    padding: 12px;
}

.rotulo {
    display: block;
    font-size: 0.9rem;
    color: #546659;
    margin-bottom: 6px;
}

.tabela-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
}

th,
td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #dbe9d5;
}

th {
    background: #f4faef;
    color: #2a4b31;
}

.status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.status.ok {
    background: #d4f3da;
    color: #1f6a32;
}

.status.alerta {
    background: #ffe8c9;
    color: #8a4b11;
}

@media (max-width: 640px) {
    .container {
        padding: 24px 16px 40px;
    }

    .linha-notas {
        grid-template-columns: 1fr;
    }
}