/* /veiculos — conexões + imagem (padrão cards Conta) */

.sl-page-veiculos td:last-child .MuiButton-root {
  border-radius: 10px !important;
  text-transform: none !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  min-width: auto !important;
  padding: 4px 10px !important;
  white-space: nowrap;
}

.sl-page-veiculos td:last-child {
  min-width: 280px;
}

/* Largura do diálogo Gerenciar Conexões (mapa-paineis marca sl-map-panel--conexoes) */
.sl-map-panel--conexoes.MuiDialog-paper,
.MuiDialog-paper.sl-map-panel--conexoes {
  width: min(1200px, calc(100vw - 32px)) !important;
  max-width: calc(100vw - 32px) !important;
  min-width: min(920px, calc(100vw - 32px)) !important;
}

.sl-veic-conexoes-ui,
.sl-veic-imagem-ui {
  max-width: 1160px;
  width: 100%;
  font-family: inherit;
}

.sl-veic-conexoes-ui .sl-conta-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .sl-veic-conexoes-ui .sl-conta-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .sl-veic-conexoes-ui .sl-conta-cards {
    grid-template-columns: 1fr;
  }
}

.sl-veic-conexoes-ui .sl-aux-head h3,
.sl-veic-imagem-ui .sl-aux-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #1e293b;
}

.sl-veic-conexoes-ui .sl-aux-head p,
.sl-veic-imagem-ui .sl-aux-head p {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.sl-veic-conexoes-ui .sl-conta-cards {
  margin-top: 8px;
}

.sl-veic-conexoes-ui .sl-conta-card {
  min-height: 160px;
}

.sl-veic-conexoes-ui .sl-conta-card__body {
  max-height: 180px;
  overflow: auto;
  padding-right: 4px;
}

.sl-veic-conexoes-ui .sl-aux-check {
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
}

.sl-veic-conexoes-ui .sl-veic-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 14px;
}

.sl-veic-odo-card {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.sl-veic-odo-card h4 {
  margin: 0 0 4px;
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
}

.sl-veic-odo-card > p {
  margin: 0 0 10px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.35;
}

.sl-veic-odo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.sl-veic-odo-row label {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

.sl-veic-odo-row input {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 10px;
  min-width: 160px;
  font-size: 13px;
}

.sl-veic-conexoes-lead {
  margin: 0 0 12px;
  font-size: 13px;
  color: #64748b;
}

.sl-veic-conexoes-ui .sl-veic-actions button,
.sl-veic-conexoes-ui .sl-veic-odo-row button,
.sl-veic-imagem-ui button {
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  cursor: pointer;
  color: #0f172a;
  min-height: 36px;
  line-height: 1.2;
}

.sl-veic-conexoes-ui .sl-veic-actions button.primary,
.sl-veic-conexoes-ui .sl-veic-odo-row button.primary,
.sl-veic-imagem-ui button.primary {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

.sl-veic-imagem-ui {
  padding: 8px 0 24px;
}

.sl-veic-drop {
  margin-top: 12px;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.sl-veic-drop:hover,
.sl-veic-drop.is-drag {
  border-color: #0f172a;
  background: #f1f5f9;
}

.sl-veic-drop strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 4px;
}

.sl-veic-drop span {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.sl-veic-preview {
  margin-top: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.sl-veic-preview img {
  max-width: 100%;
  max-height: 320px;
  border-radius: 10px;
  object-fit: contain;
}

.sl-veic-preview .sl-veic-actions {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 8px;
}

/* Esconde UI antiga do F_ dentro do mount */
#sl-veic-conexoes > .form-row,
#sl-veic-conexoes > div.form-row {
  display: none !important;
}

/* Diálogos Imagem / Comando */
.sl-map-panel--imagem.MuiDialog-paper,
.MuiDialog-paper.sl-map-panel--imagem {
  width: min(640px, calc(100vw - 32px)) !important;
  max-width: calc(100vw - 32px) !important;
}

.sl-map-panel--comando.MuiDialog-paper,
.MuiDialog-paper.sl-map-panel--comando {
  width: min(560px, calc(100vw - 32px)) !important;
  max-width: calc(100vw - 32px) !important;
}

.sl-veic-comando-ui {
  font-family: inherit;
  padding: 4px 0 8px;
}

.sl-cmd-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 14px;
  font-size: 12px;
  font-weight: 700;
}

.sl-cmd-status__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #16a34a;
}

.sl-cmd-status.is-blocked {
  color: #b91c1c;
}

.sl-cmd-status.is-blocked .sl-cmd-status__dot {
  background: #dc2626;
}

.sl-cmd-status.is-unlocked {
  color: #15803d;
}

.sl-cmd-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sl-veic-comando-ui button {
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  cursor: pointer;
}

.sl-veic-comando-ui button.success {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}

.sl-veic-comando-ui button.danger {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

.sl-veic-comando-ui button.ghost {
  width: 100%;
  margin-top: 4px;
  background: #f8fafc;
}

.sl-veic-comando-ui button.primary {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

.sl-cmd-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 16px 0;
}

.sl-cmd-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
}

.sl-cmd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

.sl-cmd-row strong {
  display: block;
  font-size: 13px;
}

.sl-cmd-row span {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

.sl-cmd-new h4 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
}

.sl-cmd-new .sl-man-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 10px;
}

.sl-cmd-new .sl-man-field input,
.sl-cmd-new .sl-man-field select {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
  background: #f8fafc;
}

.sl-cmd-scope {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0 0 12px;
}

.sl-cmd-scope legend {
  font-size: 11px;
  font-weight: 800;
  padding: 0 4px;
  color: #64748b;
}

#sl-veic-imagem > .drive-wrapper,
#sl-veic-imagem > .MuiDropzoneArea-root {
  display: none !important;
}
