/* Toast global + telemetria motorista + hide snackbar Traccar */

#sl-sys-toast,
.sl-sys-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  left: auto;
  top: auto;
  transform: none;
  z-index: 7000;
  max-width: min(380px, calc(100vw - 32px));
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  display: flex;
  gap: 12px;
  align-items: center;
}

#sl-sys-toast[hidden] {
  display: none !important;
}

#sl-sys-toast.is-err {
  background: rgba(127, 29, 29, 0.94);
}

#sl-sys-toast.is-warn {
  background: rgba(120, 53, 15, 0.94);
}

#sl-sys-toast-text,
.sl-sys-toast__text {
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
  text-align: left;
  flex: 1;
  white-space: pre-line;
}

.sl-sys-toast__line {
  display: block;
}

.sl-sys-toast__line:first-child {
  font-weight: 700;
}

.sl-sys-toast__close {
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-radius: 8px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 16px;
}

/* Esconde só snackbars informativos já espelhados no toast.
   Snackbars de confirmação (com botão, ex.: exclusão) permanecem visíveis. */
.MuiSnackbar-root[data-sl-hijack="1"] {
  display: none !important;
}

/* Linhas Odômetro/Motorista espelham a linha nativa "Bateria" (tr/td da tabela). */
tr.sl-telem-odometro .sl-telem-row__value,
tr.sl-telem-motorista .sl-telem-row__value {
  font-variant-numeric: tabular-nums;
}
