*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-y: auto;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  color: #2d3d32;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

body {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(120, 190, 130, 0.35), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(40, 90, 50, 0.28), transparent 50%),
    linear-gradient(180deg, #e8f1ea 0%, #d5e4d8 38%, #c3d4c8 100%);
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
  z-index: 0;
}

body > * { position: relative; z-index: 1; }

button {
  font-family: inherit;
  cursor: pointer;
}

.glass, .glass-card, .topbar-inner, .menu, .ferramentas, .noticias,
.col-txt, .servico-card, .times-inner, .slider-txt, .headline {
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    0 10px 30px rgba(20, 55, 30, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
}

/* ---- topo ---- */
.topbar {
  background: linear-gradient(180deg, rgba(255,255,255,0.35), rgba(255,255,255,0.08));
  border-bottom: 0;
  padding-bottom: 0;
  position: relative;
  z-index: 10;
}
.topbar-inner {
  max-width: 1170px;
  width: calc(100% - 16px);
  margin: 12px auto 0;
  display: flex;
  min-height: 128px;
  border-radius: 18px 18px 0 0;
  overflow: visible;
}
.topbar-inner > form { display: flex; flex-shrink: 0; }
.brand {
  width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: none;
  background: rgba(255,255,255,0.35);
  transition: background 0.35s ease, transform 0.35s ease;
}
.brand:hover { background: rgba(255,255,255,0.55); }
.brand img { max-height: 112px; max-width: 180px; }
.top-right { flex: 1; display: flex; flex-direction: column; }
.top-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 80px;
  padding-right: 8px;
}
.idiomas { padding: 0 16px; display: flex; gap: 6px; align-items: center; }
.idiomas form { display: inline; margin: 0; }
.lang-btn {
  background: rgba(255,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 8px;
  padding: 4px 6px;
  line-height: 0;
  transition: transform 0.3s ease, box-shadow 0.35s ease, background 0.3s ease;
}
.lang-btn img { height: 20px; vertical-align: middle; }
.lang-btn:hover { transform: translateY(-2px); background: rgba(255,255,255,0.5); }
.lang-btn.ativo {
  box-shadow: 0 0 0 2px #327E3E, 0 8px 16px rgba(50,126,62,0.25);
  background: rgba(255,255,255,0.7);
}
.contatos { display: flex; min-width: 0; }
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin: 0 8px 0 4px;
  padding: 10px 8px;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 10px;
  background: rgba(255,255,255,0.35);
  flex-shrink: 0;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: #1f5c2c;
  border-radius: 2px;
}
.contato {
  border-right: 1px solid rgba(255,255,255,0.35);
  padding: 8px 18px;
  text-align: center;
}
.contato:last-child { border-right: none; }
.contato .lab { color: #6a7b6e; font-size: 12px; margin: 0; letter-spacing: 0.04em; text-transform: uppercase; }
.contato .val { color: #1f5c2c; font-weight: 700; font-size: 13px; margin: 4px 0 0; }

.menu {
  height: 48px;
  display: flex;
  align-items: stretch;
  padding-left: 8px;
  background: rgba(50, 126, 62, 0.55);
  border: none;
  border-top: 1px solid rgba(255,255,255,0.25);
  border-radius: 0;
  box-shadow: none;
}
.menu button {
  background: none;
  border: none;
  color: #fff;
  font-size: 15px;
  padding: 0 14px;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}
.menu button::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transition: transform 0.35s ease;
}
.menu button:hover { color: #e8f6ea; transform: translateY(-1px); }
.menu button:hover::after,
.menu button.atual::after { transform: scaleX(1); }
.menu .sep { color: rgba(255,255,255,0.45); line-height: 48px; font-size: 14px; }

/* ---- slider ---- */
.slider {
  height: 440px;
  position: relative;
  overflow: hidden;
  margin-top: -1px;
}
.slider .slide {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: none;
  transition: opacity 1.15s ease;
  pointer-events: none;
}
.slider .slide.ativo {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.slider::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  background: linear-gradient(100deg, rgba(12, 40, 20, 0.55) 0%, rgba(12, 40, 20, 0.12) 48%, transparent 70%);
  z-index: 2;
  pointer-events: none;
}
.slider-txt {
  position: relative;
  z-index: 3;
  max-width: 420px;
  margin: 88px 0 0 8%;
  padding: 28px 28px 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.28);
}
.slider-txt-host {
  display: none;
}
.slider-txt h1 {
  margin: 0 0 14px;
  color: #1f5c2c;
  font-size: 36px;
  line-height: 1.12;
  letter-spacing: -1px;
  text-transform: uppercase;
}
.slider-txt p {
  color: #2a3c30;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 20px;
}
.cta-green {
  display: inline-block;
  background: rgba(49, 125, 61, 0.85);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  height: 44px;
  padding: 0 22px;
  border-radius: 10px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}
.cta-green:hover {
  transform: translateY(-2px);
  background: rgba(49, 125, 61, 0.95);
  box-shadow: 0 12px 24px rgba(31, 92, 44, 0.35);
}
#slider-dots {
  position: absolute;
  z-index: 4;
  left: 8%;
  bottom: 22px;
  display: flex;
  gap: 8px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.45);
  padding: 0;
  transition: transform 0.3s ease, background 0.3s ease, width 0.3s ease;
}
.dot.ativo {
  background: #fff;
  width: 22px;
  border-radius: 8px;
}

/* ---- home cards ---- */
.home {
  max-width: 1170px;
  margin: -36px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 18px;
  padding: 0 8px;
  z-index: 5;
}
.glass-card {
  border-radius: 18px;
  overflow: hidden;
  min-height: 420px;
  opacity: 1;
  transform: none;
  transition:
    transform 0.45s cubic-bezier(0.22, 0.8, 0.32, 1),
    box-shadow 0.45s ease,
    background 0.45s ease,
    border-color 0.45s ease;
}
.glass-card:hover {
  transform: translateY(-10px);
  box-shadow:
    0 22px 40px rgba(20, 55, 30, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.7);
}

.ferramentas {
  background: rgba(40, 48, 46, 0.55);
  padding: 22px 20px 16px;
  color: #fff;
}
.ferramentas h2 {
  color: rgba(255,255,255,0.78);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.12em;
  margin: 0 0 8px;
}
.tool {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid transparent;
  border-radius: 10px;
  color: #fff;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  font-family: inherit;
  padding: 10px 8px;
  line-height: 1.3;
  margin: 6px 0;
  transition: background 0.35s ease, transform 0.35s ease, border-color 0.35s ease, padding 0.35s ease;
}
.tool img {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.25));
  transition: transform 0.35s ease;
}
.tool:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.28);
  transform: translateX(6px);
}
.tool:hover img { transform: scale(1.08) rotate(-4deg); }

.col-txt { padding: 0 0 16px; }
.col-txt .foto-btn {
  background: none;
  border: none;
  padding: 0;
  width: 100%;
  overflow: hidden;
}
.col-txt img.foto {
  width: 100%;
  height: 168px;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}
.col-txt:hover img.foto { transform: scale(1.06); }
.col-txt h2 { margin: 16px 16px 8px; }
.col-txt h2 button {
  background: none;
  border: none;
  color: #1f5c2c;
  font-size: 22px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: -0.5px;
  padding: 0;
  transition: color 0.3s ease;
}
.col-txt h2 button:hover { color: #327E3E; }
.col-txt .resumo {
  font-size: 14px;
  text-align: justify;
  min-height: 110px;
  padding: 0 16px;
  color: #3a4d40;
}
.mais {
  background: none;
  border: none;
  color: #2d7a3e;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0 16px;
  letter-spacing: 0.04em;
  transition: transform 0.3s ease, letter-spacing 0.3s ease;
}
.mais:hover { transform: translateX(4px); letter-spacing: 0.08em; }

.noticias {
  background: rgba(49, 125, 61, 0.55);
  padding: 22px 20px;
  color: #fff;
}
.noticias h2 {
  color: #fff;
  font-size: 22px;
  text-transform: uppercase;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.35);
}
.noticias p {
  color: rgba(232, 246, 234, 0.92);
  font-size: 14px;
  margin: 0 0 14px;
  line-height: 1.35;
  transition: transform 0.3s ease, color 0.3s ease;
}
.noticias p:hover { transform: translateX(4px); color: #fff; }
.noticias .mais { color: #fff; padding: 0; }

/* ---- servicos ---- */
.servicos {
  max-width: 1170px;
  margin: 56px auto 0;
  padding: 0 8px;
}
.servicos h2.sec {
  color: #1f5c2c;
  text-transform: uppercase;
  font-size: 34px;
  letter-spacing: -1px;
  margin: 0 0 24px;
  border: none;
}
.servicos h2.sec span {
  background: none;
  padding-right: 0;
}
.servicos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 16px;
}
.servico-card {
  border-radius: 16px;
  padding: 22px 18px 16px;
  min-height: auto;
  opacity: 1;
  transform: none;
}
.servico-card button {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  color: #1f5c2c;
  font-weight: 800;
  text-transform: uppercase;
}
.servico-card .linha {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.servico-card img {
  transition: transform 0.4s ease;
}
.servico-card:hover img { transform: translateY(-4px) scale(1.08); }
.aviso-sac {
  text-align: center;
  color: #1f5c2c;
  font-size: 18px;
  letter-spacing: -0.4px;
  margin: 36px 8px 0;
  font-weight: 700;
  line-height: 1.45;
}

/* ---- relogios ---- */
.times {
  background: url(/img/bg-times.jpg) center / cover;
  margin-top: 72px;
  padding: 56px 0;
  position: relative;
}
.times::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  background: rgba(20, 50, 30, 0.18);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.times-inner {
  max-width: 1170px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  height: 112px;
  border-radius: 16px;
}
.relogio {
  border-right: 1px solid rgba(255,255,255,0.35);
  text-align: center;
  padding-top: 18px;
  transition: background 0.35s ease;
}
.relogio:hover { background: rgba(255,255,255,0.2); }
.relogio:last-child { border-right: none; }
.relogio .hora {
  color: #2d7a3e;
  font-size: 28px;
  letter-spacing: -1px;
  font-family: Consolas, "Courier New", monospace;
  font-variant-numeric: tabular-nums;
}
.relogio .hora span {
  font-size: 12px;
  margin-left: 4px;
  text-transform: uppercase;
  opacity: 0.7;
}
.relogio .cidade {
  color: #1f5c2c;
  font-weight: 800;
  text-transform: uppercase;
  margin-top: 4px;
  font-size: 13px;
}

/* ---- rodape ---- */
.rodape {
  background: linear-gradient(180deg, rgba(32, 90, 45, 0.92), rgba(18, 56, 28, 0.96));
  color: #fff;
  margin-top: -8px;
  padding: 40px 0 18px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.rodape-inner {
  max-width: 1170px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 12px;
}
.rodape img { height: 48px; }
.rodape .end { flex: 1; text-align: center; font-size: 14px; }
.copy {
  max-width: 1170px;
  margin: 12px auto 0;
  padding: 8px 12px 0;
  font-size: 13px;
  opacity: 0.85;
}

/* ---- paginas internas ---- */
.headline {
  max-width: 1170px;
  margin: 18px auto 0;
  border-radius: 18px;
  color: #1f5c2c;
  height: 100px;
  display: flex;
  align-items: center;
  background: rgba(49, 125, 61, 0.18);
}
.headline h1 {
  margin: 0;
  padding: 0 28px;
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: -1px;
}
.conteudo {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 16px 48px;
  color: #3a4d40;
  font-size: 15px;
  line-height: 1.75;
}
.conteudo h2 { color: #1f5c2c; }
.contrato-texto {
  font-size: 16px;
  line-height: 1.7;
  color: #2a3d30;
}
.contrato-texto h2 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.contrato-texto h3 {
  margin: 0 0 22px;
  font-size: 15px;
  font-weight: 700;
  color: #327E3E;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.contrato-texto .contrato-intro { margin: 0 0 22px; }
.contrato-texto ol {
  margin: 0;
  padding-left: 1.35em;
}
.contrato-texto li { margin: 0 0 16px; }
.contrato-texto .contrato-nota {
  margin: 24px 0 0;
  font-size: 13px;
  color: #5a6d5e;
  font-style: italic;
}
.btn-site {
  background: rgba(49, 125, 61, 0.88);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 8px 20px;
  border-radius: 10px;
  font-weight: 700;
  text-transform: uppercase;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-site:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(31, 92, 44, 0.3);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .glass-card,
  .servico-card,
  .slider .slide.ativo {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 1400px) {
  .home { margin-top: -8px; }
}

@media (max-width: 1100px) {
  .home, .servicos-grid { grid-template-columns: 1fr 1fr; }
  .home { margin-top: 8px; }
  .times-inner { grid-template-columns: 1fr 1fr; height: auto; }
  .relogio { padding: 14px 8px; }
}

@media (max-width: 900px) {
  .contatos { display: none; }
  .menu-toggle { display: flex; }
  .menu {
    display: none;
    flex-direction: column;
    height: auto;
    padding: 8px;
    align-items: stretch;
    position: relative;
    z-index: 30;
  }
  .menu.aberto { display: flex; }
  .menu .sep { display: none; }
  .menu button {
    min-height: 44px;
    text-align: left;
    padding: 10px 14px;
  }
  .menu button::after { display: none; }
  .slider { height: 52vh; max-height: 380px; min-height: 240px; }
  .home { margin-top: 12px; }
  .slider-txt {
    margin: 36px 16px 0;
    max-width: none;
    padding: 20px 18px 18px;
  }
  .slider-txt h1 { font-size: 26px; }
  .headline { height: auto; min-height: 72px; }
  .headline h1 { font-size: 24px; padding: 16px 18px; }
  .servicos h2.sec { font-size: 26px; }
  .rodape-inner { flex-direction: column; text-align: center; }
}

/* ---- app: login / rastreamento / plantao / detalhe ---- */
.app-top {
  max-width: 1280px;
  margin: 12px auto 0;
  padding: 0 12px;
}
.app-top-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 8px 12px 8px 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 10px 28px rgba(20, 55, 30, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
}
.app-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.4);
  border: none;
  border-radius: 12px;
  padding: 4px 10px;
  transition: background 0.3s ease, transform 0.3s ease;
}
.app-brand:hover { background: rgba(255,255,255,0.7); transform: translateY(-1px); }
.app-brand img { height: 56px; }
.app-top h1 {
  margin: 0;
  flex: 1;
  color: #1f5c2c;
  font-size: 22px;
  letter-spacing: -0.6px;
  text-transform: uppercase;
}
.app-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.app-title { flex: 1; min-width: 0; }
.app-title h1 { flex: none; }
.app-empresa {
  margin: 2px 0 0;
  color: #1f5c2c;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.app-empresa span { margin-left: 12px; color: #5a6d5e; font-weight: 500; }
.app-empresa span:empty { display: none; margin: 0; }
.app-wrap {
  max-width: 1280px;
  margin: 14px auto 32px;
  padding: 0 12px;
}
.app-panel {
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 10px 28px rgba(20, 55, 30, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
}
.app-toolbar { display: flex; flex-direction: column; gap: 12px; }
.app-toolbar-one { gap: 0; overflow: visible; }
.app-toolbar-one .app-row {
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
  overflow: visible;
}
.app-toolbar-one .app-row .lab { flex: 0 0 auto; }
.app-toolbar-one .app-row > label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  color: #1f5c2c;
  font-size: 13px;
  font-weight: 600;
}
.app-toolbar-one .app-input {
  min-width: 96px;
  width: 128px;
  flex: 0 1 128px;
}
.app-toolbar-one .app-date { flex: 0 0 auto; }
.app-toolbar-one .app-ac {
  position: relative;
  z-index: 6;
  flex: 1 1 180px;
  min-width: 160px;
  max-width: 280px;
}
.app-toolbar-one .app-ac-input {
  width: 100%;
  min-width: 0;
  flex: none;
}
.app-ac-list {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 50;
  margin: 2px 0 0;
  padding: 4px 0;
  list-style: none;
  max-height: 360px;
  overflow: auto;
  background: #fff;
  border: 1px solid #b7d0bc;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(20, 55, 30, 0.12);
}
.app-ac-list li {
  padding: 7px 10px;
  cursor: pointer;
  font-size: 13px;
  color: #1f5c2c;
}
.app-ac-list li:hover,
.app-ac-list li.ativo {
  background: #e7f3ea;
}
.app-toolbar-one .seg { flex: 0 0 auto; }
.app-toolbar-one .seg label { padding: 4px 8px; }
.app-toolbar-one .btn-app { flex: 0 0 auto; }
.flt-grid {
  display: grid;
  grid-template-columns: max-content max-content;
  justify-content: start;
  gap: 8px;
  align-items: start;
}
.flt-card {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: visible;
  padding: 6px 10px;
  border-radius: 12px;
}
.flt-title {
  margin: 0;
  color: #5a6d5e;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex: 0 0 auto;
}
.flt-card .seg {
  flex: 0 0 auto;
  padding: 2px;
  border-radius: 8px;
}
.flt-card .seg label {
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 600;
}
.flt-num {
  width: 108px;
  min-width: 88px;
  max-width: 120px;
  flex: 0 0 108px;
}
.flt-card .app-input,
.flt-card .app-date,
.flt-card .btn-app {
  height: 30px;
  min-height: 30px;
  font-size: 12px;
}
.flt-card .flt-num { min-width: 88px; }
.flt-card .app-date { min-width: 0; width: 118px; padding: 0 6px; font-size: 11px; }
.flt-card .btn-app {
  padding: 0 12px;
  letter-spacing: 0.02em;
  flex: 0 0 auto;
}
.flt-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  color: #1f5c2c;
  font-size: 12px;
  font-weight: 600;
  flex: 0 0 auto;
}
.flt-ref {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1 1 140px;
}
.flt-ref .lab { flex: 0 0 auto; }
.flt-ref .app-ac {
  position: relative;
  z-index: 6;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 240px;
}
.flt-ref .app-ac-input {
  width: 100%;
  min-width: 0;
}
.flt-line { display: contents; }
.app-panel.flt-consulta {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  max-width: 100%;
}
.flt-consulta .btn-app {
  width: auto;
  min-width: 0;
  padding: 0 14px;
  flex: none;
}
.flt-consulta .lab { flex: 0 0 auto; }
.flt-consulta .app-ac {
  position: relative;
  z-index: 6;
  flex: 0 0 250px;
  width: 250px;
  max-width: 250px;
  min-width: 0;
}
.flt-consulta .app-ac-input {
  width: 100%;
  min-width: 0;
}
.flt-chk {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  white-space: nowrap;
  color: #1f5c2c;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.flt-chk input { accent-color: #327E3E; }
.app-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.app-row .lab {
  color: #5a6d5e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: rgba(31, 92, 44, 0.1);
  border: 1px solid rgba(255,255,255,0.4);
}
.seg label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #1f5c2c;
  cursor: pointer;
}
.seg input { accent-color: #327E3E; }
.app-input, .app-date {
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(31, 92, 44, 0.25);
  background: rgba(255,255,255,0.75);
  padding: 0 12px;
  color: #1f5c2c;
  font: inherit;
}
.app-input:focus, .app-date:focus {
  outline: none;
  border-color: #327E3E;
  box-shadow: 0 0 0 3px rgba(50, 126, 62, 0.18);
}
.app-input { min-width: 180px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.5);
  font-size: 12px;
  color: #1f5c2c;
  cursor: pointer;
}
.chip input { accent-color: #327E3E; }
.btn-app {
  height: 36px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.45);
  color: #1f5c2c;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: transform 0.25s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.btn-app:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.7);
}
.btn-app:disabled,
.btn-app:disabled:hover {
  opacity: 0.45;
  cursor: default;
  transform: none;
  background: rgba(255,255,255,0.45);
}
.btn-app.primary {
  background: rgba(49, 125, 61, 0.9);
  color: #fff;
}
.btn-app.primary:hover {
  background: rgba(49, 125, 61, 1);
  box-shadow: 0 8px 18px rgba(31, 92, 44, 0.28);
}
.btn-app.ghost { background: transparent; }
.btn-app.danger {
  background: rgba(160, 40, 40, 0.82);
  color: #fff;
}
.app-msg {
  text-align: center;
  color: #a02828;
  font-weight: 700;
  min-height: 1.2em;
  margin: 10px 0;
}
.app-msg:empty { display: none; }
.app-grid-wrap {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 8px 24px rgba(20, 55, 30, 0.08);
}
table.app-grid {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
}
table.app-grid th, table.app-grid td {
  padding: 8px 8px;
  text-align: center;
  white-space: nowrap;
  border-bottom: 1px solid rgba(31, 92, 44, 0.08);
}
table.app-grid th {
  position: sticky;
  top: 0;
  background: #276b32;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.04em;
  font-weight: 700;
  z-index: 2;
}
table.app-grid.sortable thead th {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
table.app-grid.sortable thead th:hover {
  background: #2f7d3c;
}
table.app-grid.sortable thead th.sort-asc::after,
table.app-grid.sortable thead th.sort-desc::after {
  font-size: 10px;
  margin-left: 4px;
  opacity: 0.9;
}
table.app-grid.sortable thead th.sort-asc::after { content: "\25B2"; }
table.app-grid.sortable thead th.sort-desc::after { content: "\25BC"; }
table.app-grid.filterable thead {
  position: sticky;
  top: 0;
  z-index: 3;
}
table.app-grid.filterable thead th {
  position: static;
}
table.app-grid thead tr.filtros th {
  background: #dceee0;
  color: #1f5c2c;
  font-weight: 400;
  padding: 4px;
  letter-spacing: 0;
}
table.app-grid thead tr.filtros input {
  width: 100%;
  min-width: 48px;
  max-width: 120px;
  box-sizing: border-box;
  height: 26px;
  border: 1px solid rgba(31, 92, 44, 0.25);
  border-radius: 6px;
  padding: 0 6px;
  font: inherit;
  color: #1f5c2c;
  background: #fff;
}
table.app-grid thead tr.filtros input:focus {
  outline: none;
  border-color: #327E3E;
  box-shadow: 0 0 0 2px rgba(50, 126, 62, 0.18);
}
table.app-grid tbody tr:nth-child(even) { background: rgba(232, 246, 234, 0.45); }
table.app-grid tbody tr:hover { background: rgba(49, 125, 61, 0.12); }
table.app-grid tfoot td {
  position: sticky;
  bottom: 0;
  background: #dceee0;
  font-weight: 700;
  color: #1f5c2c;
  text-align: left;
  padding: 10px 12px;
  z-index: 2;
}
.link-btn {
  background: none;
  border: none;
  color: #1f5c2c;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  font: inherit;
  padding: 0;
  border-bottom: 1px solid rgba(31, 92, 44, 0.35);
}
.link-btn:hover { color: #327E3E; }

.aguarde {
  display: none;
  position: fixed !important;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 99999 !important;
  align-items: center;
  justify-content: center;
  background: rgba(12, 28, 20, 0.55);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
}
.aguarde.visivel {
  display: flex;
  animation: aguarde-in 0.22s ease;
}
.aguarde-box {
  min-width: 168px;
  padding: 28px 36px 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.88);
  color: #1f5c2c;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  box-shadow:
    0 18px 48px rgba(12, 28, 20, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.aguarde-ring {
  width: 46px;
  height: 46px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 3px solid rgba(31, 92, 44, 0.16);
  border-top-color: #327E3E;
  border-right-color: #6cbc78;
  animation: aguarde-rot 0.75s linear infinite;
}
.aguarde-box p {
  margin: 0;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  animation: aguarde-txt 1.5s ease-in-out infinite;
}
@keyframes aguarde-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes aguarde-rot {
  to { transform: rotate(360deg); }
}
@keyframes aguarde-txt {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .aguarde.visivel,
  .aguarde-ring,
  .aguarde-box p {
    animation: none;
  }
}

.app-login {
  max-width: 400px;
  margin: 48px auto 40px;
  padding: 28px 28px 24px;
}
.app-login h2 {
  margin: 0 0 6px;
  color: #1f5c2c;
  text-transform: uppercase;
  letter-spacing: -0.4px;
}
.app-login p.hint {
  margin: 0 0 18px;
  color: #5a6d5e;
  font-size: 13px;
}
.app-field { margin: 0 0 14px; }
.app-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5a6d5e;
  margin-bottom: 6px;
}
.app-field input {
  width: 100%;
  box-sizing: border-box;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(31, 92, 44, 0.22);
  background: rgba(255,255,255,0.8);
  padding: 0 12px;
  font: inherit;
  color: #1f5c2c;
}
.app-field input:focus {
  outline: none;
  border-color: #327E3E;
  box-shadow: 0 0 0 3px rgba(50, 126, 62, 0.18);
}
.app-field select {
  width: 100%;
  min-width: 220px;
  box-sizing: border-box;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(31, 92, 44, 0.22);
  background: rgba(255,255,255,0.8);
  padding: 0 12px;
  font: inherit;
  color: #1f5c2c;
}
.app-field select:focus {
  outline: none;
  border-color: #327E3E;
  box-shadow: 0 0 0 3px rgba(50, 126, 62, 0.18);
}
.app-toolbar .app-field { margin: 0; flex: 1; min-width: 180px; }
.app-toolbar .cta-green { height: 42px; padding: 0 18px; }
.app-aviso {
  margin: 0;
  color: #5a6d5e;
  font-size: 12px;
}
.app-login .cta-green { width: 100%; margin-top: 6px; }
.app-login .home-row { margin-top: 14px; text-align: center; }

.login-modal {
  display: none;
  position: fixed !important;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 99990;
  align-items: center;
  justify-content: center;
  background: rgba(12, 28, 20, 0.55);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  padding: 16px;
}
.login-modal.visivel {
  display: flex;
  animation: aguarde-in 0.22s ease;
}
.login-modal .app-login {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 400px;
  background: rgba(18, 36, 24, 0.62);
  border-color: rgba(255, 255, 255, 0.28);
}
.login-modal .app-login h2 {
  color: #fff;
}
.login-modal .app-login p.hint,
.login-modal .app-login .app-field label {
  color: rgba(255, 255, 255, 0.92);
  background: none;
}
.login-modal .app-msg {
  min-height: 0;
  margin: 0 0 12px;
}
.login-modal .app-msg:empty { display: none; }
.login-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.login-close:hover { background: rgba(255, 255, 255, 0.28); }

.detalhe-modal {
  display: none;
  position: fixed !important;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 99990;
  align-items: center;
  justify-content: center;
  background: rgba(12, 28, 20, 0.55);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  padding: 16px;
}
.detalhe-modal.visivel {
  display: flex;
  animation: aguarde-in 0.22s ease;
}
.detalhe-card {
  position: relative;
  width: 96%;
  max-width: 1280px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 18px 16px 14px;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.7);
}
.detalhe-card h2 {
  margin: 0 44px 12px 0;
  color: #1f5c2c;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: -0.4px;
}
.detalhe-body {
  overflow: auto;
  min-height: 0;
  flex: 1 1 auto;
}
.detalhe-body .app-msg { text-align: left; }
.detalhe-body .app-msg:empty { display: none; }
.detalhe-body .app-grid-wrap { margin-top: 8px; }
.detalhe-card .login-close {
  background: rgba(31, 92, 44, 0.08);
  color: #1f5c2c;
}
.detalhe-card .login-close:hover { background: rgba(31, 92, 44, 0.16); }
.detalhe-box { margin-top: 16px; }
.detalhe-box h2 {
  color: #1f5c2c;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 10px;
}

html:has(body.app-wide) {
  height: 100%;
  overflow: hidden;
}
body.app-wide {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
}
body.app-wide .app-top {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
  margin: 6px 0 0;
  padding: 0 8px;
  flex-shrink: 0;
}
body.app-wide .app-top-inner {
  min-height: 56px;
  border-radius: 12px;
}
body.app-wide .app-brand img { height: 44px; }
body.app-wide .app-top h1 { font-size: 18px; }
body.app-wide .app-wrap {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  margin: 8px 0 8px;
  padding: 0 8px;
}
body.app-wide .app-panel { padding: 10px 12px; }
body.app-wide .flt-card { padding: 6px 10px; }
body.app-wide .flt-grid { flex-shrink: 0; }
body.app-wide .app-msg { margin: 6px 0; flex-shrink: 0; }
body.app-wide .app-wrap > form {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
  z-index: 5;
  overflow: visible;
}
body.app-wide .app-wrap > form:has(.app-grid-wrap) {
  flex: 1 1 auto;
  overflow: hidden;
}
body.app-wide .app-wrap > .app-grid-wrap,
body.app-wide .app-wrap > form > .app-grid-wrap {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 8px;
  align-self: stretch;
  position: relative;
  z-index: 0;
}
body.app-wide .app-wrap:has(.detalhe-box) > .app-grid-wrap {
  flex: 0 0 auto;
}
body.app-wide table.app-grid {
  width: max-content;
  min-width: 100%;
  font-size: 13px;
}
body.app-wide table.app-grid th,
body.app-wide table.app-grid td {
  padding: 6px 7px;
}
body.app-wide table.app-grid.filterable thead {
  position: sticky;
  top: 0;
  z-index: 3;
}
body.app-wide table.app-grid.filterable thead th {
  position: static;
}
body.app-wide table.app-grid thead tr.filtros th {
  padding: 4px;
}
body.app-wide .detalhe-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin-top: 10px;
}
body.app-wide .detalhe-box .app-grid-wrap {
  flex: 1 1 auto;
  min-height: 0;
}

@media (max-width: 1100px) {
  .flt-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .flt-card,
  .app-panel.flt-consulta {
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .flt-consulta .flt-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    width: 100%;
    flex: 1 1 100%;
  }
  .flt-consulta .app-ac {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
  }
  .flt-consulta .btn-app { margin-left: auto; }
}

@media (max-width: 700px) {
  .app-top h1 { font-size: 16px; }
  .app-brand img { height: 44px; }
  .app-input { min-width: 0; flex: 1 1 140px; }
  .app-top-inner {
    flex-wrap: wrap;
    gap: 8px;
  }
  .app-top h1 { flex: 1 1 auto; min-width: 0; }
  .app-actions { width: 100%; justify-content: flex-end; }
  .app-login { margin: 16px auto 24px; padding: 20px 16px; }
  .detalhe-modal { padding: 8px; }
  .detalhe-card { width: 100%; max-height: 94vh; padding: 16px 10px 10px; }
  .detalhe-card h2 { font-size: 16px; }
  .app-toolbar-one .app-row { flex-wrap: wrap; }
  .app-toolbar-one .btn-app { margin-left: 0; }
  .flt-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    width: 100%;
    flex: 1 1 100%;
  }
  .flt-card .seg { width: 100%; }
  .flt-card .seg label { flex: 1; justify-content: center; }
  .flt-num {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
  }
}

@media (max-width: 600px) {
  .home, .servicos-grid, .times-inner { grid-template-columns: 1fr; }
  .topbar-inner {
    display: block;
    min-height: 0;
    width: calc(100% - 12px);
    margin-top: 8px;
  }
  .brand {
    width: 100%;
    padding: 6px;
  }
  .brand img { max-height: 72px; }
  .top-meta {
    height: auto;
    min-height: 52px;
    justify-content: flex-end;
    padding: 6px 4px;
  }
  .glass-card { min-height: 0; }
  .slider { height: 48vh; max-height: 320px; min-height: 220px; }
  .slider .slider-txt { display: none; }
  .slider-txt-host {
    display: block;
    max-width: 1170px;
    margin: 12px auto 0;
    padding: 0 10px;
  }
  .slider-txt-host .slider-txt {
    display: block;
    margin: 0;
    max-width: none;
    padding: 18px 16px 16px;
  }
  .slider-txt h1 { font-size: 22px; letter-spacing: -0.5px; }
  .slider-txt p { font-size: 14px; }
  .home { margin-top: 12px; padding: 0 10px; }
  .servicos { margin-top: 32px; }
  .times { margin-top: 40px; padding: 28px 10px; }
  .aviso-sac { font-size: 15px; margin-top: 24px; }
  .conteudo { padding: 20px 14px 36px; }
  .headline h1 { font-size: 20px; }
  .lang-btn { min-width: 44px; min-height: 40px; }
  .cta-green { height: 44px; width: 100%; }
  .app-row .lab { width: 100%; }
  .app-toolbar-one .app-row .lab { width: auto; }
  .btn-app { min-height: 44px; height: auto; padding: 10px 14px; }
  .seg { width: 100%; }
  .seg label { flex: 1; justify-content: center; min-height: 40px; }
  .flt-card .btn-app { min-height: 30px; height: 30px; padding: 0 12px; }
  .flt-card .seg { width: 100%; }
  .flt-card .seg label { flex: 1; justify-content: center; min-height: 0; }
  .flt-date {
    flex: 1 1 100%;
    width: 100%;
    justify-content: space-between;
  }
  .flt-card .app-date {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }
  .flt-chk { flex: 1 1 auto; }
}
