:root {font-family:system-ui,sans-serif;color:#172a23;background:#f3f6f4;line-height:1.5}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0}
.wrap{width:min(100% - 2rem,68rem);margin-inline:auto}
header{background:#12352b;color:#fff}
header .wrap{min-height:4.5rem;display:flex;align-items:center;gap:1rem;flex-wrap:wrap;padding-block:.75rem}
header span{color:#d2e6dc}
header button{margin-left:auto}
main{padding-block:1.5rem 3rem}
h1,h2,h3,p{margin:0 0 .75rem}
h1{line-height:1.15;font-size:clamp(1.6rem,4.5vw,2.35rem)}
button,input,select,textarea{font:inherit}
button{cursor:pointer;background:#176044;color:#fff;border:1px solid transparent;border-radius:.55rem;padding:.58rem .9rem;font-weight:650;min-height:2.75rem}
button:disabled{opacity:.65;cursor:wait}
button.secondary{background:#edf4ef;border-color:#cadbd0;color:#153d2e}
:focus-visible{outline:3px solid #287ca5;outline-offset:3px}
.panel,article,.metricas div{padding:1rem;background:#fff;border:1px solid #d8e2db;border-radius:.85rem}
#acesso{max-width:28rem;margin:1rem auto}
label{display:grid;gap:.3rem;font-weight:600;margin-bottom:.7rem}
input,select,textarea{min-width:0;width:100%;padding:.55rem;border:1px solid #a5baad;border-radius:.45rem;background:#fff;color:#172a23}
.heading{display:flex;justify-content:space-between;align-items:center;gap:.75rem;flex-wrap:wrap;margin-bottom:1rem}
.heading h1,.heading h2{margin:0}
.metricas,.filtros,.campos{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,11rem),1fr));gap:.65rem}
.metricas,.filtros{margin-bottom:1rem}
.metricas strong{display:block;font-size:1.5rem}
article{margin-bottom:.6rem}
.linha-acoes{display:flex;gap:.55rem;flex-wrap:wrap}
.meta{color:#3d554a}
dialog{border:1px solid #bbcfc1;border-radius:1rem;width:min(100% - 1rem,42rem);max-height:calc(100dvh - 2rem);padding:1.1rem}
dialog::backdrop{background:#102b22aa}
fieldset{margin:0 0 .8rem;border:1px solid #a5baad;border-radius:.45rem}
#itens label{display:flex;align-items:flex-start;gap:.5rem}
#itens input{width:auto}
#mensagem,#erro-form{padding:.7rem;border-radius:.45rem;background:#e4eee7}
#erro-form,#mensagem[data-erro=true]{color:#8d2424;background:#fceaea}
 #compras{margin-top:2.5rem} #erro-compra{padding:.7rem;color:#8d2424;background:#fceaea;border-radius:.45rem}
#admin-cadastros{margin-top:1rem} #erro-cadastro{padding:.7rem;color:#8d2424;background:#fceaea;border-radius:.45rem}
#ativacao{max-width:28rem;margin:1rem auto} #ativacao form{margin-bottom:.8rem}
