/* /motoristas — dentro do layout hl (sidebar + main), como /manutencoes */

.sl-motoristas-root,
.sl-page-motoristas .sl-motoristas-root {
  flex: 1 1 auto;
  width: 100%;
  min-height: 100vh;
  overflow: auto;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  box-sizing: border-box;
}

.sl-motoristas-root > .sl-mot-host {
  min-height: inherit;
  width: 100%;
}

body.sl-page-motoristas main {
  flex: 1 1 auto;
  min-width: 0;
  overflow: auto !important;
}

.sl-mot-page {
  padding: 32px;
  box-sizing: border-box;
  max-width: none;
  width: 100%;
  margin: 0;
  font-family: inherit;
  color: #0f172a;
}

/* Botões no mesmo padrão de /manutencoes */
.sl-mot-page button,
.sl-mot-page .sl-man-head-actions button,
.sl-mot-page .sl-man-form-actions button,
.sl-mot-page .sl-man-actions button {
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  cursor: pointer;
  color: #0f172a;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.2;
  min-height: 36px;
}

.sl-mot-page button.primary,
.sl-mot-page .sl-man-head-actions button.primary,
.sl-mot-page .sl-man-form-actions button.primary {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

.sl-mot-page button.danger,
.sl-mot-page .sl-man-actions button.danger {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fff5f5;
}

@media (max-width: 900px) {
  .sl-mot-page {
    padding: 16px;
  }
}

.sl-mot-devices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 12px;
  max-height: 280px;
  overflow: auto;
}

@media (max-width: 900px) {
  .sl-mot-devices {
    grid-template-columns: 1fr;
  }
}
