:root {
  --fundo: #081327;
  --fundo-gradiente: radial-gradient(circle at top left, rgba(41, 82, 166, 0.34), transparent 34%), linear-gradient(180deg, #152b58 0%, #081327 58%, #061023 100%);
  --painel: #13264c;
  --painel-forte: #0f1f40;
  --cartao: #15284f;
  --cartao-claro: #1d325f;
  --texto: #f5f7ff;
  --muted: #b5c3e4;
  --linha: rgba(83, 122, 205, 0.42);
  --primario: #3a6dff;
  --primario-escuro: #2853cb;
  --azul: #2557a7;
  --verde: #0f8f5f;
  --vermelho: #b42318;
  --branco: #fff;
  --sombra-card: 0 24px 54px rgba(2, 10, 24, 0.28);
}

[hidden] { display: none !important; }
html,
body {
  height: 100%;
  overflow: hidden;
}
body {
  color: var(--texto);
}

button, input, select, textarea {
  font: inherit;
}

button {
  border: 0;
  background: var(--primario);
  color: white;
  padding: 10px 14px;
  border-radius: 14px;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

button:hover {
  background: var(--primario-escuro);
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(43, 87, 198, 0.22);
}
button.secundario {
  background: rgba(255, 255, 255, 0.08);
  color: #dfe7ff;
}
button.secundario:hover { background: rgba(255, 255, 255, 0.14); }
button.perigo {
  background: var(--vermelho);
}

a.botao-link {
  display: inline-block;
  background: #eef2ff;
  color: #273e85;
  padding: 10px 14px;
  border-radius: 6px;
  text-decoration: none;
}

.layout {
  display: grid;
  grid-template-columns: 232px 1fr;
  height: calc(100vh - 77px);
  min-height: calc(100vh - 77px);
  overflow: hidden;
}

.barra {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: rgba(10, 18, 38, 0.84);
  backdrop-filter: blur(12px);
  color: white;
  padding: 22px 16px;
  border-right: 1px solid rgba(83, 122, 205, 0.26);
}

.barra h1 { margin: 0 0 4px; font-size: 34px; line-height: 1; }
.barra p { margin: 0 0 26px; color: #d3ddfa; font-size: 16px; }
.barra nav { display: grid; gap: 8px; }
.barra button {
  text-align: left;
  background: transparent;
  border: 1px solid rgba(89, 121, 198, 0.28);
  font-size: 16px;
  padding: 12px 14px;
  color: #eaf0ff;
  border-radius: 14px;
}
.barra button.ativo {
  background: linear-gradient(180deg, #4476ff 0%, #2e5dd8 100%);
  border-color: rgba(92, 136, 255, 0.9);
  box-shadow: 0 14px 30px rgba(43, 87, 198, 0.26);
}

.conteudo {
  height: 100vh;
  min-width: 0;
  overflow: hidden;
  padding: 28px;
}
#app {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex: 0 0 auto;
}
.topo h2 { margin: 0 0 4px; }
.topo p { margin: 0; color: var(--muted); }

.cartao, .tela {
  background: rgba(19, 36, 72, 0.92);
  border: 1px solid var(--linha);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--sombra-card);
}

.tela {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

#tela_prestadores {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

#tela_prestadores[hidden] {
  display: none !important;
}

.login {
  max-width: 460px;
  width: 100%;
  padding: 20px;
}

.login form {
  display: grid;
  gap: 12px;
}

.acesso-shell {
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(360px, 1.15fr) minmax(360px, 460px);
  gap: 28px;
  align-items: center;
  justify-content: center;
  max-width: 1120px;
  margin: 0 auto;
}

.acesso-apresentacao {
  padding: 34px 34px 36px;
}

.rotulo-acesso {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  margin-bottom: 18px;
  border: 1px solid rgba(92, 136, 255, 0.45);
  border-radius: 999px;
  color: #dce6ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.acesso-apresentacao h2 {
  margin: 0 0 14px;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.04;
}

.acesso-apresentacao p {
  margin: 0 0 16px;
  color: #d0dcfb;
  font-size: 18px;
  line-height: 1.7;
  max-width: 62ch;
}

.abas {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.abas button.ativo {
  background: var(--primario);
  color: white;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

label.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--texto);
}

label.checkbox input {
  width: auto;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--linha);
  border-radius: 14px;
  padding: 12px 14px;
  color: #f6f8ff;
  background: rgba(255, 255, 255, 0.06);
}

body:has(#acesso:not([hidden])) .barra {
  display: none;
}

body:has(#acesso:not([hidden])) .layout {
  grid-template-columns: 1fr;
}

body:has(#acesso:not([hidden])) .conteudo {
  overflow: auto;
  padding: 38px 28px 46px;
}

body:has(#app:not([hidden])) .cabecalho-base {
  display: none;
}

body:has(#app:not([hidden])) .layout {
  height: 100vh;
  min-height: 100vh;
}

textarea { min-height: 90px; resize: vertical; }

.grade-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px;
}

.linha-inteira { grid-column: 1 / -1; }

.grade-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.indicador {
  border: 1px solid var(--linha);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
}
.indicador strong {
  display: block;
  font-size: 28px;
  margin-top: 8px;
}

.resumo-cabecalho {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(150px, 0.55fr));
  gap: 12px;
  margin-bottom: 18px;
}

.resumo-card {
  border: 1px solid var(--linha);
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(27, 50, 96, 0.96) 0%, rgba(17, 33, 67, 0.96) 100%);
  min-height: 112px;
}

.resumo-card.destaque {
  background: linear-gradient(180deg, #21408a 0%, #132958 100%);
  color: #fff;
}

.resumo-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.resumo-card.destaque span,
.resumo-card.destaque small {
  color: #cbd5e1;
}

.resumo-card strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
  line-height: 1.1;
}

.resumo-card.destaque strong {
  font-size: 28px;
}

.mensagem {
  color: #dce6ff;
}

input::placeholder,
textarea::placeholder {
  color: #a8b8dd;
}

@media (max-width: 1080px) {
  .acesso-shell {
    grid-template-columns: 1fr;
    align-content: start;
  }

  .acesso-apresentacao {
    order: 1;
  }

  .login {
    max-width: 100%;
  }
}

@media (max-width: 780px) {
  html,
  body {
    overflow: auto;
  }

  .layout {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
  }

  .barra,
  .conteudo {
    height: auto;
  }

  .barra {
    position: static;
    border-right: 0;
    border-bottom: 1px solid rgba(83, 122, 205, 0.26);
  }

  .conteudo {
    overflow: visible;
    padding: 18px;
  }

  .grade-form,
  .resumo-cabecalho {
    grid-template-columns: 1fr;
  }
}

.resumo-card small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.resumo-bloco {
  border: 1px solid var(--linha);
  border-radius: 10px;
  padding: 16px;
  background: #fff;
  margin-top: 14px;
}

.resumo-bloco-topo {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.resumo-bloco-topo h3,
.resumo-bloco-topo p {
  margin: 0;
}

.resumo-bloco-topo p {
  color: var(--muted);
  margin-top: 4px;
}

.grade-andamento {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 230px));
  align-items: start;
  justify-content: start;
  gap: 12px;
  margin: 0;
}

.card-andamento {
  border: 1px solid var(--linha);
  border-radius: 10px;
  padding: 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  min-height: 178px;
}

.card-andamento-topo {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  align-items: flex-start;
}

.card-andamento-identificacao {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.card-andamento-identificacao strong {
  font-size: 13px;
  white-space: nowrap;
  color: var(--muted);
}

.card-andamento-corpo {
  display: grid;
  gap: 4px;
  font-size: 12px;
  min-width: 0;
}

.card-andamento-corpo h4,
.card-andamento-corpo p {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-andamento-corpo h4 {
  font-size: 15px;
}

.card-andamento-corpo small {
  color: var(--muted);
}

.card-andamento-corpo .prestador-resumo {
  font-weight: 700;
}

.card-andamento-acoes {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.card-andamento-acoes button {
  width: auto;
  padding: 5px 7px;
  font-size: 12px;
}

.card-andamento-rodape {
  margin-top: auto;
  border-top: 1px solid var(--linha);
  padding-top: 8px;
  color: var(--azul);
  font-size: 15px;
  font-weight: 700;
}

.tabela-scroll {
  min-height: 0;
  overflow: auto;
  border: 1px solid var(--linha);
  border-radius: 8px;
  background: #fff;
}

.tabela-scroll table {
  margin-top: 0;
}

.tabela-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #f8fafc;
  box-shadow: 0 1px 0 var(--linha);
}

.tabela-prestadores-scroll {
  flex: 1 1 auto;
}

.prestador-identidade {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
}

.prestador-identidade strong,
.prestador-identidade small {
  display: block;
}

.prestador-identidade small {
  color: var(--muted);
  margin-top: 2px;
}

.avatar-prestador {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #e9eef8;
  color: #1f4380;
  font-weight: 800;
}

.avatar-prestador img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avisos-base-tempo-real {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 9000;
  display: grid;
  gap: 10px;
  max-width: 360px;
}

.aviso-base-tempo-real {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.24);
}

.aviso-base-tempo-real span,
.aviso-base-tempo-real small {
  color: #d8deea;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
}
th, td {
  border-bottom: 1px solid var(--linha);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}
th { color: var(--muted); font-weight: 600; }
td.acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
td.acoes button {
  padding: 7px 9px;
  font-size: 13px;
}

.campo-curto {
  max-width: 90px;
}

.status {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #273e85;
  font-size: 12px;
}

.status.disponivel {
  background: #dcfce7;
  color: #166534;
}

.status.ocupado {
  background: #ffedd5;
  color: #9a3412;
}

.status.indisponivel {
  background: #f1f5f9;
  color: #475569;
}

.ok { color: var(--verde); }
.erro { color: var(--vermelho); }
.mensagem { min-height: 20px; }
.texto-apoio {
  color: var(--muted);
  margin: 0 0 14px;
}
.linha-acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 10px 0 16px;
}

.subpainel {
  margin-top: 18px;
  border-top: 1px solid var(--linha);
  padding-top: 18px;
}

.perfil-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.52);
}

.perfil-modal-overlay[hidden] {
  display: none;
}

.perfil-modal {
  width: min(1180px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  overflow: auto;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--linha);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
  padding: 20px;
}

.perfil-modal-topo {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.perfil-modal-topo h3,
.perfil-modal-topo p {
  margin: 0;
}

.perfil-modal-topo p {
  color: var(--muted);
  margin-top: 4px;
}

.perfil-modal-fechar {
  background: var(--vermelho);
  color: #fff;
  font-weight: 800;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 8px;
  flex: 0 0 auto;
}

.perfil-modal-fechar:hover {
  background: #8f1d15;
}

.mapa-acionamento {
  grid-column: 1 / -1;
  margin: 16px 0;
  border: 1px solid var(--linha);
  border-radius: 8px;
  padding: 14px;
  background: #f8fafc;
}

.mapa-cabecalho {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.mapa-cabecalho h3,
.mapa-cabecalho p {
  margin: 0 0 6px;
}

.resumo-despacho-mapa {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 14px;
  margin: 12px 0 4px;
}

.resumo-despacho-item {
  padding: 10px 12px;
  border: 1px solid var(--linha);
  border-radius: 8px;
  background: #fff;
}

.resumo-despacho-item strong,
.resumo-despacho-item span {
  display: block;
}

.resumo-despacho-item strong {
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mapa-visual {
  position: relative;
  height: 460px;
  min-height: 460px;
  margin: 12px 0;
  border: 1px solid var(--linha);
  border-radius: 8px;
  overflow: hidden;
  background: #eef6ff;
}

.mapa-leaflet {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-height: 460px;
}

.mapa-leaflet .leaflet-control-attribution {
  font-size: 10px;
}

.imagem-mapa-estatico {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#mapa_sem_imagem {
  display: grid;
  place-items: center;
  min-height: 360px;
  color: var(--muted);
}

.controles-zoom-mapa {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 500;
  display: flex;
  gap: 6px;
  align-items: center;
}

.controles-zoom-mapa button {
  width: auto;
  min-width: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: rgba(255, 255, 255, 0.94);
  color: var(--texto);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14);
}

.marcador-mapa {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  max-width: 120px;
  min-height: 30px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.22);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.marcador-mapa.origem {
  background: #b42318;
}

.marcador-mapa.destino {
  background: #1d4ed8;
}

.marcador-mapa.prestador {
  background: #0f8f5f;
}

.marcador-mapa.inativo {
  background: #667085;
}

.marcador-mapa.ocupado {
  background: #ea580c;
}

.pin-leaflet-wrap {
  border: 0;
  background: transparent;
  width: 1px;
  height: 1px;
}

.pin-leaflet {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  max-width: 190px;
  min-height: 30px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.26);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
}

.pin-leaflet-ponto {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.3);
  transform: translate(-50%, -50%);
}

.pin-leaflet-ponto.origem {
  background: #b42318;
}

.pin-leaflet-ponto.destino {
  background: #1d4ed8;
}

.pin-leaflet-ponto.prestador {
  background: #0f8f5f;
}

.pin-leaflet-ponto.ocupado {
  background: #ea580c;
}

.pin-leaflet-ponto.inativo {
  background: #667085;
}

.pin-leaflet-linha-offset {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  height: 2px;
  background: rgba(15, 23, 42, 0.45);
  transform-origin: 0 50%;
  pointer-events: none;
}

.pin-leaflet strong,
.pin-leaflet small {
  display: block;
}

.pin-leaflet small {
  margin-left: 0;
  font-size: 10px;
  font-weight: 700;
  opacity: 0.94;
}

.pin-leaflet.origem {
  background: #b42318;
}

.pin-leaflet.destino {
  background: #1d4ed8;
}

.pin-leaflet.prestador {
  background: #0f8f5f;
}

.pin-leaflet.ocupado {
  background: #ea580c;
}

.pin-leaflet.inativo {
  background: #667085;
}

.pin-leaflet.selecionado {
  outline: 3px solid #facc15;
  outline-offset: 2px;
}

.tooltip-endereco-mapa {
  box-sizing: border-box;
  width: 280px;
  max-width: 300px;
  padding: 5px 8px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
  color: #111827;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  white-space: normal;
  text-align: center;
}

.conteudo-tooltip-endereco {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  align-items: start;
}

.corpo-tooltip-endereco {
  display: grid;
  gap: 3px;
  text-align: left;
}

.titulo-tooltip-mapa {
  color: #111827;
}

.fechar-tooltip-endereco {
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: #eef2ff;
  color: #1f2937;
  font-size: 11px;
  font-weight: 800;
  line-height: 20px;
  cursor: pointer;
}

.fechar-tooltip-endereco:hover {
  background: #dbe4ff;
}

.tooltip-endereco-mapa.origem {
  border-left: 4px solid #b42318;
}

.tooltip-endereco-mapa.destino {
  border-left: 4px solid #1d4ed8;
}

.tooltip-endereco-mapa.prestador {
  border-left: 4px solid #0f8f5f;
}

.rota-leaflet-contorno,
.rota-leaflet-linha {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.modal-mapa-acionamento {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 10px;
  background: rgba(15, 23, 42, 0.48);
}

.modal-mapa-acionamento[hidden] {
  display: none;
}

.modal-mapa-acionamento .mapa-acionamento {
  width: min(1600px, calc(100vw - 20px));
  max-height: calc(100vh - 20px);
  overflow: auto;
  margin: 0;
  background: #fff;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.28);
}

.filtros-mapa {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin: 10px 0;
}

.filtros-mapa label {
  margin: 0;
}

.filtros-mapa select {
  min-width: 180px;
}

.acoes-mapa-filtros {
  margin-left: auto;
}

.acoes-mapa-filtros button {
  width: auto;
  white-space: nowrap;
}

.mapa-visual .marcador-mapa {
  cursor: pointer;
}

button.marcador-mapa {
  border: 2px solid #fff;
  line-height: 1.15;
}

.marcador-mapa strong,
.marcador-mapa small {
  display: block;
}

.marcador-mapa small {
  font-size: 10px;
  font-weight: 600;
  opacity: 0.92;
}

.marcador-mapa.selecionado {
  outline: 3px solid #facc15;
  outline-offset: 2px;
}

.rota-mapa-svg {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.rota-mapa-contorno,
.rota-mapa-linha {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.rota-mapa-contorno {
  stroke: rgba(255, 255, 255, 0.96);
  stroke-width: 1.9;
  filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.35));
}

.rota-mapa-linha {
  stroke: #1a73e8;
  stroke-width: 1.05;
}

.aviso-mapa {
  margin: 8px 0 10px;
  padding: 10px 12px;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  background: #fffbeb;
  color: #92400e;
}

.status-mapa {
  margin: 8px 0 10px;
  padding: 10px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
}

.erro-mapa {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #b42318;
}

.erro-texto {
  color: #b42318;
}

#tabela_mapa_prestadores tr[data-selecionar-prestador] {
  cursor: pointer;
}

#tabela_mapa_prestadores tr.selecionado td {
  background: #fff8db;
}

.detalhe-prestador-mapa {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 18px;
  align-items: start;
  min-height: 34px;
  padding: 10px 12px;
  border: 1px solid var(--linha);
  border-radius: 8px;
  background: #fafbfe;
}

.detalhe-prestador-rota {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
}

.detalhe-prestador-rota strong {
  color: #174ea6;
}

.form-vinculo-prestador {
  max-width: 520px;
  align-items: end;
}

.form-vinculo-prestador button {
  justify-self: start;
  align-self: end;
  width: auto;
  white-space: nowrap;
}

.form-data-faturado {
  max-width: 620px;
  align-items: end;
  margin-bottom: 8px;
}

.form-data-faturado button {
  justify-self: start;
  align-self: end;
  width: auto;
  white-space: nowrap;
}

@media (max-width: 900px) {
  html,
  body { overflow: auto; }
  .layout {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }
  .barra {
    position: static;
    height: auto;
    overflow: visible;
  }
  .conteudo {
    height: auto;
    overflow: visible;
  }
  #app {
    height: auto;
  }
  .tela {
    overflow: visible;
  }
  .resumo-cabecalho {
    grid-template-columns: 1fr;
  }
  .grade-form { grid-template-columns: 1fr; }
  .detalhe-prestador-mapa { grid-template-columns: 1fr; }
  .modal-mapa-acionamento { padding: 8px; }
  .modal-mapa-acionamento .mapa-acionamento {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }
  .mapa-visual,
  .mapa-leaflet {
    height: 460px;
    min-height: 460px;
  }
}
