/* 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 snackbars MUI nativos (substituídos pelo toast central) */
.MuiSnackbar-root {
  display: none !important;
}

.sl-telem-motorista {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 6px 0 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.sl-telem-motorista__label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.sl-telem-motorista__value {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}
