/* RASTREACRE MAPA V30 — ajustes exclusivamente visuais.
   Mantém busca, KATE, barra de atalhos, alertas, comandos e integrações. */

/* Frota: mesma estrutura funcional, porém linhas compactas e legíveis. */
body.map61-body #fleetPanel .fleet56-list{scrollbar-width:thin!important}
body.map61-body #fleetPanel .entity61-wrap{
  min-height:62px!important;height:auto!important;padding:0 5px!important;
  border-bottom:1px solid var(--rt-line,rgba(160,180,170,.2))!important;
}
body.map61-body #fleetPanel .entity61{
  display:block!important;width:100%!important;min-height:60px!important;
  padding:5px 25px 5px 5px!important;text-align:left!important;
}
body.map61-body #fleetPanel .entity56-top{
  display:flex!important;align-items:center!important;gap:9px!important;
  min-width:0!important;width:100%!important;
}
body.map61-body #fleetPanel .entity61-thumb{
  width:35px!important;height:35px!important;flex:0 0 35px!important;
  border-radius:9px!important;
}
body.map61-body #fleetPanel .entity61-thumb .material-symbols-rounded{font-size:19px!important}
body.map61-body #fleetPanel .entity56-main{
  display:flex!important;flex-direction:column!important;justify-content:center!important;
  flex:1 1 auto!important;min-width:0!important;gap:1px!important;
}
body.map61-body #fleetPanel .entity56-name{
  display:block!important;font-size:11px!important;font-weight:800!important;
  line-height:1.25!important;overflow:hidden!important;text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
body.map61-body #fleetPanel .entity56-meta{
  display:block!important;font-size:10px!important;line-height:1.25!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  margin:0!important;
}
body.map61-body #fleetPanel .entity61-ignition{display:none!important}
body.map61-body #fleetPanel .entity61-badgeline{margin:2px 0 0!important;line-height:1!important}
body.map61-body #fleetPanel .entity61-badgeline .badge56{
  font-size:8px!important;padding:2px 5px!important;line-height:1.15!important;
}
body.map61-body #fleetPanel .entity56-side{
  display:flex!important;flex:0 0 62px!important;min-width:0!important;
  flex-direction:column!important;align-items:flex-end!important;justify-content:center!important;
  gap:3px!important;text-align:right!important;
}
body.map61-body #fleetPanel .entity56-speed{font-size:10px!important;white-space:nowrap!important}
body.map61-body #fleetPanel .entity56-time{font-size:9px!important;white-space:nowrap!important}
body.map61-body #fleetPanel .entity61-check{
  right:3px!important;bottom:auto!important;top:50%!important;transform:translateY(-50%)!important;
  width:22px!important;height:25px!important;
}

/* Ficha inferior: elimina sobreposições causadas por grades antigas de largura fixa. */
body.map61-body #detailPanel.map61-detail{
  box-sizing:border-box!important;height:294px!important;max-height:min(294px,65vh)!important;
  overflow:hidden!important;
}
body.map61-body #detailPanel .map61-detail-head{
  position:absolute!important;left:15px!important;top:12px!important;
  width:calc(100% - 390px)!important;max-width:410px!important;
  height:72px!important;padding:0!important;min-width:0!important;
}
body.map61-body #detailPanel .map61-detail-head h2{
  margin:3px 0 1px!important;line-height:1.1!important;font-size:20px!important;
  overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
}
body.map61-body #detailPanel .map61-detail-head p{
  overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
}
body.map61-body #detailPanel #commandSection{
  position:absolute!important;right:45px!important;top:12px!important;
  width:316px!important;display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important;
  z-index:4!important;
}
body.map61-body #detailPanel #commandSection > *{
  box-sizing:border-box!important;width:100%!important;min-width:0!important;
  height:65px!important;min-height:65px!important;padding:5px 2px!important;
  gap:3px!important;
}
body.map61-body #detailPanel #commandSection b{font-size:10px!important;line-height:1.1!important}
body.map61-body #detailPanel .detail56-body{
  position:absolute!important;left:14px!important;right:14px!important;
  top:92px!important;bottom:12px!important;padding:0!important;
  display:grid!important;
  grid-template-columns:minmax(160px,1.1fr) minmax(150px,.9fr) minmax(300px,2fr)!important;
  grid-template-rows:minmax(0,1fr)!important;
  gap:10px!important;align-items:stretch!important;overflow:hidden!important;
}
body.map61-body #detailPanel .detail56-body > .telemetry56{
  grid-column:2!important;grid-row:1!important;min-width:0!important;
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-template-rows:repeat(2,minmax(0,1fr))!important;gap:6px!important;
}
body.map61-body #detailPanel .telemetry56 article{
  box-sizing:border-box!important;min-width:0!important;min-height:0!important;
  padding:7px!important;overflow:hidden!important;
}
body.map61-body #detailPanel .telemetry56 article strong{
  font-size:12px!important;line-height:1.2!important;overflow:hidden!important;
  text-overflow:ellipsis!important;white-space:nowrap!important;
}
body.map61-body #detailPanel .detail56-body > .detail56-section:nth-of-type(1){
  grid-column:3!important;grid-row:1!important;min-width:0!important;
  padding:0!important;overflow:hidden!important;
}
body.map61-body #detailPanel .detail56-body > .detail56-section:nth-of-type(2){
  grid-column:1!important;grid-row:1!important;min-width:0!important;
  padding:0!important;overflow:hidden!important;
}
body.map61-body #detailPanel .detail56-body > .detail56-section:nth-of-type(3){display:none!important}
body.map61-body #detailPanel .detail56-section h3{
  margin:0 0 5px!important;font-size:10px!important;line-height:1.2!important;
}
body.map61-body #detailPanel .kv56{
  box-sizing:border-box!important;width:100%!important;height:auto!important;min-height:24px!important;
  display:flex!important;justify-content:space-between!important;align-items:center!important;
  gap:5px!important;padding:3px 0!important;
}
body.map61-body #detailPanel .kv56 span{flex:0 0 40%!important;font-size:10px!important}
body.map61-body #detailPanel .kv56 b{
  flex:1 1 auto!important;min-width:0!important;font-size:10px!important;text-align:right!important;
  overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
}
body.map61-body #detailPanel .sensor56-grid{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
  grid-template-rows:repeat(2,minmax(0,1fr))!important;
  gap:6px!important;height:calc(100% - 18px)!important;min-width:0!important;
}
body.map61-body #detailPanel .sensor56{
  box-sizing:border-box!important;min-width:0!important;min-height:0!important;height:auto!important;
  padding:5px 3px!important;display:flex!important;flex-direction:column!important;
  justify-content:center!important;align-items:center!important;gap:3px!important;overflow:hidden!important;
}
body.map61-body #detailPanel .sensor56 .material-symbols-rounded{
  display:block!important;font-size:20px!important;line-height:1!important;margin:0!important;
}
body.map61-body #detailPanel .sensor56 b{
  display:block!important;max-width:100%!important;margin:0!important;font-size:11px!important;
  line-height:1.2!important;overflow:hidden!important;text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
body.map61-body #detailPanel .sensor56 small{
  display:block!important;margin:0!important;font-size:9px!important;line-height:1.1!important;
  overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
}
@media(max-width:1120px){
 body.map61-body #detailPanel.map61-detail{height:350px!important;max-height:min(350px,72vh)!important}
 body.map61-body #detailPanel .detail56-body{
  grid-template-columns:minmax(130px,1fr) minmax(120px,1fr) minmax(220px,1.6fr)!important;
  gap:6px!important;
 }
 body.map61-body #detailPanel #commandSection{width:272px!important}
 body.map61-body #detailPanel .map61-detail-head{width:calc(100% - 335px)!important}
}
@media(max-width:760px){
 body.map61-body #detailPanel.map61-detail{
  left:8px!important;right:8px!important;bottom:8px!important;
  height:390px!important;max-height:75vh!important;overflow:auto!important;
 }
 body.map61-body #detailPanel .map61-detail-head{left:10px!important;top:8px!important;width:calc(100% - 22px)!important;height:55px!important}
 body.map61-body #detailPanel #commandSection{top:67px!important;left:10px!important;right:10px!important;width:auto!important}
 body.map61-body #detailPanel #commandSection > *{height:48px!important;min-height:48px!important}
 body.map61-body #detailPanel .detail56-body{
  top:125px!important;left:10px!important;right:10px!important;bottom:auto!important;
  height:auto!important;display:grid!important;grid-template-columns:1fr 1fr!important;
  grid-template-rows:auto auto!important;overflow:visible!important;
 }
 body.map61-body #detailPanel .detail56-body > .detail56-section:nth-of-type(2){grid-column:1!important;grid-row:1!important}
 body.map61-body #detailPanel .detail56-body > .telemetry56{grid-column:2!important;grid-row:1!important}
 body.map61-body #detailPanel .detail56-body > .detail56-section:nth-of-type(1){grid-column:1/-1!important;grid-row:2!important;min-height:140px!important}
}
