body { font-family: 'Segoe UI', Arial, sans-serif; background-color: #f4f6f9; margin: 0; padding: 20px; color: #333; }
nav { max-width: 660px; margin: 0 auto 12px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
nav .usuario { margin-left: auto; font-size: 13px; color: #555; }
nav .usuario a { padding: 0; font-size: 13px; }
body.largo nav, body.largo .container { max-width: 1250px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid #e3e7ee; vertical-align: top; }
th { background: #f4f6f9; color: #444; position: sticky; top: 0; white-space: nowrap; }
td.num, th.num { text-align: right; white-space: nowrap; }
tbody tr:hover { background: #f7faff; cursor: pointer; }
.tabela { overflow-x: auto; max-height: 65vh; border: 1px solid #e3e7ee; border-radius: 4px; }
.filtros { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 12px; }
.filtros .form-group { margin-bottom: 0; flex: 1 1 160px; }
.totais { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.totais div { background: #f4f6f9; border-radius: 6px; padding: 10px 14px; flex: 1 1 140px; }
.totais b { display: block; font-size: 18px; color: #0b4a85; }
.totais span { font-size: 12px; color: #666; }
button.pequeno { width: auto; padding: 6px 12px; font-size: 13px; margin: 0; }
.tag { display: inline-block; padding: 1px 7px; border-radius: 10px; font-size: 11px; font-weight: bold; background: #eee; color: #444; white-space: nowrap; }
.tag.ABERTA { background: #fff3cd; color: #7a5a00; }
.tag.NFD_RECEBIDA { background: #e7f1fb; color: #0b4a85; }
.tag.CEFA_RECEBIDA { background: #ede4fb; color: #4b2a85; }
.tag.ENCERRADA { background: #d4edda; color: #155724; }
.tag.inativo { background: #f8d7da; color: #721c24; }
nav a { text-decoration: none; color: #0056b3; padding: 8px 14px; border-radius: 4px; font-weight: bold; font-size: 14px; }
nav a.ativo { background: #0056b3; color: #fff; }
.container { max-width: 600px; background: white; padding: 30px; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); margin: auto; }
h2 { color: #333; margin-top: 0; border-bottom: 2px solid #0056b3; padding-bottom: 10px; }
h3 { color: #0056b3; font-size: 15px; margin: 25px 0 12px; padding-top: 15px; border-top: 1px solid #e3e7ee; }
.dica { color: #666; font-size: 13px; margin: -5px 0 15px; }
.form-group { margin-bottom: 15px; }
.row { display: flex; gap: 12px; }
.row .form-group { flex: 1; min-width: 0; }
.row .form-group.uf { flex: 0 0 90px; }
label { display: block; margin-bottom: 5px; font-weight: bold; color: #555; }
.opcional { font-weight: normal; color: #888; }
input, select, textarea { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; font-size: 14px; font-family: inherit; }
textarea { height: 80px; resize: vertical; }
button { background-color: #0056b3; color: white; border: none; padding: 12px 20px; font-size: 16px; border-radius: 4px; cursor: pointer; width: 100%; font-weight: bold; margin-top: 10px; }
button:hover { background-color: #004094; }
button:disabled { background-color: #7a9cc4; cursor: wait; }
button.secundario { background: #fff; color: #0056b3; border: 1px solid #0056b3; }
button.secundario:hover { background: #eef4fb; }
.botoes { display: flex; gap: 10px; }
.alert { padding: 10px; margin-bottom: 15px; border-radius: 4px; display: none; font-weight: bold; white-space: pre-line; }
.success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.info { background-color: #e7f1fb; color: #0b4a85; border: 1px solid #b9d5f0; display: block; font-weight: normal; }
.hidden { display: none !important; }
body.lancador .so-gestor { display: none !important; }
.campo-info { font-size: 12px; margin-top: 4px; color: #2e6b34; }
.campo-info.erro { color: #a3212c; }
.status-chip { display: inline-block; padding: 2px 8px; border-radius: 10px; background: #e7f1fb; color: #0b4a85; font-size: 12px; font-weight: bold; }
pre.email { background: #f7f8fa; border: 1px solid #dde2ea; border-radius: 4px; padding: 12px; white-space: pre-wrap; font-family: Consolas, monospace; font-size: 13px; }
@media (max-width: 520px) {
    body { padding: 10px; }
    .container { padding: 18px 16px; }
    .row, .botoes { flex-direction: column; gap: 0; }
    .row .form-group.uf { flex: 1; }
}
