:root {
  --navy: #0a2e5c;
  --azul: #1565c0;
  --azul-claro: #e8f1fb;
  --vermelho: #c62828;
  --verde: #2e7d32;
  --ambar: #b26a00;
  --texto: #1f2937;
  --texto-fraco: #5b6774;
  --borda: #dfe4ea;
  --fundo: #f4f6f9;
  --branco: #fff;
  --raio: 6px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--texto);
  background: var(--fundo);
}

a { color: var(--azul); }

.topo {
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.topo .marca {
  display: flex; align-items: center; gap: 11px; margin-right: 8px;
  color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .3px;
}
/* A marca SICI ja e clara com contorno vermelho: dispensa fundo
   sobre o cabecalho escuro. */
.topo .marca-logo { display: block; height: 26px; width: auto; }
.topo .marca-nome { font-size: 17px; }

.login-marca { text-align: center; margin-bottom: 22px; }
.login-marca img { width: 260px; max-width: 100%; height: auto; margin-bottom: 10px; }
.login-marca h1 { margin-bottom: 2px; }
.login-marca .sub { margin-bottom: 0; }
.topo nav { display: flex; gap: 16px; flex: 1; flex-wrap: wrap; }
/* Navegadores antigos ignoram 'gap' em flex e colam os itens.
   A margem abaixo garante o espacamento neles; nos modernos ela
   soma ao gap de forma imperceptivel. */
.topo nav a { margin-right: 4px; }
.topo nav a { color: #cfe0f5; text-decoration: none; }
.topo nav a:hover, .topo nav a.ativo { color: #fff; text-decoration: underline; }
.topo .quem { font-size: 13px; color: #cfe0f5; }

.container { max-width: 980px; margin: 0 auto; padding: 24px 20px 60px; }
.container-estreito { max-width: 460px; }

h1 { font-size: 22px; margin: 0 0 4px; color: var(--navy); }
h2 { font-size: 17px; margin: 28px 0 10px; color: var(--navy); }
.sub { color: var(--texto-fraco); font-size: 14px; margin: 0 0 20px; }

.cartao {
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  padding: 20px;
  margin-bottom: 18px;
}

label { display: block; font-weight: 600; font-size: 13px; margin: 14px 0 5px; }
label:first-child { margin-top: 0; }
input[type=text], input[type=password], input[type=email], input[type=date],
input[type=time], select, textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  font: inherit;
  background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--azul);
  outline-offset: 0;
  border-color: var(--azul);
}
textarea { min-height: 90px; resize: vertical; }
.ajuda { font-size: 12px; color: var(--texto-fraco); margin-top: 4px; }
.linha { display: flex; gap: 14px; flex-wrap: wrap; }
.linha > * { flex: 1 1 200px; }

.btn {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: var(--raio);
  background: var(--azul);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: #0f4d99; }
.btn-neutro { background: #fff; color: var(--navy); border-color: var(--borda); }
.btn-neutro:hover { background: #eef2f7; }
.btn-perigo { background: var(--vermelho); }
.btn-perigo:hover { background: #a52020; }
.btn-ok { background: var(--verde); }
.btn-ok:hover { background: #256428; }
.acoes { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

.alerta { padding: 11px 14px; border-radius: var(--raio); margin-bottom: 16px; border: 1px solid; font-size: 14px; }
.alerta-ok { background: #eaf5eb; border-color: #bcdcbe; color: #1d5720; }
.alerta-erro { background: #fdecec; border-color: #f0c2c2; color: #8e1f1f; }
.alerta-aviso { background: #fdf3e2; border-color: #eed8ac; color: #7a4a04; }
.alerta-info { background: var(--azul-claro); border-color: #bcd6f2; color: #0d4b91; }

table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--borda); font-size: 14px; vertical-align: top; }
th { background: #eef2f7; color: var(--navy); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
tbody tr:hover { background: #fafbfd; }

.tag {
  display: inline-block; padding: 2px 9px; border-radius: 20px;
  font-size: 12px; font-weight: 600; border: 1px solid;
}
.tag-espera { background: var(--azul-claro); border-color: #bcd6f2; color: #0d4b91; }
.tag-ok { background: #eaf5eb; border-color: #bcdcbe; color: #1d5720; }
.tag-nao { background: #fdecec; border-color: #f0c2c2; color: #8e1f1f; }
.tag-alerta { background: #fdf3e2; border-color: #eed8ac; color: #7a4a04; }

.campos { display: grid; grid-template-columns: 190px 1fr; gap: 2px 16px; font-size: 14px; }
.campos dt { color: var(--texto-fraco); padding: 6px 0; }
.campos dd { margin: 0; padding: 6px 0; }

.trilha { list-style: none; margin: 0; padding: 0; }
.trilha li { border-left: 3px solid var(--azul); padding: 0 0 18px 16px; margin-left: 6px; position: relative; }
.trilha li:last-child { padding-bottom: 0; }
.trilha .cabeca { font-weight: 600; }
.trilha .meta { font-size: 13px; color: var(--texto-fraco); }
.trilha .obs { margin: 6px 0 0; background: #f7f9fb; border: 1px solid var(--borda); border-radius: var(--raio); padding: 8px 10px; font-size: 14px; }

.carimbo {
  margin-top: 8px; padding: 8px 10px; border: 1px dashed #b9c4d1;
  border-radius: var(--raio); background: #fbfcfe;
  font-size: 12px; color: var(--texto-fraco);
}
.carimbo code { font-family: "SF Mono", Consolas, monospace; font-size: 13px; color: var(--navy); font-weight: 700; letter-spacing: .5px; }

.vazio { padding: 40px 20px; text-align: center; color: var(--texto-fraco); background: #fff; border: 1px dashed var(--borda); border-radius: var(--raio); }

@media (max-width: 620px) {
  .topo { gap: 12px; }
  .topo .marca-logo { height: 22px; }
  .login-marca img { width: 215px; }
  .campos { grid-template-columns: 1fr; }
  .campos dt { padding-bottom: 0; font-size: 12px; }
  table, thead, tbody, th, td, tr { display: block; }
  thead { display: none; }
  tbody tr { border: 1px solid var(--borda); border-radius: var(--raio); margin-bottom: 10px; }
  td { border: none; }
}

/* ---------------------------------------------- anexo de imagens */
.dropzona {
  border: 2px dashed #b9c4d1;
  border-radius: var(--raio);
  background: #fbfcfe;
  padding: 20px;
  text-align: center;
  transition: background .15s, border-color .15s;
}
.dropzona.sobre { border-color: var(--azul); background: var(--azul-claro); }
.dropzona p { margin: 0 0 6px; }

.previa { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.previa .item {
  position: relative; width: 110px; border: 1px solid var(--borda);
  border-radius: var(--raio); overflow: hidden; background: #fff;
}
.previa .item img { display: block; width: 100%; height: 80px; object-fit: cover; }
.previa .item .nome {
  font-size: 11px; padding: 4px 5px; color: var(--texto-fraco);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.previa .item .tirar {
  position: absolute; top: 3px; right: 3px; width: 22px; height: 22px;
  border: none; border-radius: 50%; background: rgba(198,40,40,.92);
  color: #fff; font-size: 14px; line-height: 1; cursor: pointer; padding: 0;
}
.previa .item .tirar:hover { background: var(--vermelho); }
.previa .erro { border-color: var(--vermelho); }
.previa .erro .nome { color: var(--vermelho); }

.galeria { display: flex; flex-wrap: wrap; gap: 14px; }
.galeria figure { margin: 0; width: 170px; }
.galeria img {
  display: block; width: 170px; height: 120px; object-fit: cover;
  border: 1px solid var(--borda); border-radius: var(--raio); background: #eef2f7;
}
.galeria figcaption { font-size: 12px; margin-top: 5px; word-break: break-word; }
.galeria .expurgada {
  width: 170px; height: 120px; display: flex; align-items: center; justify-content: center;
  text-align: center; font-size: 12px; color: var(--texto-fraco);
  border: 1px dashed var(--borda); border-radius: var(--raio); background: #f7f9fb;
}
