* { box-sizing: border-box; font-family: Arial, sans-serif; }
body { margin: 0; background: #f2f5f9; color: #1c2630; }
header { background: #0e3a5a; color: #fff; padding: 16px 24px; }
header h1 { margin: 0 0 10px; font-size: 24px; }
nav { display: flex; flex-wrap: wrap; gap: 10px; }
nav a { color: #fff; text-decoration: none; background: #1b5782; padding: 8px 12px; border-radius: 6px; }
main { padding: 20px; }
h2 { margin-top: 0; }
.alert { padding: 10px; border-radius: 6px; margin-bottom: 12px; }
.alert.ok { background: #d9f6e3; color: #15592f; }
.alert.erro { background: #fbd6d6; color: #7a1212; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-bottom: 20px; }
.card { background: #fff; border-radius: 10px; padding: 14px; box-shadow: 0 2px 8px rgba(10,20,30,.08); margin-bottom: 14px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 20px; }
.kpis article { background: #fff; border-radius: 10px; padding: 12px; box-shadow: 0 2px 8px rgba(10,20,30,.08); }
.kpis p { font-size: 22px; margin: 6px 0 0; color: #154f7c; font-weight: bold; }
form input, form select, form textarea, button {
    width: 100%; padding: 9px; margin-bottom: 8px; border: 1px solid #d7dee7; border-radius: 6px;
}
textarea { min-height: 64px; resize: vertical; }
button { background: #0f5f99; color: #fff; border: none; cursor: pointer; font-weight: bold; }
button:hover { background: #0b4f80; }
table { width: 100%; border-collapse: collapse; background: #fff; box-shadow: 0 2px 8px rgba(10,20,30,.08); border-radius: 10px; overflow: hidden; }
th, td { border-bottom: 1px solid #eef2f7; padding: 8px; text-align: left; font-size: 14px; }
th { background: #eaf1f8; }
a { color: #0f5f99; }

@media print {
    nav, form, button { display: none !important; }
    body { background: #fff; }
    .card, table, .kpis article { box-shadow: none; }
}
