:root { --cor: #1f4e79; --borda: #cfd6dd; --fundo: #f4f6f8; --erro: #b3261e; --ok: #1e7a3c; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.45 system-ui, "Segoe UI", sans-serif; background: var(--fundo); color: #1d2733; }
.topo { display: flex; align-items: center; gap: 24px; padding: 10px 20px; background: var(--cor); color: #fff; }
.topo a { color: #fff; text-decoration: none; }
.marca { font-weight: 700; font-size: 17px; }
.topo nav { display: flex; gap: 16px; flex: 1; }
.sair { display: flex; gap: 10px; align-items: center; margin: 0; }
main { max-width: 1100px; margin: 20px auto; padding: 0 16px 60px; }
h1 { font-size: 22px; margin: 0 0 14px; }
h2 { font-size: 16px; margin: 22px 0 8px; }
.cartao { background: #fff; border: 1px solid var(--borda); border-radius: 8px; padding: 16px; margin-bottom: 16px; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 7px 9px; border-bottom: 1px solid var(--borda); text-align: left; vertical-align: top; }
th { background: #eaeff3; font-size: 13px; }
td.num, th.num { text-align: right; white-space: nowrap; }
input, select, textarea { font: inherit; padding: 6px 8px; border: 1px solid var(--borda); border-radius: 5px; width: 100%; background: #fff; }
input[type=checkbox] { width: auto; }
label { display: block; font-size: 13px; color: #44515f; margin-bottom: 3px; }
.grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.btn, button { font: inherit; padding: 7px 14px; border-radius: 6px; border: 1px solid var(--cor); background: var(--cor); color: #fff; cursor: pointer; text-decoration: none; display: inline-block; }
.btn.sec, button.sec { background: #fff; color: var(--cor); }
.btn.perigo, button.perigo { background: #fff; color: var(--erro); border-color: var(--erro); }
button.link { background: none; border: 0; color: #fff; text-decoration: underline; padding: 0; }
.acoes { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; align-items: center; }
.aviso { padding: 9px 12px; border-radius: 6px; background: #e7f1fb; margin: 0 0 12px; }
.aviso.success { background: #e3f4e8; } .aviso.error { background: #fbe9e7; } .aviso.warning { background: #fff4d6; }
.erro, .errorlist { color: var(--erro); font-size: 13px; margin: 2px 0; padding: 0; list-style: none; }
.status { padding: 2px 9px; border-radius: 10px; font-size: 12px; background: #e6eaee; }
.status.aprovado { background: #d7f0df; } .status.enviado { background: #dcebfa; }
.status.recusado, .status.cancelado { background: #f6dcd9; }
.busca { position: relative; }
.sugestoes { position: absolute; z-index: 5; left: 0; right: 0; background: #fff; border: 1px solid var(--borda); border-radius: 6px; max-height: 260px; overflow: auto; box-shadow: 0 4px 12px #0002; }
.sugestoes div { padding: 7px 10px; cursor: pointer; } .sugestoes div:hover { background: #eef3f8; }
.sugestoes small { color: #66717d; }
.itens input { min-width: 70px; } .itens td.desc input { min-width: 220px; }
.totais { display: flex; gap: 24px; justify-content: flex-end; flex-wrap: wrap; font-size: 14px; }
.totais strong { font-size: 19px; }
.lixeira { background: none; border: 0; color: var(--erro); padding: 4px; line-height: 0; }
.lixeira:hover { background: #fbe9e7; }
pre.msg { white-space: pre-wrap; background: #f7f9fb; border: 1px solid var(--borda); padding: 10px; border-radius: 6px; margin: 0 0 8px; }
.pequeno { color: #66717d; font-size: 13px; }
@media (max-width: 700px) { .topo { flex-wrap: wrap; } .itens { overflow-x: auto; display: block; } }
input[readonly] { background: #eef1f4; color: #55616e; }
