/* Tema Arctic — minimalista, áreas de toque grandes */
:root { --az: #2B7FE0; --az-esc: #1d63b8; --az-cl: #e8f1fc; --bg: #f4f7fb; --card: #fff; --tx: #1c2733; --su: #667788; --li: #d5dde6; --ok: #1e8e5a; --er: #c0392b; --at: #b7791f; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--tx); font: 16px/1.4 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
h1 { font-size: 22px; margin: 8px 0 2px; } h2 { font-size: 19px; margin: 14px 0 10px; } h3 { font-size: 16px; margin: 16px 0 8px; }
.oculto { display: none !important; }
.suave { color: var(--su); font-size: 14px; } .peq { font-size: 13px; }
.erro { color: var(--er); font-weight: 600; margin: 8px 0; min-height: 0; }

/* estrutura */
.topo { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: var(--az); color: #fff; padding-top: max(10px, env(safe-area-inset-top)); }
.marca b { font-size: 18px; letter-spacing: .5px; margin-right: 8px; } .marca span { font-size: 13px; opacity: .9; }
.topo-dir { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.pt { width: 10px; height: 10px; border-radius: 50%; background: #9aa; } .pt.on { background: #7CF0B0; } .pt.off { background: #ffb4a8; }
.link { background: none; border: 0; color: var(--az); font-size: 15px; font-weight: 600; padding: 8px 2px; cursor: pointer; }
.topo .link { color: #fff; }
.conteudo { max-width: 640px; margin: 0 auto; padding: 8px 14px 96px; }
.conteudo.wizard { padding-top: max(12px, env(safe-area-inset-top)); }
.rodape { position: fixed; bottom: 0; left: 0; right: 0; display: flex; background: #fff; border-top: 1px solid var(--li); padding-bottom: env(safe-area-inset-bottom); z-index: 5; }
.nav { flex: 1; min-height: 56px; border: 0; background: none; font-size: 15px; font-weight: 600; color: var(--su); }
.nav.ativo { color: var(--az); box-shadow: inset 0 3px 0 var(--az); }
.faixa { background: #fff3cd; color: #7a5b00; text-align: center; padding: 8px 12px; font-size: 14px; } .faixa.azul { background: var(--az-cl); color: var(--az-esc); }
.aviso { position: fixed; left: 12px; right: 12px; top: 64px; z-index: 20; background: #1c2733; color: #fff; padding: 12px 14px; border-radius: 12px; box-shadow: 0 6px 24px rgba(0,0,0,.25); font-size: 15px; }

/* cartões e listas */
.card { background: var(--card); border: 1px solid var(--li); border-radius: 14px; padding: 14px; margin: 10px 0; display: flex; flex-direction: column; gap: 10px; }
.card.ok { border-color: #9fd9bd; background: #f1fbf6; } .card.aten { border-color: #f1d08a; background: #fffaf0; }
.lista { display: flex; flex-direction: column; gap: 8px; }
.item { background: #fff; border: 1px solid var(--li); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.item.clic { cursor: pointer; } .item.clic:active { background: var(--az-cl); }
.item-topo { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.linha { display: flex; gap: 10px; flex-wrap: wrap; } .linha > .btn { flex: 1; }
.dois { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 13px; font-weight: 600; background: var(--az-cl); color: var(--az-esc); border: 0; }
.chip.ok { background: #e6f5ee; color: var(--ok); } .chip.av { background: #fbeae8; color: var(--er); } .chip.aten { background: #fff1d6; color: var(--at); }
.btnchip { cursor: pointer; min-height: 36px; padding: 6px 14px; }

/* formulários */
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--su); }
label.check { flex-direction: row; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; color: var(--tx); }
label.check input { width: 24px; height: 24px; }
input, select, textarea { width: 100%; font: inherit; color: var(--tx); background: #fff; border: 1.5px solid var(--li); border-radius: 12px; padding: 14px; min-height: 52px; }
textarea { min-height: 70px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--az); box-shadow: 0 0 0 3px var(--az-cl); }
.lista-sel { min-height: 190px; padding: 6px; } .lista-sel option { padding: 10px 8px; border-radius: 8px; }
.marcado { font-weight: 700; color: var(--az-esc); background: var(--az-cl); border-radius: 10px; padding: 10px 12px; }

/* botões */
.btn { min-height: 56px; padding: 0 22px; border: 0; border-radius: 14px; background: var(--az); color: #fff; font-size: 17px; font-weight: 700; cursor: pointer; }
.btn:active { background: var(--az-esc); } .btn:disabled { opacity: .45; }
.btn.sec { background: var(--az-cl); color: var(--az-esc); } .btn.perigo { background: #fbeae8; color: var(--er); }
.btn.grande { width: 100%; min-height: 66px; font-size: 19px; margin: 6px 0; } .btn.peq { min-height: 44px; font-size: 15px; padding: 0 14px; }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { width: 100%; max-width: 380px; background: #fff; border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--li); }
.logo { width: 64px; height: 64px; border-radius: 18px; background: var(--az); color: #fff; font-size: 34px; font-weight: 800; display: grid; place-items: center; }

/* etapas */
.stepper { margin: 4px 0 8px; }
.stepper .barra { height: 5px; background: var(--li); border-radius: 9px; overflow: hidden; margin: 0 16px; transform: translateY(14px); }
.stepper .barra i { display: block; height: 100%; background: var(--az); transition: width .25s; }
.stepper ol { list-style: none; display: flex; justify-content: space-between; margin: 0; padding: 0; position: relative; }
.stepper li { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 20%; text-align: center; }
.stepper li span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--li); font-weight: 700; font-size: 14px; color: var(--su); z-index: 1; }
.stepper li small { font-size: 11px; color: var(--su); line-height: 1.1; }
.stepper li.atual span { background: var(--az); border-color: var(--az); color: #fff; } .stepper li.atual small { color: var(--az-esc); font-weight: 700; }
.stepper li.feito span { background: var(--az-cl); border-color: var(--az); color: var(--az-esc); }
.nav-passos { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin: 14px 0; position: sticky; bottom: 8px; }

/* fotos */
.fotos { display: flex; flex-direction: column; gap: 10px; }
.fotos-grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.foto { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #e9eef4; border: 1px solid var(--li); }
.foto img { width: 100%; height: 100%; object-fit: cover; display: block; } .foto small { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 10px; padding: 2px 4px; }
.foto-x { position: absolute; top: 4px; right: 4px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 22px; line-height: 1; }
.fotos-grade.mini { grid-template-columns: repeat(5, 1fr); margin: 6px 0; }
.fotos-barra { display: flex; gap: 10px; align-items: center; } .fotos-barra .btn { flex: 1; font-size: 16px; padding: 0 8px; }
.cont { font-weight: 700; color: var(--su); min-width: 44px; text-align: right; } .cont.ok { color: var(--ok); }
.tipos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tipo { min-height: 60px; border: 2px solid var(--li); background: #fff; border-radius: 14px; font-size: 17px; font-weight: 700; color: var(--tx); }
.tipo.sel { background: #fbeae8; border-color: var(--er); color: var(--er); }
.card.av { border-left: 5px solid var(--er); }

/* local e assinatura */
.mapa { width: 100%; height: 210px; border: 0; border-radius: 12px; background: #e9eef4; } .mapa.vazio { display: grid; place-items: center; color: var(--su); text-align: center; padding: 10px; }
.pad-wrap { border: 2px dashed var(--li); border-radius: 12px; background: #fff; touch-action: none; }
.pad { display: block; width: 100%; touch-action: none; }
.assin { width: 100%; max-height: 140px; object-fit: contain; border: 1px solid var(--li); border-radius: 10px; background: #fff; }
.res-l { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid #eef2f6; } .res-l span { color: var(--su); font-size: 14px; } .res-l b { text-align: right; }

/* admin */
.abas { display: flex; gap: 6px; margin-bottom: 8px; } .aba { flex: 1; min-height: 46px; border: 1.5px solid var(--li); background: #fff; border-radius: 12px; font-weight: 700; color: var(--su); } .aba.ativa { background: var(--az); color: #fff; border-color: var(--az); }
