* { box-sizing: border-box; }
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; margin: 0; color: #1f2937; background: #f3f4f6; font-size: 14px; }
header { background: #1e3a5f; color: #fff; padding: 10px 18px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
header a { color: #cfe0f5; text-decoration: none; font-weight: 500; }
header a:hover { color: #fff; }
header .brand { font-weight: 700; font-size: 16px; color: #fff; }
header .spacer { flex: 1; }
main { padding: 18px; max-width: 1300px; margin: 0 auto; }
h1 { font-size: 20px; margin: 0 0 14px; }
h2 { font-size: 16px; margin: 18px 0 8px; }
table { border-collapse: collapse; width: 100%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
th, td { padding: 6px 9px; border-bottom: 1px solid #e5e7eb; text-align: left; white-space: nowrap; }
th { background: #eef2f7; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: #374151; }
tr:hover td { background: #f9fafb; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.neg { color: #b91c1c; }
.pos { color: #047857; }
.muted { color: #6b7280; }
.tag { display: inline-block; padding: 1px 7px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.tag.adicom { background: #fde68a; color: #92400e; }
.tag.storno { background: #ddd6fe; color: #5b21b6; }
form.bar { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; background: #fff; padding: 12px; border-radius: 6px; margin-bottom: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
label { display: block; font-size: 12px; color: #4b5563; margin-bottom: 3px; }
input, select { padding: 6px 8px; border: 1px solid #cbd5e1; border-radius: 4px; font-size: 14px; }
.btn { background: #1e3a5f; color: #fff; border: none; padding: 7px 14px; border-radius: 4px; cursor: pointer; font-size: 14px; text-decoration: none; display: inline-block; }
.btn:hover { background: #2a4d7a; }
.btn.sec { background: #e5e7eb; color: #1f2937; }
.btn.danger { background: #dc2626; }
.btn.sm { padding: 3px 9px; font-size: 12px; }
.actions a { margin-right: 6px; }
.card { background: #fff; padding: 16px; border-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,.06); margin-bottom: 14px; }
.totals { font-weight: 700; }
.totals td { border-top: 2px solid #94a3b8; background: #f1f5f9; }
.report-menu { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.report-menu a { display: block; background: #fff; padding: 16px; border-radius: 6px; text-decoration: none; color: #1f2937; box-shadow: 0 1px 2px rgba(0,0,0,.06); border-left: 4px solid #1e3a5f; }
.report-menu a:hover { box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.report-menu .t { font-weight: 700; display: block; margin-bottom: 4px; }
.report-menu .d { font-size: 12px; color: #6b7280; }
.login-wrap { max-width: 320px; margin: 80px auto; }
.error { background: #fee2e2; color: #991b1b; padding: 8px 12px; border-radius: 4px; margin-bottom: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media print { header, form.bar, .actions, .noprint { display: none !important; } body { background: #fff; } main { max-width: none; } }
