/*
 * Arquivo: app/static/app.css
 * Visual da plataforma (todas as telas menos o telão).
 *
 * CORES: a cor principal é o VERDE. Para mudar o tom, altere as variáveis
 * --g1 (verde claro), --g2 (verde principal), --g3 e --g4 (verdes escuros)
 * no bloco :root logo abaixo. Elas são usadas no site inteiro.
 */
@font-face {
  font-family: "Inter";
  src: url(/static/fonts/Inter-var.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  /* Verdes da marca (cor principal) */
  --g1: #7cc242;
  --g2: #3fa535;
  --g3: #1e7a3c;
  --g4: #145c2c;
  --gbg: #eef7ec;
  /* Azuis, textos, linhas e fundos */
  --blue: #0a8fd1;
  --blue2: #0b5ea8;
  --navy: #0f2240;
  --text: #1b2a3a;
  --muted: #5f6f7f;
  --line: #e3e9ef;
  --bg: #f4f7f5;
  --card: #fff;
  --r: 12px;
  --sh: 0 1px 2px rgba(15, 34, 64, 0.06), 0 4px 14px rgba(15, 34, 64, 0.07);
  --sh2: 0 10px 30px rgba(15, 34, 64, 0.18);
  --hh: 62px;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
.hidden {
  display: none !important;
}
h2 {
  font-size: 18px;
  color: var(--navy);
  margin: 22px 0 12px;
  font-weight: 700;
}
h2:first-child {
  margin-top: 4px;
}
h3 {
  color: var(--navy);
  margin: 16px 0 10px;
}
a {
  color: var(--g3);
}
code {
  background: #f0f3f6;
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 12px;
}
input,
select {
  font: inherit;
  padding: 9px 12px;
  border: 1px solid #cfd8e1;
  border-radius: 9px;
  background: #fff;
  color: var(--text);
  transition:
    border 0.15s,
    box-shadow 0.15s;
  min-height: 38px;
}
input:focus,
select:focus {
  outline: 0;
  border-color: var(--g2);
  box-shadow: 0 0 0 3px rgba(63, 165, 53, 0.18);
}
input[type="checkbox"] {
  min-height: 0;
  accent-color: var(--g3);
  width: 16px;
  height: 16px;
  vertical-align: -3px;
}
button {
  font: inherit;
  font-weight: 600;
  padding: 9px 16px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(180deg, var(--g2), var(--g3));
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(20, 92, 44, 0.25);
  transition:
    filter 0.15s,
    transform 0.05s;
  min-height: 38px;
}
button:hover {
  filter: brightness(1.07);
}
button:active {
  transform: translateY(1px);
}
button.btn-sec,
.btn-sec {
  background: #fff;
  color: var(--navy);
  border: 1px solid #cfd8e1;
  box-shadow: none;
}
button.btn-sec:hover {
  background: #f3f6f8;
  filter: none;
}
button.sm {
  padding: 4px 10px;
  font-size: 12px;
  min-height: 0;
}
.err {
  color: #c0392b;
  min-height: 18px;
  margin: 4px 0 0;
}
.hint {
  color: var(--muted);
  font-size: 13px;
}
.ok {
  color: var(--g3);
  font-weight: 700;
}
.bad {
  color: #c0392b;
  font-weight: 700;
}
/* login */
#login {
  display: flex;
  min-height: 100vh;
}
.login-art {
  flex: 1.1;
  background:
    radial-gradient(
      1200px 600px at 10% 10%,
      rgba(124, 194, 66, 0.35),
      transparent 60%
    ),
    linear-gradient(140deg, var(--g4) 0%, var(--g3) 45%, var(--blue2) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 48px;
}
.login-art-in {
  max-width: 460px;
}
.login-art h2 {
  color: #fff;
  font-size: 30px;
  line-height: 1.25;
  margin: 0 0 20px;
}
.login-art ul {
  padding: 0;
  list-style: none;
  margin: 0;
}
.login-art li {
  padding: 8px 0 8px 30px;
  position: relative;
  font-size: 15px;
  opacity: 0.95;
}
.login-art li:before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 7px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  text-align: center;
  line-height: 20px;
  font-size: 12px;
}
.login-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 32px;
}
#lf {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.login-logo {
  width: 300px;
  max-width: 100%;
  margin: 0 auto 22px;
  display: block;
}
#lf h1 {
  font-size: 22px;
  margin: 0;
  color: var(--navy);
}
#lf .sub {
  margin: 0 0 14px;
  color: var(--muted);
}
#lf label {
  font-weight: 600;
  font-size: 13px;
  margin-top: 8px;
  color: var(--navy);
}
.btn-lg {
  margin-top: 16px;
  padding: 12px;
  font-size: 15px;
}
#lf .foot {
  margin-top: 26px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
@media (max-width: 900px) {
  .login-art {
    display: none;
  }
}
/* header */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--hh);
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 18px;
  box-shadow: 0 1px 8px rgba(15, 34, 64, 0.05);
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  cursor: pointer;
  flex: none;
}
.brand img {
  width: 38px;
  height: 38px;
}
.brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand b {
  font-size: 19px;
  color: var(--navy);
  letter-spacing: -0.3px;
}
.brand em {
  font-style: normal;
  color: var(--blue);
}
.brand small {
  font-size: 10px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--g3);
  font-weight: 700;
}
nav {
  display: flex;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  scroll-behavior: smooth;
  -webkit-mask-image: linear-gradient(
    90deg,
    #000 calc(100% - 24px),
    transparent
  );
  mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
  padding-right: 20px;
}
nav a {
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  font-size: 13.5px;
  position: relative;
}
nav a:hover {
  background: var(--gbg);
  color: var(--g4);
}
nav a.on {
  background: var(--gbg);
  color: var(--g3);
}
nav a.on:after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 1px;
  height: 3px;
  border-radius: 3px;
  background: var(--g2);
}
/* Menu em grupos (listas suspensas). Lógica em app.js ("Menu em grupos"). */
nav {
  align-items: center;
}
.ngrp {
  flex: none;
}
.ngbtn {
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: none;
  cursor: pointer;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  font-size: 13.5px;
  white-space: nowrap;
  position: relative;
  box-shadow: none;
  min-height: 0;
  filter: none;
  transform: none;
}
.ngbtn:after {
  content: "▾";
  margin-left: 5px;
  font-size: 11px;
}
.ngbtn:hover,
.ngrp.aberto .ngbtn {
  background: var(--gbg);
  color: var(--g4);
}
.ngbtn.on {
  background: var(--gbg);
  color: var(--g3);
  box-shadow: inset 0 -3px 0 var(--g2);
}
.ngbtn:focus-visible,
.ngmenu a:focus-visible {
  outline: 2px solid var(--g2);
  outline-offset: 1px;
}
.ngmenu {
  display: none;
  position: fixed;
  z-index: 3100; /* acima dos avisos (#toasts, 3000); a lista fecha ao clicar fora */
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(15, 34, 64, 0.16);
  padding: 6px;
  flex-direction: column;
}
.ngmenu.aberto {
  display: flex;
}
.ngmenu a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  font-size: 13.5px;
  position: relative;
}
.ngmenu a:hover {
  background: var(--gbg);
  color: var(--g4);
}
.ngmenu a.on {
  background: var(--gbg);
  color: var(--g3);
}
.ngmenu a.on:after {
  content: "";
  position: absolute;
  border-radius: 3px;
  background: var(--g2);
}
.ngmenu a {
  padding: 9px 12px;
}
.ngmenu a.on:after {
  left: 0;
  right: auto;
  top: 8px;
  bottom: 8px;
  width: 3px;
  height: auto;
}
@media (max-width: 1280px) {
  .ngbtn {
    padding: 8px 9px;
    font-size: 13px;
  }
}
@media (max-width: 760px) {
  .ngmenu a {
    padding: 12px 14px; /* alvo de toque maior no celular */
  }
}
.userbox {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
#who {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.wn {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.badge {
  background: var(--gbg);
  color: var(--g4);
  border: 1px solid #cfe6c9;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 11.5px;
  font-weight: 700;
}
@media (max-width: 1280px) {
  .wn {
    display: none;
  }
  nav a {
    padding: 8px 9px;
    font-size: 13px;
  }
  .brand small {
    display: none;
  }
}
/* views */
.view {
  padding: 22px 28px;
  max-width: 1500px;
  margin: 0 auto;
}
.card {
  background: var(--card);
  border-radius: var(--r);
  box-shadow: var(--sh);
  border: 1px solid var(--line);
}
.card.tbl {
  overflow: auto;
  margin-bottom: 22px;
}
form.card {
  padding: 14px;
}
table {
  border-collapse: collapse;
  width: 100%;
}
td,
th {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 13.5px;
  vertical-align: top;
}
th {
  background: #f7faf8;
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  position: sticky;
  top: 0;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover td,
tr:hover td {
  background: #fafcfb;
}
.row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  align-items: center;
}
#rf input,
#rf select {
  min-width: 150px;
}
#rf #rn {
  min-width: 220px;
}
#rf .w-uf {
  width: 120px;
  min-width: 120px;
}
#rf #rt {
  width: 110px;
  min-width: 110px;
}
#rf #ro {
  min-width: 170px;
}
/* maps */
#v-mapa,
#v-risco {
  position: relative;
  height: calc(100vh - var(--hh));
  padding: 0;
  max-width: none;
}
#map,
#rmap {
  height: 100%;
}
#filtros,
#rfil {
  position: absolute;
  z-index: 500;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.97);
  padding: 10px 12px;
  border-radius: var(--r);
  display: flex;
  gap: 10px;
  align-items: center;
  box-shadow: var(--sh);
  flex-wrap: wrap;
  max-width: calc(100% - 470px);
  border: 1px solid var(--line);
}
#filtros label,
#rfil label {
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
}
#cnt,
#rcnt {
  color: var(--muted);
  font-size: 12.5px;
}
#det,
#rdet {
  position: absolute;
  z-index: 600;
  right: 14px;
  top: 14px;
  bottom: 14px;
  width: 430px;
  max-width: calc(100% - 28px);
  background: #fff;
  border-radius: var(--r);
  padding: 18px;
  overflow: auto;
  box-shadow: var(--sh2);
  border: 1px solid var(--line);
}
#rdet {
  bottom: auto;
  max-height: calc(100% - 260px);
}
#det h3,
#rdet h3 {
  margin: 0 30px 8px 0;
}
#det select {
  margin: 6px 6px 8px 0;
}
.x {
  position: absolute;
  right: 12px;
  top: 12px;
  background: #f1f4f7 !important;
  color: var(--muted) !important;
  box-shadow: none !important;
  padding: 4px 9px !important;
  min-height: 0 !important;
  border-radius: 8px !important;
}
.kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  font-size: 13.5px;
  margin: 12px 0;
}
.kv > div:nth-child(odd) {
  color: var(--muted);
}
#rleg {
  position: absolute;
  z-index: 500;
  bottom: 22px;
  right: 14px;
  background: #fff;
  padding: 12px 14px;
  border-radius: var(--r);
  box-shadow: var(--sh);
  font-size: 13px;
  line-height: 1.75;
  max-width: 240px;
  border: 1px solid var(--line);
}
#rleg b {
  color: var(--navy);
}
#rleg i {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  margin-right: 8px;
  vertical-align: -2px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}
#rleg small {
  color: var(--muted);
  display: block;
  line-height: 1.4;
  margin-top: 4px;
}
.nivel {
  color: #fff;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  display: inline-block;
  font-size: 12.5px;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}
.leaflet-container {
  font-family: inherit;
}
.leaflet-bar a {
  color: var(--navy);
}
.lv-Alto,
.lv-Muito {
  color: #d7263d;
  font-weight: 700;
}
.lv-Moderado {
  color: #c96a00;
  font-weight: 700;
}
.sus {
  background: #fdeef4;
  border: 1px solid #e58fb1;
  color: #7b1f4e;
  padding: 8px 12px;
  border-radius: 9px;
  margin: 8px 0;
  font-size: 13px;
}
/* modal + toasts */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 34, 64, 0.45);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}
.modal .box {
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  min-width: 380px;
  box-shadow: var(--sh2);
}
.modal input {
  width: 96px;
}
.modal label {
  font-weight: 600;
  color: var(--navy);
  display: block;
  margin-top: 10px;
}
#toasts {
  position: fixed;
  z-index: 3000;
  top: calc(var(--hh) + 12px);
  right: 16px;
  width: 400px;
  max-width: calc(100vw - 32px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  position: relative;
  background: #fff;
  border-left: 5px solid var(--g2);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: var(--sh2);
  font-size: 13px;
  max-height: 300px;
  overflow: auto;
  animation: tin 0.25s ease-out;
}
@keyframes tin {
  from {
    transform: translateX(30px);
    opacity: 0;
  }
}
.toast h4 {
  margin: 0 0 6px;
  padding-right: 28px;
  color: var(--navy);
}
.toast ul {
  margin: 0 0 6px;
  padding-left: 18px;
}
.t-risk {
  border-left-color: #d7263d;
}
.t-ev {
  border-left-color: var(--blue);
}
/* previsão */
.fcsearch {
  position: relative;
  max-width: 520px;
  margin-bottom: 18px;
}
.fcsearch input {
  width: 100%;
  font-size: 15px;
  padding: 12px 14px 12px 40px;
  border-radius: 12px;
  box-shadow: var(--sh);
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%235f6f7f' stroke-width='2'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m13 13 4 4'/%3E%3C/svg%3E")
    13px center no-repeat;
}
#fcsug {
  position: absolute;
  z-index: 900;
  background: #fff;
  width: 100%;
  box-shadow: var(--sh2);
  border-radius: 10px;
  max-height: 320px;
  overflow: auto;
  margin-top: 4px;
}
#fcsug div {
  padding: 9px 14px;
  cursor: pointer;
}
#fcsug div:hover {
  background: var(--gbg);
}
.cur {
  background:
    radial-gradient(
      700px 300px at 0% 0%,
      rgba(124, 194, 66, 0.35),
      transparent 60%
    ),
    linear-gradient(135deg, var(--g3), var(--blue2));
  color: #fff;
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: var(--sh);
}
.cur h2 {
  margin: 0;
  color: #fff;
}
.cur small {
  opacity: 0.85;
}
.curmain {
  display: flex;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
  line-height: 1.6;
}
.curmain .ic {
  font-size: 56px;
}
.tnow {
  font-size: 50px;
  font-weight: 800;
  letter-spacing: -1px;
}
.days {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.day {
  background: #fff;
  border-radius: var(--r);
  padding: 12px;
  min-width: 145px;
  flex: 1;
  text-align: center;
  box-shadow: var(--sh);
  border: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.65;
}
.day b {
  color: var(--navy);
  text-transform: capitalize;
}
.day .ic {
  font-size: 32px;
}
.tmax {
  color: #d7263d;
  font-weight: 700;
  font-size: 16px;
}
.tmin {
  color: var(--blue2);
  font-weight: 700;
  font-size: 16px;
}
.charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 14px;
}
.charts > div {
  background: #fff;
  border-radius: var(--r);
  padding: 12px;
  box-shadow: var(--sh);
  border: 1px solid var(--line);
}
@media (max-width: 1100px) {
  #filtros,
  #rfil {
    max-width: calc(100% - 28px);
  }
  #det,
  #rdet {
    width: 380px;
  }
  .view {
    padding: 16px;
  }
}
@media (max-width: 760px) {
  .brand span {
    display: none;
  }
  #who {
    display: none;
  }
  header {
    gap: 10px;
    padding: 0 10px;
  }
}
.modal .box input:not([type="checkbox"]):not([type="radio"]),
.modal .box select {
  width: 100%;
}
.modal .box.wide {
  min-width: 560px;
  max-height: 90vh;
  overflow: auto;
}
.modal .row {
  margin-top: 16px;
}
.modal label.ck {
  font-weight: 500;
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
}
#pperm td {
  padding: 6px 10px;
  font-size: 13px;
}
#pperm label {
  font-weight: 500;
  display: inline;
  margin: 0;
  color: var(--text);
}
.acts {
  white-space: nowrap;
}
.acts button {
  margin-right: 4px;
}
button.danger {
  background: #fff;
  color: #c0392b;
  border: 1px solid #f1b5ae;
  box-shadow: none;
}
button.danger:hover {
  background: #fdecea;
  filter: none;
}
.chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  margin: 2px 2px 2px 0;
  background: var(--gbg);
  color: var(--g4);
  border: 1px solid #cfe6c9;
}
.chip.ver {
  background: #eef4fb;
  color: #0b5ea8;
  border-color: #c9dcf1;
}
#conta {
  margin-left: 4px;
}

.hsel {
  padding: 14px;
  margin-bottom: 14px;
}
.hsel .row {
  margin-bottom: 8px;
}
.hs {
  margin: 0;
  min-width: 300px;
  flex: 1;
  max-width: 420px;
}
.hs input {
  padding-left: 36px;
}
.quick {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.ck2 {
  display: flex;
  gap: 8px;
  align-items: center;
}
#hsug {
  position: absolute;
  z-index: 900;
  background: #fff;
  width: 100%;
  box-shadow: var(--sh2);
  border-radius: 10px;
  max-height: 320px;
  overflow: auto;
  margin-top: 4px;
}
#hsug div {
  padding: 9px 14px;
  cursor: pointer;
}
#hsug div:hover {
  background: var(--gbg);
}
.hchart {
  padding: 14px;
  margin-bottom: 14px;
}
#hleg {
  margin-top: 6px;
  font-size: 12px;
}
.hcal {
  padding: 14px;
}
.calnav {
  gap: 10px;
}
.mgrid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.mgrid.big {
  gap: 5px;
}
.mgrid.big b {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.mgrid .cd {
  border-radius: 6px;
  min-height: 12px;
  cursor: pointer;
  border: 1px solid #e8eee9;
  position: relative;
}
.mgrid.big .cd {
  min-height: 64px;
  padding: 5px 7px;
}
.mgrid .cd.nd {
  background: repeating-linear-gradient(
    45deg,
    #fff,
    #fff 4px,
    #f5f6f7 4px,
    #f5f6f7 8px
  ) !important;
}
.mgrid.big .cd em {
  font-style: normal;
  font-size: 11px;
  opacity: 0.75;
}
.mgrid.big .cd strong {
  display: block;
  font-size: 16px;
  margin-top: 6px;
}
.mgrid .cd:hover {
  outline: 2px solid var(--g2);
}
.mk {
  font-size: 10px;
  background: #9db7cf;
  color: #fff;
  border-radius: 4px;
  padding: 0 4px;
  position: absolute;
  right: 4px;
  top: 4px;
}
.calleg .mk {
  position: static;
}
.ygrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.ym b {
  cursor: pointer;
  color: var(--g3);
}
.ym .mgrid {
  margin-top: 6px;
}
.ym .cd {
  min-height: 20px;
}
.calleg {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}
.calleg i {
  display: inline-block;
  width: 16px;
  height: 12px;
  border-radius: 3px;
  margin: 0 2px 0 8px;
  vertical-align: -1px;
  border: 1px solid #e3e9ef;
}
.bfgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}
.bf {
  padding: 14px 16px;
}
.bf h4 {
  margin: 0 0 8px;
  color: var(--navy);
}
.bf p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
}
.pbar {
  height: 10px;
  background: #edf1ee;
  border-radius: 99px;
  overflow: hidden;
}
.pbar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--g1), var(--g3));
}

.fmsg {
  font-size: 13px;
  margin-left: 8px;
}
.fmsg.ok {
  color: #1e7a3c;
  font-weight: 600;
}
.fmsg.err {
  color: #c62828;
  font-weight: 600;
}

/* Agro */
.aggrid {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.agside {
  padding: 14px;
  max-height: 480px;
  overflow: auto;
}
.agmapc {
  padding: 0;
  overflow: hidden;
}
#agmap {
  height: 480px;
}
.agf {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: 8px;
  cursor: pointer;
}
.agf:hover {
  background: var(--gbg);
}
.agf.on {
  border-color: var(--g2);
  background: var(--gbg);
}
.agf small {
  color: var(--muted);
}
.drawbox {
  background: #fff8e1;
  border: 1px solid #f0c75e;
  border-radius: 10px;
  padding: 10px;
  margin-top: 10px;
}
.agcards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.agc {
  background: #fff;
  border-radius: var(--r);
  box-shadow: var(--sh);
  padding: 10px 12px;
}
.agc .l {
  font-size: 12px;
  color: var(--muted);
}
.agc .v {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
}
.agc .s {
  font-size: 12px;
}
.sem1 {
  color: #1e7a3c;
}
.sem2 {
  color: #c96a00;
}
.sem3 {
  color: #c62828;
}
.bg1 {
  background: #3fa535;
}
.bg2 {
  background: #f2c200;
}
.bg3 {
  background: #d7263d;
}
.bg0 {
  background: #ccd;
}
.strip {
  display: flex;
  gap: 1px;
  margin: 6px 0 2px;
}
.strip i {
  flex: 1;
  height: 26px;
  border-radius: 2px;
  cursor: help;
}
.striplab {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}
.agsec {
  background: #fff;
  border-radius: var(--r);
  box-shadow: var(--sh);
  padding: 14px;
  margin-bottom: 14px;
}
.agsec h3 {
  margin-top: 0;
}
.tip {
  display: inline-block;
  width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: 50%;
  background: #e3eef8;
  color: var(--blue2);
  font-size: 11px;
  cursor: help;
  font-weight: 700;
  vertical-align: middle;
}
.g2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 16px;
}
.modal .box.xl {
  min-width: min(1000px, 95vw);
}
.cls-alto,
.cls-muito {
  color: #c62828;
  font-weight: 700;
}
.cls-médio,
.cls-moderado {
  color: #c96a00;
  font-weight: 700;
}
.cls-baixo,
.cls-nulo,
.cls-pequeno {
  color: #1e7a3c;
}
.lgthumb {
  max-width: 100%;
  max-height: 360px;
  border-radius: 8px;
  margin-top: 6px;
}
@media (max-width: 900px) {
  .aggrid {
    grid-template-columns: 1fr;
  }
  .g2 {
    grid-template-columns: 1fr;
  }
}

/* usuários: escopo */
.cpick {
  position: relative;
}
.sug {
  position: absolute;
  z-index: 2100;
  background: #fff;
  width: 100%;
  box-shadow: var(--sh2);
  border-radius: 10px;
  max-height: 240px;
  overflow: auto;
}
.sug div {
  padding: 8px 12px;
  cursor: pointer;
}
.sug div:hover {
  background: var(--gbg);
}
.chips {
  margin: 4px 0;
}
.chips .chip {
  font-size: 12.5px;
  padding: 3px 8px;
}
.chips .chip b {
  cursor: pointer;
  margin-left: 6px;
  color: #c62828;
}
.ulist {
  max-height: 150px;
  overflow: auto;
  border: 1px solid #dfe7df;
  border-radius: 10px;
  padding: 6px 10px;
  margin-top: 6px;
}
.ulist label {
  font-weight: 500 !important;
  display: flex !important;
  gap: 8px;
  margin: 4px 0 !important;
  color: var(--text) !important;
}
.scopebar {
  position: absolute;
  z-index: 800;
  left: 60px;
  bottom: 12px;
  background: #fffffff0;
  border-radius: 10px;
  padding: 6px 12px;
  box-shadow: var(--sh);
  font-size: 12.5px;
  max-width: 60%;
}
.nocity {
  color: #c62828;
  font-weight: 600;
}

/* Rodovias */
#rdmap {
  height: 480px;
}
.nv {
  display: inline-block;
  width: 14px;
  height: 6px;
  border-radius: 3px;
  vertical-align: middle;
}
.nv0 {
  background: #3fa535;
}
.nv1 {
  background: #f2c200;
}
.nv2 {
  background: #d7263d;
}
.nvx {
  background: #9aa5b1;
}
.rbadge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  color: #fff;
  font-weight: 600;
  font-size: 0.85em;
}
.rbadge.nv1 {
  color: #3a3000;
}
.rtab td {
  vertical-align: top;
}
.rtab details {
  margin-top: 4px;
}
.rtab details summary {
  cursor: pointer;
  color: var(--g2);
  font-size: 0.85em;
}
.rtab ul {
  margin: 4px 0 0 16px;
  padding: 0;
  font-size: 0.85em;
}
.rleg {
  margin-top: 10px;
}
.rleg .nv {
  margin-left: 6px;
}
.rdpdf {
  display: flex;
  gap: 8px;
  align-items: end;
  flex-wrap: wrap;
}

/* Mineração */
#mnmap {
  height: 520px;
}
.pb0 {
  background: #3fa535;
}
.pb1 {
  background: #f2c200;
  color: #3a3000 !important;
}
.pb2 {
  background: #f07d00;
}
.pb3 {
  background: #d7263d;
}
.nv.pb1 {
  color: inherit;
}
.mntools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 10px;
}
.mntools button {
  margin: 0;
}
.mncard {
  border: 1px solid #d5e5d0;
  border-radius: 10px;
  padding: 12px;
  margin: 10px 0;
  background: #fbfdfa;
}
.mncard h4 small {
  font-weight: 400;
}
.mnkpi {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 10px 0;
}
.mnkpi div {
  background: #f2f8f0;
  border-radius: 8px;
  padding: 8px;
  text-align: center;
}
.mnkpi b {
  display: block;
  font-size: 1.35em;
  color: var(--g2, #1e7a3c);
}
.mnkpi small {
  color: #555;
}
.mnlim {
  border-collapse: collapse;
  margin: 8px 0;
}
.mnlim td,
.mnlim th {
  padding: 3px 8px;
  border: 1px solid #e1ebde;
  font-size: 0.88em;
  text-align: center;
}
.mnlim input {
  width: 70px;
  text-align: center;
}
.mnnota {
  background: #fff8e1;
  border-left: 4px solid #f2c200;
  padding: 6px 10px;
}
.mnstrip {
  display: flex;
  gap: 1px;
  flex-wrap: nowrap;
  overflow: hidden;
  margin: 4px 0;
}
.mnstrip i {
  flex: 1;
  height: 14px;
  min-width: 2px;
  border-radius: 2px;
}
.mndet {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}
.mnsem {
  display: flex;
  gap: 12px;
  align-items: center;
}
.sem {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: #2b2b2b;
  padding: 5px;
  border-radius: 8px;
}
.sem i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #555;
}
.sem.s2 i:nth-child(1) {
  background: #d7263d;
  box-shadow: 0 0 8px #d7263d;
}
.sem.s1 i:nth-child(2) {
  background: #f2c200;
  box-shadow: 0 0 8px #f2c200;
}
.sem.s0 i:nth-child(3) {
  background: #3fa535;
  box-shadow: 0 0 8px #3fa535;
}
.mnwind {
  display: flex;
  gap: 10px;
  align-items: center;
}
.mnwind .arrow {
  font-size: 30px;
  color: #c96a00;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e3c9a8;
  border-radius: 50%;
}
.mn2 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-top: 10px;
}
@media (max-width: 800px) {
  .mn2 {
    grid-template-columns: 1fr;
  }
  .mnkpi {
    grid-template-columns: repeat(2, 1fr);
  }
}
.mnarrow div {
  font-size: 26px;
  color: #c96a00;
  text-shadow:
    0 0 3px #fff,
    0 0 3px #fff;
  line-height: 30px;
  text-align: center;
}
.mnico {
  font-size: 18px;
  line-height: 22px;
  text-align: center;
}
.cpick {
  position: relative;
}

.lufil {
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.lufil input {
  width: auto;
  min-width: 150px;
}
#luq {
  flex: 1;
  min-width: 220px;
}
.lupag {
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}
#tlu td.lud {
  white-space: nowrap;
  font-size: 12.5px;
}
#tlu td.lup {
  font-family: monospace;
  font-size: 11.5px;
  color: var(--muted);
}
.lutag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--gbg);
  color: var(--g4);
  border: 1px solid #cfe6c9;
}
.lutag.login {
  background: #e8f3fb;
  color: var(--blue2);
  border-color: #c6e0f3;
}
.lutag.falha {
  background: #fdecea;
  color: #b03a2e;
  border-color: #f5c6c0;
}

.vdest,
.vmodo {
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.vdest select {
  width: auto;
  min-width: 220px;
}
.vmodo {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.vgrid {
  gap: 14px;
  margin-top: 14px;
}
.vgrid .tbl {
  max-height: 62vh;
  overflow: auto;
  margin-top: 8px;
}
#vres td,
#vlst td {
  font-size: 13px;
}
.ptag {
  background: #fff3e0;
  color: #b25b00;
  border: 1px solid #ffd9a8;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 700;
}
.pubtag {
  background: var(--gbg);
  color: var(--g4);
  border: 1px solid #cfe6c9;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 700;
}
.pfc h4 {
  margin: 0 0 6px;
}
.pfg {
  display: grid;
  grid-template-columns: repeat(2, minmax(200px, 1fr));
  gap: 8px 14px;
  margin: 8px 0;
}
.pfg.pf4 {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}
.pfg label {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  gap: 3px;
}
.pfg label.chk {
  flex-direction: row;
  align-items: center;
  gap: 6px;
}
.pfg input,
.pfg select {
  width: 100%;
  box-sizing: border-box;
}
.pftag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 11px;
  background: #e5e7eb;
  color: #374151;
  font-weight: 600;
}
.pftag.on {
  background: #d1fae5;
  color: #065f46;
}
.pftag.off {
  background: #fee2e2;
  color: #991b1b;
}
#pfdevs table {
  margin-top: 8px;
}
.pfg label button {
  align-self: flex-start;
  width: auto;
}
.pfg label.chk {
  align-self: end;
  padding-bottom: 8px;
}
.pfg label.chk input {
  width: auto;
}
.srcleg {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 11px;
  color: #555;
  margin-left: 8px;
  align-items: center;
}
.srcleg span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.srcleg i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.srcleg i.lgp {
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #999;
}
.srcleg i.lgpv {
  background: #ddd;
  border: 2px dashed #111;
  box-shadow: none;
}
.agav {
  background: #fff7e0;
  border: 1px solid #f1d58a;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: #6b4e00;
  margin: 0 0 10px;
  line-height: 1.5;
}

@keyframes agnew {
  from {
    background: #fff3b0;
  }
  to {
    background: transparent;
  }
}
.agnew {
  animation: agnew 4s ease-out;
}
