@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&display=swap");

:root {
  --gp-accent: #0d7ede;
  --gp-accent-strong: #0a63b5;
  --gp-teal: #0ea5a1;
  --gp-amber: #f59e0b;
  --gp-light-bg-1: #ecf3f7;
  --gp-light-bg-2: #dfeaf2;
  --gp-dark-bg-1: #07111c;
  --gp-dark-bg-2: #0d1b2b;
  --gp-surface-light: rgba(255, 255, 255, 0.84);
  --gp-surface-dark: rgba(10, 20, 33, 0.84);
  --gp-border-light: rgba(15, 23, 42, 0.13);
  --gp-border-dark: rgba(148, 163, 184, 0.25);
  --gp-shadow-soft: 0 16px 34px rgba(15, 23, 42, 0.14);
  --gp-shadow-strong: 0 28px 60px rgba(2, 8, 23, 0.25);
  --gp-radius-xl: 20px;
}

body.gestao-pro {
  font-family: "Manrope", "Public Sans", "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
  background:
    radial-gradient(circle at 12% 12%, rgba(14, 165, 161, 0.16), transparent 42%),
    radial-gradient(circle at 88% 0%, rgba(13, 126, 222, 0.21), transparent 38%),
    linear-gradient(180deg, var(--gp-light-bg-1), var(--gp-light-bg-2));
  color: #0f172a;
}

html.dark body.gestao-pro {
  background:
    radial-gradient(circle at 8% 12%, rgba(14, 165, 161, 0.18), transparent 44%),
    radial-gradient(circle at 86% 2%, rgba(13, 126, 222, 0.25), transparent 40%),
    linear-gradient(180deg, var(--gp-dark-bg-1), var(--gp-dark-bg-2));
  color: #e6eef6;
}

body.gestao-pro::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.3;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
}

body.gestao-pro .gestao-surface {
  border-radius: var(--gp-radius-xl);
  border: 1px solid var(--gp-border-light);
  background: var(--gp-surface-light);
  box-shadow: var(--gp-shadow-soft);
  backdrop-filter: blur(14px);
}

html.dark body.gestao-pro .gestao-surface {
  border-color: var(--gp-border-dark);
  background: var(--gp-surface-dark);
}

body.gestao-pro .gestao-soft-chip {
  border-radius: 9999px;
  border: 1px solid rgba(13, 126, 222, 0.25);
  background: rgba(13, 126, 222, 0.14);
  color: #bfdbfe;
  font-weight: 700;
}

body.gestao-pro .gestao-btn-primary {
  border: none;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--gp-accent), var(--gp-accent-strong));
  color: #fff;
  box-shadow: 0 12px 24px rgba(13, 126, 222, 0.25);
}

body.gestao-pro .gestao-btn-primary:hover {
  filter: brightness(1.05);
}

body.gestao-dashboard header {
  background: rgba(236, 243, 247, 0.78);
  border-bottom: 1px solid var(--gp-border-light);
  backdrop-filter: blur(16px);
}

html.dark body.gestao-dashboard header {
  background: rgba(7, 17, 28, 0.76);
  border-bottom-color: var(--gp-border-dark);
}

body.gestao-dashboard .header-inner,
body.gestao-dashboard .container {
  max-width: min(1360px, calc(100vw - 40px));
}

body.gestao-dashboard .container {
  padding-top: 26px;
}

body.gestao-dashboard .quick-card,
body.gestao-dashboard .card,
body.gestao-dashboard .panel {
  border: 1px solid var(--gp-border-light);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--gp-shadow-soft);
  backdrop-filter: blur(12px);
  border-radius: 18px;
}

html.dark body.gestao-dashboard .quick-card,
html.dark body.gestao-dashboard .card,
html.dark body.gestao-dashboard .panel {
  border-color: var(--gp-border-dark);
  background: rgba(10, 20, 33, 0.82);
}

body.gestao-dashboard .quick-card:hover {
  transform: translateY(-5px) scale(1.01);
}

body.gestao-dashboard th {
  font-weight: 700;
}

body.gestao-index #painel-filtros > div,
body.gestao-index #bottom-sheet {
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--gp-shadow-strong);
}

body.gestao-index #bottom-sheet {
  background: rgba(12, 20, 30, 0.92);
}

@media (min-width: 1100px) {
  body.gestao-index .gestao-top-overlay {
    top: 20px;
    left: 20px;
    right: auto;
    width: min(480px, calc(100vw - 40px));
    padding: 0;
    background: transparent;
  }

  body.gestao-index .gestao-top-overlay > .gestao-top-panel,
  body.gestao-index #painel-filtros > div {
    max-width: none;
  }

  body.gestao-index #painel-filtros {
    top: 170px;
    left: 20px;
    right: auto;
    width: min(480px, calc(100vw - 40px));
  }

  body.gestao-index #bottom-sheet {
    left: auto;
    right: 20px;
    bottom: 20px;
    width: min(500px, calc(100vw - 40px));
    max-height: calc(100vh - 40px);
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.35);
  }

  body.gestao-index #bottom-sheet.collapsed {
    max-height: 248px;
  }

  body.gestao-index #bottom-sheet .max-w-md,
  body.gestao-index #bottom-sheet-content {
    max-width: none;
  }

  body.gestao-index #map-zoom-controls {
    top: 22px;
    right: 22px;
    transform: none;
  }
}

body.gestao-relatorios .relatorios-topbar {
  background: rgba(236, 243, 247, 0.8);
  border-bottom-color: var(--gp-border-light);
  backdrop-filter: blur(12px);
}

html.dark body.gestao-relatorios .relatorios-topbar {
  background: rgba(7, 17, 28, 0.78);
  border-bottom-color: var(--gp-border-dark);
}

body.gestao-relatorios .relatorios-shell {
  max-width: min(1240px, calc(100vw - 36px));
  margin: 18px auto 150px;
  border-radius: 24px;
  border: 1px solid var(--gp-border-light);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--gp-shadow-soft);
}

html.dark body.gestao-relatorios .relatorios-shell {
  border-color: var(--gp-border-dark);
  background: rgba(10, 20, 33, 0.78);
}

body.gestao-relatorios .relatorios-actions {
  background: rgba(236, 243, 247, 0.9);
  border-top-color: var(--gp-border-light);
  backdrop-filter: blur(12px);
}

html.dark body.gestao-relatorios .relatorios-actions {
  background: rgba(7, 17, 28, 0.9);
  border-top-color: var(--gp-border-dark);
}

@media (min-width: 1024px) {
  body.gestao-relatorios #filtros-form {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body.gestao-relatorios #filtros-form .col-span-2 {
    grid-column: span 2 / span 2;
  }

  body.gestao-relatorios #lista-registros {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  body.gestao-relatorios .relatorios-actions {
    left: auto;
    right: 24px;
    bottom: 24px;
    width: min(460px, calc(100vw - 48px));
    border-radius: 18px;
    border: 1px solid var(--gp-border-light);
  }

  html.dark body.gestao-relatorios .relatorios-actions {
    border-color: var(--gp-border-dark);
  }
}

body.gestao-demandas .demandas-shell {
  max-width: min(1280px, calc(100vw - 40px));
  margin: 20px auto 34px;
  border: 1px solid var(--gp-border-light);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--gp-shadow-soft);
}

html.dark body.gestao-demandas .demandas-shell {
  border-color: var(--gp-border-dark);
  background: rgba(10, 20, 33, 0.78);
}

body.gestao-demandas .demandas-topbar {
  background: rgba(236, 243, 247, 0.84);
  border-bottom-color: var(--gp-border-light);
  backdrop-filter: blur(12px);
}

html.dark body.gestao-demandas .demandas-topbar {
  background: rgba(7, 17, 28, 0.82);
  border-bottom-color: var(--gp-border-dark);
}

@media (min-width: 1080px) {
  body.gestao-demandas #lista-demandas {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  body.gestao-demandas .demandas-floating-action {
    bottom: 28px;
    right: max(28px, calc((100vw - min(1280px, calc(100vw - 40px))) / 2 + 28px));
  }
}

body.gestao-equipe .equipe-shell {
  max-width: min(1160px, calc(100vw - 36px));
  margin: 18px auto 28px;
  border: 1px solid var(--gp-border-light);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--gp-shadow-soft);
}

html.dark body.gestao-equipe .equipe-shell {
  border-color: var(--gp-border-dark);
  background: rgba(10, 20, 33, 0.8);
}

@media (min-width: 1024px) {
  body.gestao-equipe #lista-tarefas {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  body.gestao-equipe #mapa-equipe {
    min-height: 260px;
  }
}

body.gestao-controle-equipes header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(236, 243, 247, 0.82);
  border-bottom: 1px solid var(--gp-border-light);
  backdrop-filter: blur(14px);
}

html.dark body.gestao-controle-equipes header {
  background: rgba(7, 17, 28, 0.8);
  border-bottom-color: var(--gp-border-dark);
}

body.gestao-controle-equipes {
  --text: #0f172a;
  --muted: #475569;
  --accent: var(--gp-accent);
}

html.dark body.gestao-controle-equipes {
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #38bdf8;
}

body.gestao-controle-equipes header h1 {
  color: var(--text);
}

body.gestao-controle-equipes header a {
  color: var(--accent);
  border-color: rgba(13, 126, 222, 0.4);
  background: rgba(13, 126, 222, 0.1);
}

html.dark body.gestao-controle-equipes header a {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.12);
}

body.gestao-controle-equipes main {
  max-width: min(1320px, calc(100vw - 40px));
  margin: 0 auto 40px;
  padding-bottom: 24px;
}

body.gestao-controle-equipes .messages,
body.gestao-controle-equipes .filters,
body.gestao-controle-equipes .meta-info {
  margin-left: 0;
  margin-right: 0;
}

body.gestao-controle-equipes .filters {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--gp-border-light);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--gp-shadow-soft);
}

html.dark body.gestao-controle-equipes .filters {
  border-color: var(--gp-border-dark);
  background: rgba(10, 20, 33, 0.78);
}

body.gestao-controle-equipes .grid-equipes {
  gap: 16px;
}

body.gestao-controle-equipes .team-card {
  border: 1px solid var(--gp-border-light);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--gp-shadow-soft);
}

html.dark body.gestao-controle-equipes .team-card {
  border-color: var(--gp-border-dark);
  background: rgba(10, 20, 33, 0.82);
}

body.gestao-auditoria .auditoria-topbar {
  background: rgba(236, 243, 247, 0.82);
  border-bottom-color: var(--gp-border-light);
  backdrop-filter: blur(12px);
}

html.dark body.gestao-auditoria .auditoria-topbar {
  background: rgba(7, 17, 28, 0.8);
  border-bottom-color: var(--gp-border-dark);
}

body.gestao-auditoria .auditoria-shell {
  max-width: min(1240px, calc(100vw - 34px));
}

body.gestao-auditoria .auditoria-fab {
  box-shadow: 0 18px 36px rgba(13, 126, 222, 0.28);
}

@media (min-width: 1024px) {
  body.gestao-auditoria #chips-auditoria {
    flex-wrap: nowrap;
  }

  body.gestao-auditoria #logs-lista > div.mt-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  body.gestao-auditoria .auditoria-fab {
    right: max(24px, calc((100vw - min(1240px, calc(100vw - 34px))) / 2 + 24px));
    bottom: 28px;
  }
}

body.gestao-carga .carga-shell {
  max-width: min(1220px, calc(100vw - 34px));
  margin: 18px auto;
  border: 1px solid var(--gp-border-light);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--gp-shadow-soft);
}

html.dark body.gestao-carga .carga-shell {
  border-color: var(--gp-border-dark);
  background: rgba(10, 20, 33, 0.8);
}

body.gestao-carga .carga-topbar {
  background: rgba(236, 243, 247, 0.84);
  border-bottom: 1px solid var(--gp-border-light);
  backdrop-filter: blur(12px);
}

html.dark body.gestao-carga .carga-topbar {
  background: rgba(7, 17, 28, 0.82);
  border-bottom-color: var(--gp-border-dark);
}

@media (min-width: 1080px) {
  body.gestao-carga #lista-tecnicos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

body.gestao-carga .carga-nav {
  background: rgba(236, 243, 247, 0.9);
  border-top-color: var(--gp-border-light);
  backdrop-filter: blur(12px);
}

html.dark body.gestao-carga .carga-nav {
  background: rgba(7, 17, 28, 0.9);
  border-top-color: var(--gp-border-dark);
}

body.gestao-importar .importar-shell {
  max-width: min(1240px, calc(100vw - 32px));
  margin: 18px auto 26px;
  border-radius: 24px;
  border: 1px solid var(--gp-border-light);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--gp-shadow-soft);
}

html.dark body.gestao-importar .importar-shell {
  border-color: var(--gp-border-dark);
  background: rgba(10, 20, 33, 0.8);
}

body.gestao-importar .importar-topbar {
  background: rgba(236, 243, 247, 0.84);
  border-bottom-color: var(--gp-border-light);
  backdrop-filter: blur(12px);
}

html.dark body.gestao-importar .importar-topbar {
  background: rgba(7, 17, 28, 0.82);
  border-bottom-color: var(--gp-border-dark);
}

body.gestao-importar .importar-action {
  left: 16px;
  right: 16px;
}

@media (min-width: 1024px) {
  body.gestao-importar .importar-main {
    gap: 22px;
  }

  body.gestao-importar #preview-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 16px;
  }

  body.gestao-importar #preview-section > .overflow-hidden {
    grid-column: span 2 / span 2;
  }

  body.gestao-importar .importar-action {
    left: auto;
    right: max(24px, calc((100vw - min(1240px, calc(100vw - 32px))) / 2 + 24px));
    width: min(420px, calc(100vw - 48px));
  }
}

body.gestao-importar .importar-nav {
  background: rgba(236, 243, 247, 0.9);
  border-top-color: var(--gp-border-light);
  backdrop-filter: blur(12px);
}

html.dark body.gestao-importar .importar-nav {
  background: rgba(7, 17, 28, 0.9);
  border-top-color: var(--gp-border-dark);
}

body.gestao-import-status .import-status-shell {
  max-width: min(1100px, calc(100vw - 32px));
  margin: 20px auto;
}

body.gestao-import-status .import-status-card {
  border-radius: 22px;
  border: 1px solid var(--gp-border-light);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--gp-shadow-soft);
  padding: 28px;
}

html.dark body.gestao-import-status .import-status-card {
  border-color: var(--gp-border-dark);
  background: rgba(10, 20, 33, 0.82);
}

body.gestao-import-status .import-status-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  border-radius: 12px;
  overflow: hidden;
}

body.gestao-import-status .import-status-table th,
body.gestao-import-status .import-status-table td {
  padding: 9px;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

body.gestao-import-status .import-status-table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

html.dark body.gestao-import-status .import-status-table th {
  color: #94a3b8;
}

body.gestao-login .login-shell,
body.gestao-cidadao-home .cidadao-home-shell {
  border: 1px solid var(--gp-border-light);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--gp-shadow-soft);
}

html.dark body.gestao-login .login-shell,
html.dark body.gestao-cidadao-home .cidadao-home-shell {
  border-color: var(--gp-border-dark);
  background: rgba(10, 20, 33, 0.82);
}

body.gestao-login .login-shell .hero-overlay {
  background: linear-gradient(165deg, rgba(7, 17, 28, 0.82), rgba(13, 126, 222, 0.42));
}

body.gestao-cidadao-home .cidadao-home-topbar {
  background: rgba(236, 243, 247, 0.88);
  border-bottom-color: var(--gp-border-light);
  backdrop-filter: blur(10px);
}

html.dark body.gestao-cidadao-home .cidadao-home-topbar {
  background: rgba(7, 17, 28, 0.86);
  border-bottom-color: var(--gp-border-dark);
}

@media (min-width: 980px) {
  body.gestao-login .login-shell {
    max-width: min(1320px, calc(100vw - 40px));
    min-height: 700px;
  }

  body.gestao-cidadao-home .cidadao-home-shell {
    max-width: 1120px;
    margin-top: 14px;
  }
}

@media (min-width: 1024px) {
  body.gestao-import-status .import-status-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  body.gestao-dashboard .header-inner,
  body.gestao-dashboard .container,
  body.gestao-demandas .demandas-shell,
  body.gestao-relatorios .relatorios-shell,
  body.gestao-equipe .equipe-shell,
  body.gestao-controle-equipes main,
  body.gestao-auditoria .auditoria-shell,
  body.gestao-carga .carga-shell,
  body.gestao-importar .importar-shell,
  body.gestao-import-status .import-status-shell {
    max-width: calc(100vw - 20px);
  }

  body.gestao-login .login-shell,
  body.gestao-cidadao-home .cidadao-home-shell {
    max-width: calc(100vw - 16px);
    border-radius: 18px;
    margin-top: 8px;
  }
}

body.gestao-login {
  align-items: center;
  justify-content: center;
  padding: 16px;
}

body.gestao-login .login-shell {
  width: min(1320px, calc(100vw - 32px));
  min-height: min(860px, calc(100dvh - 32px));
  margin: auto;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--gp-shadow-strong);
  backdrop-filter: blur(18px);
}

html.dark body.gestao-login .login-shell {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(8, 17, 28, 0.78);
}

body.gestao-login .login-brand-panel {
  position: relative;
  overflow: hidden;
  min-width: 0;
  background:
    linear-gradient(145deg, rgba(4, 12, 26, 0.9), rgba(11, 53, 104, 0.76)),
    url("/static/images/cidade-noturna.jpg") center/cover no-repeat;
  color: #f8fafc;
}

body.gestao-login .login-brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 24%, rgba(34, 211, 238, 0.22), transparent 34%),
    radial-gradient(circle at 84% 12%, rgba(56, 189, 248, 0.26), transparent 28%),
    linear-gradient(160deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.42));
}

body.gestao-login .login-brand-panel > * {
  position: relative;
  z-index: 1;
}

body.gestao-login .login-brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  padding: 10px 14px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.gestao-login .login-proof-grid {
  display: grid;
  gap: 14px;
}

body.gestao-login .login-proof-card {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  padding: 18px;
  box-shadow: 0 18px 34px rgba(2, 8, 23, 0.18);
  backdrop-filter: blur(10px);
}

body.gestao-login .login-proof-card strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 8px;
}

body.gestao-login .login-proof-card p {
  margin: 0;
  color: rgba(226, 232, 240, 0.82);
  line-height: 1.6;
  font-size: 0.92rem;
}

body.gestao-login .login-proof-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

body.gestao-login .login-proof-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: rgba(226, 232, 240, 0.9);
  font-size: 0.95rem;
}

body.gestao-login .login-proof-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 7px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(140deg, #38bdf8, #0ea5a1);
  box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.12);
}

body.gestao-login .login-form-card {
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(18px);
}

html.dark body.gestao-login .login-form-card {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 24px 48px rgba(2, 8, 23, 0.28);
}

body.gestao-login .login-form-panel {
  min-width: 0;
}

body.gestao-login .login-form-input {
  border-radius: 16px;
  border-width: 1px;
  min-height: 56px;
}

body.gestao-login .login-form-submit {
  min-height: 56px;
  border-radius: 16px;
  background: linear-gradient(140deg, var(--gp-accent), #0b6fd0);
  box-shadow: 0 14px 32px rgba(13, 126, 222, 0.3);
}

body.gestao-login .login-form-submit:hover {
  filter: brightness(1.04);
}

body.gestao-login .login-side-note {
  color: #64748b;
}

html.dark body.gestao-login .login-side-note {
  color: #94a3b8;
}

body.gestao-cidadao-home .cidadao-home-shell {
  max-width: min(1240px, calc(100vw - 32px));
  padding-bottom: 120px;
}

body.gestao-cidadao-home .cidadao-home-content {
  padding-bottom: 16px;
}

body.gestao-cidadao-home .cidadao-home-grid {
  display: grid;
  gap: 6px;
}

body.gestao-cidadao-home .cidadao-home-primary,
body.gestao-cidadao-home .cidadao-home-secondary {
  min-width: 0;
}

body.gestao-cidadao-home .cidadao-home-topbar {
  top: 12px;
  margin: 12px 12px 0;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(16px);
}

html.dark body.gestao-cidadao-home .cidadao-home-topbar {
  border-color: rgba(148, 163, 184, 0.14);
  background: rgba(10, 20, 33, 0.82);
}

body.gestao-cidadao-home .cidadao-home-hero {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 30%),
    radial-gradient(circle at 85% 15%, rgba(14, 165, 161, 0.32), transparent 24%),
    linear-gradient(145deg, #09254a, #137fec 58%, #0ea5a1);
  box-shadow: 0 28px 54px rgba(10, 37, 74, 0.28);
}

body.gestao-cidadao-home .cidadao-home-hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -96px auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(6px);
}

body.gestao-cidadao-home .cidadao-home-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 12px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.gestao-cidadao-home .cidadao-home-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body.gestao-cidadao-home .cidadao-home-feature-card {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  padding: 14px 12px;
  backdrop-filter: blur(10px);
}

body.gestao-cidadao-home .cidadao-home-feature-card strong {
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

body.gestao-cidadao-home .cidadao-home-feature-card span:last-child {
  display: block;
  margin-top: 4px;
  color: rgba(219, 234, 254, 0.85);
  font-size: 0.7rem;
  line-height: 1.45;
}

body.gestao-cidadao-home .cidadao-home-section-card {
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
}

html.dark body.gestao-cidadao-home .cidadao-home-section-card {
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(10, 20, 33, 0.78);
}

body.gestao-cidadao-home .cidadao-active-thumb {
  background:
    linear-gradient(145deg, rgba(9, 37, 74, 0.98), rgba(19, 127, 236, 0.92)),
    radial-gradient(circle at 78% 18%, rgba(14, 165, 161, 0.36), transparent 30%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body.gestao-cidadao-home .cidadao-home-bottom-nav {
  left: 50%;
  right: auto;
  width: min(760px, calc(100vw - 16px));
  transform: translateX(-50%);
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px 22px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 26px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

body.gestao-cidadao-home .cidadao-home-bottom-nav > a {
  flex: 1 1 0;
  min-width: 0;
  padding: 6px 4px;
  border-radius: 16px;
}

body.gestao-cidadao-home .cidadao-home-bottom-nav > a .material-symbols-outlined {
  font-size: 22px;
}

body.gestao-cidadao-home .cidadao-home-bottom-nav > a span:last-child {
  font-size: 0.68rem;
}

body.gestao-cidadao-home #acessibilidade-toggle,
body.gestao-cidadao-home #assistente-cidadao-toggle {
  position: fixed;
  right: 16px;
  left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.14);
  backdrop-filter: blur(12px);
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

body.gestao-cidadao-home #acessibilidade-toggle:hover,
body.gestao-cidadao-home #assistente-cidadao-toggle:hover {
  transform: translateY(-1px);
}

body.gestao-cidadao-home #acessibilidade-toggle {
  bottom: calc(164px + env(safe-area-inset-bottom, 0px));
  width: 48px;
  height: 48px;
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.28);
}

body.gestao-cidadao-home #assistente-cidadao-toggle {
  bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  width: 56px;
  height: 56px;
  box-shadow: 0 20px 36px rgba(13, 126, 222, 0.28);
}

body.gestao-cidadao-home #acessibilidade-panel,
body.gestao-cidadao-home #assistente-cidadao-panel {
  position: fixed;
  left: 12px;
  right: 12px;
  z-index: 50;
}

body.gestao-cidadao-home #acessibilidade-panel {
  bottom: calc(226px + env(safe-area-inset-bottom, 0px));
}

body.gestao-cidadao-home #assistente-cidadao-panel {
  bottom: calc(106px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 980px) {
  body.gestao-cidadao-home .cidadao-home-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 18px;
    padding: 8px 8px 0;
  }

  body.gestao-cidadao-home .cidadao-home-primary > div,
  body.gestao-cidadao-home .cidadao-home-secondary > div {
    margin-bottom: 2px;
  }

  body.gestao-cidadao-home .cidadao-home-secondary {
    padding-top: 10px;
  }

  body.gestao-cidadao-home .cidadao-home-hero {
    min-height: 100%;
  }

  body.gestao-cidadao-home .cidadao-home-bottom-nav {
    width: min(840px, calc(100vw - 80px));
    bottom: 16px;
    padding: 14px 18px 18px;
    border-radius: 28px;
  }

  body.gestao-cidadao-home .cidadao-home-bottom-nav > a {
    gap: 6px;
    padding: 8px 6px;
  }

  body.gestao-cidadao-home #acessibilidade-toggle {
    right: 24px;
    bottom: 188px;
  }

  body.gestao-cidadao-home #assistente-cidadao-toggle {
    right: 24px;
    bottom: 120px;
  }

  body.gestao-cidadao-home #acessibilidade-panel {
    left: auto;
    right: 24px;
    bottom: 252px;
    width: min(360px, calc(100vw - 48px));
  }

  body.gestao-cidadao-home #assistente-cidadao-panel {
    left: auto;
    right: 24px;
    bottom: 188px;
    width: min(420px, calc(100vw - 48px));
  }

  body.gestao-cidadao-home #acessibilidade-panel > div,
  body.gestao-cidadao-home #assistente-cidadao-panel > div {
    max-width: none;
  }
}

body.gestao-dashboard .dashboard-topbar {
  position: sticky;
  top: 14px;
  z-index: 30;
  margin: 14px auto 0;
  width: min(1360px, calc(100vw - 40px));
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(18px);
}

html.dark body.gestao-dashboard .dashboard-topbar {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(7, 17, 28, 0.8);
  box-shadow: 0 22px 48px rgba(2, 8, 23, 0.22);
}

body.gestao-dashboard .dashboard-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

body.gestao-dashboard .dashboard-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(13, 126, 222, 0.16), rgba(14, 165, 161, 0.2));
  color: var(--gp-accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

html.dark body.gestao-dashboard .dashboard-brand-mark {
  color: #93c5fd;
  background: linear-gradient(150deg, rgba(13, 126, 222, 0.24), rgba(14, 165, 161, 0.18));
}

body.gestao-dashboard .dashboard-brand-copy span {
  display: block;
  color: #64748b;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html.dark body.gestao-dashboard .dashboard-brand-copy span {
  color: #94a3b8;
}

body.gestao-dashboard .dashboard-brand-copy h1 {
  margin: 4px 0 0;
  color: #0f172a;
  font-size: clamp(1.55rem, 1.2rem + 0.9vw, 2.3rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

html.dark body.gestao-dashboard .dashboard-brand-copy h1 {
  color: #f8fafc;
}

body.gestao-dashboard .nav-menu-btn {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: #0f172a;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

html.dark body.gestao-dashboard .nav-menu-btn {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.7);
  color: #f8fafc;
}

body.gestao-dashboard .nav-menu-panel {
  gap: 10px;
}

body.gestao-dashboard .main-nav.is-open .nav-menu-panel {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  background: rgba(241, 245, 249, 0.92);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(16px);
}

html.dark body.gestao-dashboard .main-nav.is-open .nav-menu-panel {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(7, 17, 28, 0.92);
}

body.gestao-dashboard .nav-menu-panel a,
body.gestao-dashboard .nav-menu-panel .nav-export-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

html.dark body.gestao-dashboard .nav-menu-panel a,
html.dark body.gestao-dashboard .nav-menu-panel .nav-export-btn {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
}

body.gestao-dashboard #btn-export-pontos {
  border-color: rgba(13, 126, 222, 0.16);
  background: rgba(13, 126, 222, 0.08);
  color: #0d7ede;
}

html.dark body.gestao-dashboard #btn-export-pontos {
  border-color: rgba(96, 165, 250, 0.24);
  background: rgba(13, 126, 222, 0.12);
  color: #93c5fd;
}

body.gestao-dashboard .nav-menu-panel a:last-child {
  padding-inline: 12px;
}

body.gestao-dashboard .dashboard-shell {
  padding-top: 22px;
}

body.gestao-dashboard .dashboard-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(13, 126, 222, 0.18);
  border-radius: 30px;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.18), transparent 24%),
    radial-gradient(circle at 82% 12%, rgba(14, 165, 161, 0.24), transparent 26%),
    linear-gradient(145deg, #091a2e, #0f2f55 52%, #0d7ede);
  color: #f8fafc;
  box-shadow: 0 28px 60px rgba(2, 8, 23, 0.24);
}

body.gestao-dashboard .dashboard-hero-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 18px;
}

body.gestao-dashboard .dashboard-hero-copy .space-y-4 {
  display: grid;
  gap: 10px;
}

body.gestao-dashboard .dashboard-hero::before {
  content: "";
  position: absolute;
  inset: auto -70px -90px auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(4px);
}

body.gestao-dashboard .dashboard-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  padding: 7px 11px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.gestao-dashboard .dashboard-hero h2 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(1.72rem, 1.32rem + 0.95vw, 2.68rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

body.gestao-dashboard .dashboard-hero p {
  margin: 0;
  color: rgba(226, 232, 240, 0.86);
  line-height: 1.62;
  font-size: 0.94rem;
  max-width: 640px;
}

body.gestao-dashboard .dashboard-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.gestao-dashboard .dashboard-primary-link,
body.gestao-dashboard .dashboard-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 13px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

body.gestao-dashboard .dashboard-primary-link {
  background: #ffffff;
  color: #0d7ede;
  box-shadow: 0 14px 30px rgba(255, 255, 255, 0.14);
}

body.gestao-dashboard .dashboard-secondary-link {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

body.gestao-dashboard .dashboard-primary-link:hover,
body.gestao-dashboard .dashboard-secondary-link:hover {
  transform: translateY(-1px);
}

body.gestao-dashboard .dashboard-proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.gestao-dashboard .dashboard-proof-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 11px;
  color: rgba(241, 245, 249, 0.94);
  font-size: 0.76rem;
  font-weight: 700;
}

body.gestao-dashboard .dashboard-proof-strip span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #5eead4;
  box-shadow: 0 0 0 5px rgba(94, 234, 212, 0.12);
}

body.gestao-dashboard .dashboard-hero-grid {
  display: grid;
  gap: 12px;
  align-content: start;
}

body.gestao-dashboard .dashboard-highlight-card {
  display: flex;
  min-height: 126px;
  flex-direction: column;
  justify-content: center;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  padding: 16px 18px;
  backdrop-filter: blur(12px);
}

body.gestao-dashboard .dashboard-highlight-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.94rem;
  font-weight: 800;
}

body.gestao-dashboard .dashboard-highlight-card p {
  color: rgba(226, 232, 240, 0.78);
  font-size: 0.84rem;
  line-height: 1.55;
}

body.gestao-dashboard .dashboard-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

body.gestao-dashboard .dashboard-section-heading p {
  max-width: 520px;
  font-size: 0.9rem;
}

body.gestao-dashboard .dashboard-action-grid .quick-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 22px;
}

body.gestao-dashboard .dashboard-action-grid .quick-card::after {
  content: "";
  position: absolute;
  inset: auto -26px -26px auto;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(13, 126, 222, 0.12), rgba(14, 165, 161, 0.14));
}

body.gestao-dashboard .cards {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

body.gestao-dashboard .card {
  min-height: 152px;
  padding: 18px 16px;
  border-radius: 22px;
}

body.gestao-dashboard .card h3 {
  margin-bottom: 10px;
  color: #64748b;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

html.dark body.gestao-dashboard .card h3 {
  color: #94a3b8;
}

body.gestao-dashboard .card strong {
  letter-spacing: -0.03em;
}

body.gestao-dashboard .panel {
  border-radius: 24px;
  padding: 18px;
}

body.gestao-dashboard .ops-compare-card {
  border-radius: 18px;
  padding: 14px;
}

body.gestao-dashboard .dashboard-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body.gestao-dashboard .dashboard-table-wrap table {
  min-width: 360px;
}

@media (min-width: 1024px) {
  body.gestao-login .login-shell {
    display: grid;
    grid-template-columns: minmax(520px, 1.08fr) minmax(420px, 0.92fr);
    align-items: stretch;
  }

  body.gestao-login .login-form-panel {
    padding-inline: 44px;
  }

  body.gestao-login .login-form-panel > div {
    max-width: 440px;
  }

  body.gestao-dashboard .header-inner {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    align-items: start;
    gap: 18px;
    padding: 18px 20px;
  }

  body.gestao-dashboard .dashboard-hero {
    grid-template-columns: minmax(0, 1.22fr) minmax(290px, 0.78fr);
    align-items: start;
  }

  body.gestao-dashboard .dashboard-hero-copy {
    padding-right: 8px;
  }

  body.gestao-dashboard .dashboard-hero-side {
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }

  body.gestao-dashboard .nav-menu-btn {
    display: none;
  }

  body.gestao-dashboard .main-nav {
    margin-left: auto;
  }

  body.gestao-dashboard .nav-menu-panel,
  body.gestao-dashboard .main-nav.is-open .nav-menu-panel {
    display: flex;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  body.gestao-dashboard .nav-menu-panel a,
  body.gestao-dashboard .nav-menu-panel .nav-export-btn {
    min-height: 38px;
    padding-inline: 13px;
    box-shadow: none;
  }
}

@media (max-width: 1023px) {
  body.gestao-login {
    padding: 0;
  }

  body.gestao-login .login-shell {
    min-height: 100dvh;
    border-radius: 0;
    border: none;
  }

  body.gestao-dashboard .header-inner {
    flex-wrap: wrap;
    row-gap: 14px;
  }

  body.gestao-dashboard .dashboard-brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  body.gestao-dashboard .main-nav {
    margin-left: auto;
  }
}

@media (min-width: 1024px) and (max-width: 1280px) {
  body.gestao-dashboard .header-inner {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  }

  body.gestao-dashboard .dashboard-brand-copy h1 {
    font-size: clamp(1.35rem, 1.1rem + 0.6vw, 1.9rem);
  }

  body.gestao-dashboard .nav-menu-panel a,
  body.gestao-dashboard .nav-menu-panel .nav-export-btn {
    min-height: 36px;
    padding-inline: 11px;
    font-size: 0.85rem;
  }
}

@media (max-width: 640px) {
  body.gestao-cidadao-home .cidadao-home-topbar {
    margin-left: 8px;
    margin-right: 8px;
  }

  body.gestao-cidadao-home .cidadao-home-feature-grid {
    grid-template-columns: 1fr;
  }

  body.gestao-dashboard .dashboard-topbar {
    width: calc(100vw - 20px);
    border-radius: 22px;
  }

  body.gestao-dashboard .dashboard-hero {
    gap: 16px;
    padding: 20px 16px;
    border-radius: 24px;
  }

  body.gestao-dashboard .dashboard-hero-copy {
    gap: 16px;
  }

  body.gestao-dashboard .dashboard-hero h2 {
    max-width: none;
    font-size: clamp(1.55rem, 1.18rem + 3vw, 2.12rem);
  }

  body.gestao-dashboard .dashboard-hero p {
    font-size: 0.9rem;
  }

  body.gestao-dashboard .dashboard-hero-actions {
    flex-direction: column;
  }

  body.gestao-dashboard .dashboard-primary-link,
  body.gestao-dashboard .dashboard-secondary-link {
    width: 100%;
    min-height: 44px;
  }

  body.gestao-dashboard .dashboard-proof-strip span {
    width: 100%;
    justify-content: flex-start;
  }

  body.gestao-dashboard .panel {
    padding: 16px;
  }

  body.gestao-dashboard .card {
    min-height: 138px;
  }

  body.gestao-dashboard .main-nav.is-open .nav-menu-panel {
    width: min(100%, 360px);
  }
}

body.gestao-index .mapa-hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  padding: 16px 16px 14px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.16), transparent 28%),
    radial-gradient(circle at 82% 16%, rgba(14, 165, 161, 0.26), transparent 24%),
    linear-gradient(145deg, rgba(7, 17, 28, 0.96), rgba(11, 53, 104, 0.86) 54%, rgba(19, 127, 236, 0.88));
  box-shadow: 0 24px 50px rgba(2, 8, 23, 0.28);
  backdrop-filter: blur(12px);
}

body.gestao-index .mapa-hero-card h1 {
  font-size: clamp(1.2rem, 1rem + 0.75vw, 1.7rem);
  max-width: 14ch;
}

body.gestao-index .mapa-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 12px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.gestao-index .mapa-hero-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.gestao-index .mapa-hero-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  padding: 7px 11px;
  color: rgba(241, 245, 249, 0.94);
  font-size: 0.72rem;
  font-weight: 700;
}

body.gestao-index .mapa-hero-strip span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #5eead4;
  box-shadow: 0 0 0 5px rgba(94, 234, 212, 0.12);
}

body.gestao-index .mapa-surface-card,
body.gestao-index .mapa-filter-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(12, 20, 30, 0.86);
  box-shadow: 0 20px 46px rgba(2, 8, 23, 0.24);
  backdrop-filter: blur(14px);
}

body.gestao-index .mapa-top-panel {
  gap: 10px;
}

body.gestao-index .mapa-command-card {
  display: grid;
  gap: 12px;
  padding: 14px !important;
}

body.gestao-index .mapa-card-collapsible.is-collapsed .mapa-card-body {
  display: none;
}

body.gestao-index .mapa-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

body.gestao-index .mapa-card-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #eff6ff;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

body.gestao-index .mapa-card-toggle:hover {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(19, 127, 236, 0.16);
}

body.gestao-index .mapa-card-toggle .material-symbols-outlined {
  font-size: 20px;
}

body.gestao-index .mapa-command-card.is-collapsed .mapa-toolbar-return {
  display: none;
}

body.gestao-index .mapa-toolbar-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

body.gestao-index .mapa-toolbar-eyebrow {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(191, 219, 254, 0.82);
}

body.gestao-index .mapa-toolbar-title {
  margin: 6px 0 0;
  font-size: clamp(0.92rem, 0.88rem + 0.2vw, 1.04rem);
  font-weight: 800;
  line-height: 1.2;
  color: #f8fafc;
}

body.gestao-index .mapa-toolbar-return {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #eff6ff;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

body.gestao-index .mapa-search-row {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr);
}

body.gestao-index .mapa-search-field {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(8, 15, 24, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.gestao-index .mapa-search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(13, 126, 222, 0.22);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.08);
  color: #cfe5ff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

body.gestao-index .mapa-toolbar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  background: rgba(8, 15, 24, 0.72);
  color: #f8fafc;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

body.gestao-index .mapa-toolbar-button:hover,
body.gestao-index .mapa-toolbar-button.is-open {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(19, 127, 236, 0.16);
}

body.gestao-index .mapa-toolbar-button.has-active-filters {
  border-color: rgba(14, 165, 161, 0.5);
  background: rgba(14, 165, 161, 0.12);
}

body.gestao-index .mapa-toolbar-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #0d7ede;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

body.gestao-index .mapa-toolbar-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

body.gestao-index .mapa-toolbar-status-stack {
  display: grid;
  gap: 3px;
  min-width: 0;
  color: #9fb0c3;
}

body.gestao-index .mapa-toolbar-status-stack small {
  display: block;
  min-height: 1em;
}

body.gestao-index .mapa-inline-feedback {
  border-radius: 18px;
  background: rgba(8, 15, 24, 0.74);
  box-shadow: none;
}

body.gestao-index .mapa-inline-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(140deg, #0d7ede, #0a63b5);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
}

body.gestao-index .layer-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

body.gestao-index .layer-toggle.is-active {
  border-color: rgba(59, 130, 246, 0.56);
  background: rgba(37, 99, 235, 0.22);
  color: #f8fafc;
}

body.gestao-index .mapa-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: #dbeafe;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

body.gestao-index .mapa-layer-bar {
  gap: 10px;
  padding-top: 0;
}

body.gestao-index .mapa-layer-card {
  display: grid;
  gap: 12px;
  padding: 14px !important;
}

body.gestao-index .mapa-layer-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

body.gestao-index .mapa-layer-body {
  display: grid;
  gap: 12px;
}

body.gestao-index .mapa-layer-tools {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

body.gestao-index .mapa-layer-title {
  margin: 6px 0 0;
  font-size: 0.86rem;
  font-weight: 800;
  color: #f8fafc;
}

body.gestao-index .mapa-layer-grid {
  display: flex;
  flex-wrap: wrap;
}

body.gestao-index .mapa-heat-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

body.gestao-index #painel-filtros {
  width: 100%;
}

body.gestao-index .mapa-filter-card {
  display: grid;
  gap: 16px;
  padding: 14px !important;
}

body.gestao-index .mapa-filter-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

body.gestao-index .mapa-filter-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

body.gestao-index .mapa-filter-count {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: #dbeafe;
  font-size: 0.74rem;
  font-weight: 700;
}

body.gestao-index .mapa-filter-clear,
body.gestao-index .mapa-filter-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(8, 15, 24, 0.6);
  color: #eff6ff;
  font-size: 0.74rem;
  font-weight: 700;
}

body.gestao-index .mapa-filter-close {
  width: 34px;
  padding: 0;
  border-radius: 999px;
}

body.gestao-index .mapa-filter-grid {
  display: grid;
  gap: 12px;
}

body.gestao-index .mapa-filter-grid select {
  min-height: 42px;
}

body.gestao-index .mapa-legenda {
  border-radius: 18px;
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(8, 15, 24, 0.82);
}

body.gestao-index .mapa-legenda.is-collapsed {
  width: 44px;
  max-width: 44px;
  border-radius: 999px;
}

body.gestao-index .mapa-legenda.is-collapsed .mapa-legenda-head {
  padding: 0;
}

body.gestao-index #bottom-sheet {
  background:
    linear-gradient(180deg, rgba(9, 17, 28, 0.96), rgba(10, 20, 33, 0.92)),
    radial-gradient(circle at 82% 10%, rgba(13, 126, 222, 0.12), transparent 28%);
}

body.gestao-index .mapa-sheet-intro {
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.72), rgba(19, 127, 236, 0.16));
}

body.gestao-index .mapa-sheet-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 12px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.gestao-index .mapa-actions-card {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.5);
}

body.gestao-index .mapa-sheet-grid {
  display: grid;
  gap: 14px;
}

body.gestao-index .mapa-sheet-primary,
body.gestao-index .mapa-sheet-secondary {
  min-width: 0;
}

body.gestao-index .mapa-sheet-primary,
body.gestao-index .mapa-section-card {
  display: grid;
  gap: 18px;
}

body.gestao-index .mapa-section-card {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.42);
  padding: 14px;
}

body.gestao-index .mapa-section-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93c5fd;
}

body.gestao-index .mapa-sheet-secondary {
  display: grid;
  gap: 18px;
}

body.gestao-relatorios .relatorios-topbar {
  top: 12px;
  margin: 12px auto 0;
  width: min(1240px, calc(100vw - 24px));
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.1);
}

html.dark body.gestao-relatorios .relatorios-topbar {
  border-color: rgba(148, 163, 184, 0.16);
}

body.gestao-relatorios .relatorios-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(13, 126, 222, 0.16);
  border-radius: 30px;
  padding: 24px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.16), transparent 28%),
    radial-gradient(circle at 82% 16%, rgba(14, 165, 161, 0.24), transparent 24%),
    linear-gradient(145deg, #091a2e, #0f2f55 52%, #0d7ede);
  color: #f8fafc;
  box-shadow: 0 26px 52px rgba(2, 8, 23, 0.22);
}

body.gestao-relatorios .relatorios-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 12px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.gestao-relatorios .relatorios-hero-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.gestao-relatorios .relatorios-hero-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 12px;
  color: rgba(241, 245, 249, 0.94);
  font-size: 0.78rem;
  font-weight: 700;
}

body.gestao-relatorios .relatorios-hero-strip span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #5eead4;
  box-shadow: 0 0 0 5px rgba(94, 234, 212, 0.12);
}

body.gestao-relatorios .relatorios-section-card {
  border-radius: 26px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

html.dark body.gestao-relatorios .relatorios-section-card {
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(10, 20, 33, 0.82);
}

body.gestao-relatorios .relatorios-body-grid {
  display: grid;
  gap: 0;
}

body.gestao-relatorios .relatorios-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

body.gestao-relatorios .relatorios-summary-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(145deg, rgba(248, 250, 252, 0.92), rgba(239, 246, 255, 0.84));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

html.dark body.gestao-relatorios .relatorios-summary-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.86), rgba(20, 40, 62, 0.78));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.gestao-relatorios .relatorios-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.28), transparent);
}

body.gestao-relatorios .relatorios-list-card {
  border-radius: 18px;
  padding: 16px;
}

body.gestao-relatorios .relatorios-filter-chip {
  border-radius: 999px;
  min-height: 38px;
}

@media (max-width: 768px) {
  body.gestao-relatorios .relatorios-topbar {
    width: calc(100vw - 16px);
    margin-top: 8px;
  }

  body.gestao-relatorios .relatorios-hero {
    border-radius: 24px;
    padding: 20px;
  }
}

@media (min-width: 1120px) {
  body.gestao-relatorios .relatorios-body-grid {
    grid-template-columns: minmax(360px, 0.86fr) minmax(0, 1.14fr);
    align-items: start;
  }

  body.gestao-relatorios .relatorios-body-grid > div:first-child {
    position: sticky;
    top: 116px;
  }
}

@media (min-width: 1100px) {
  body.gestao-index .gestao-top-overlay {
    top: 16px;
    left: 16px;
    width: min(448px, calc(100vw - 36px));
  }

  body.gestao-index #painel-filtros {
    width: 100%;
  }

  body.gestao-index #bottom-sheet {
    right: 16px;
    bottom: 16px;
    width: min(620px, calc(100vw - 36px));
    max-height: min(680px, calc(100vh - 32px));
  }

  body.gestao-index .mapa-sheet-grid {
    grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.18fr);
    align-items: start;
  }

  body.gestao-index .mapa-search-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  body.gestao-index .mapa-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.gestao-index .mapa-filter-grid > :last-child {
    grid-column: 1 / -1;
  }

}

@media (max-width: 640px) {
  body.gestao-index .gestao-top-overlay {
    padding: 10px 10px 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.28) 68%, transparent);
  }

  body.gestao-index .gestao-top-overlay > .mapa-top-panel {
    max-width: none;
    gap: 8px;
  }

  body.gestao-index .mapa-hero-card {
    border-radius: 20px;
    padding: 12px 12px 10px;
    box-shadow: 0 16px 34px rgba(2, 8, 23, 0.22);
  }

  body.gestao-index .mapa-hero-card h1 {
    max-width: none;
    font-size: 1.15rem;
  }

  body.gestao-index .mapa-hero-chip {
    padding: 6px 10px;
    font-size: 0.64rem;
  }

  body.gestao-index .mapa-hero-description,
  body.gestao-index .mapa-hero-strip {
    display: none;
  }

  body.gestao-index .mapa-command-card,
  body.gestao-index .mapa-layer-card,
  body.gestao-index .mapa-filter-card,
  body.gestao-index .gestao-top-overlay .mapa-surface-card {
    border-radius: 18px;
    padding: 12px !important;
  }

  body.gestao-index .mapa-toolbar-head {
    gap: 8px;
  }

  body.gestao-index .mapa-toolbar-actions,
  body.gestao-index .mapa-layer-head {
    width: 100%;
  }

  body.gestao-index .mapa-toolbar-actions {
    justify-content: space-between;
  }

  body.gestao-index .mapa-toolbar-title,
  body.gestao-index .mapa-layer-title {
    font-size: 0.82rem;
  }

  body.gestao-index .mapa-toolbar-return {
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.68rem;
  }

  body.gestao-index .mapa-search-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 8px;
  }

  body.gestao-index .mapa-search-field {
    min-height: 44px;
    padding: 0 10px;
    border-radius: 15px;
  }

  body.gestao-index .mapa-search-field .material-symbols-outlined {
    margin-right: 8px;
    font-size: 20px;
  }

  body.gestao-index .mapa-search-submit {
    min-height: 30px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 0.68rem;
  }

  body.gestao-index .mapa-toolbar-button {
    width: auto;
    min-width: 48px;
    padding: 0 12px;
    border-radius: 15px;
  }

  body.gestao-index .mapa-toolbar-button-label {
    display: none;
  }

  body.gestao-index .mapa-toolbar-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
  }

  body.gestao-index .mapa-toolbar-return,
  body.gestao-index .mapa-toolbar-button,
  body.gestao-index .mapa-search-submit,
  body.gestao-index .mapa-inline-action,
  body.gestao-index .mapa-heat-toggle {
    width: auto;
  }

  body.gestao-index .mapa-toolbar-meta,
  body.gestao-index .mapa-filter-actions,
  body.gestao-index .mapa-layer-head {
    align-items: stretch;
  }

  body.gestao-index .mapa-counter {
    width: auto;
    min-height: 30px;
    justify-content: center;
    padding: 0 10px;
    font-size: 0.68rem;
  }

  body.gestao-index .mapa-toolbar-status-stack {
    width: 100%;
  }

  body.gestao-index .mapa-layer-grid {
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  body.gestao-index .mapa-layer-grid::-webkit-scrollbar {
    display: none;
  }

  body.gestao-index .layer-toggle,
  body.gestao-index .mapa-heat-toggle {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.72rem;
  }

  body.gestao-index .mapa-layer-tools {
    justify-content: flex-start;
  }

  body.gestao-index #painel-filtros {
    max-height: 46vh;
    overflow-y: auto;
  }

  body.gestao-index .mapa-filter-grid {
    gap: 10px;
  }

  body.gestao-index #bottom-sheet {
    max-height: 58vh;
  }

  body.gestao-index #bottom-sheet.collapsed {
    max-height: 118px;
  }

  body.gestao-index #bottom-sheet-content {
    padding-bottom: 20px;
  }

  body.gestao-index .mapa-sheet-intro {
    margin-bottom: 10px;
    padding: 12px;
    border-radius: 18px;
  }

  body.gestao-index .mapa-sheet-intro p {
    display: none;
  }

  body.gestao-index .mapa-sheet-chip {
    margin-bottom: 8px;
    padding: 6px 10px;
    font-size: 0.64rem;
  }

  body.gestao-index .mapa-filter-close {
    width: 100%;
    border-radius: 12px;
  }
}
