/* /manutencoes — planos de manutenção */

/* Dentro do layout hl (sidebar + main), como /veiculos e /conta */
.sl-manutencoes-root,
.sl-page-manutencoes .sl-manutencoes-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-manutencoes-root > .sl-man-host {
  min-height: inherit;
  width: 100%;
}

body.sl-page-manutencoes main {
  flex: 1 1 auto;
  min-width: 0;
}

.sl-manutencoes-root.is-busy {
  opacity: 0.72;
  pointer-events: none;
}

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

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

.sl-man-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.sl-man-head h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sl-man-head p {
  margin: 6px 0 0;
  max-width: 640px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  line-height: 1.45;
}

.sl-man-head-actions,
.sl-man-form-actions,
.sl-man-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.sl-man-page button,
.sl-man-form-actions button,
.sl-man-actions button,
.sl-man-empty button {
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  cursor: pointer;
  color: #0f172a;
}

.sl-man-page button.primary,
.sl-man-empty button.primary {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

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

.sl-man-table-wrap {
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.sl-man-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.sl-man-table th,
.sl-man-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.sl-man-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  background: #f8fafc;
  font-weight: 800;
}

.sl-man-table tr:last-child td {
  border-bottom: 0;
}

.sl-man-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 36px 24px;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  background: #fff;
}

.sl-man-empty strong {
  font-size: 15px;
  font-weight: 800;
}

.sl-man-empty span {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 6px;
}

.sl-man-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sl-man-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  padding: 16px 18px;
}

.sl-man-card h2 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 800;
}

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

.sl-man-field input,
.sl-man-field textarea {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  background: #f8fafc;
}

.sl-man-field input:focus,
.sl-man-field textarea:focus {
  outline: 2px solid #cbd5e1;
  background: #fff;
}

.sl-man-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sl-man-modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.sl-man-mode {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  cursor: pointer;
  min-height: 88px;
}

.sl-man-mode input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sl-man-mode strong {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.sl-man-mode span {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  line-height: 1.35;
}

.sl-man-mode.is-on {
  border-color: #0f172a;
  background: #fff;
  box-shadow: inset 0 0 0 1px #0f172a;
}

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

.sl-man-devices .sl-aux-check {
  font-size: 12px;
  font-weight: 600;
}

.sl-man-form-actions {
  justify-content: flex-end;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .sl-man-head {
    flex-direction: column;
  }

  .sl-man-modes,
  .sl-man-grid,
  .sl-man-devices {
    grid-template-columns: 1fr;
  }
}

.sl-man-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 16px;
  z-index: 40;
  overflow: auto;
}

.sl-man-dialog {
  width: min(560px, 100%);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
}

.sl-man-dialog h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.sl-man-dialog select {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}
